打包

[toc]

安卓打包

1
2
3
4
5
6
7
8
9
10
11
12
13
# 查看是否已安装apktool
apktool --version

# 1.1未安装的话,即出现
`zsh: command not found: apktool`
# 则执行以下命令,进行安装
brew install apktool

# 1.2未正确安装,即出现
`/usr/local/bin/apktool: line 3: /Users/qian/@@HOMEBREW_JAVA@@/bin/java: No such file or directory`
`/usr/local/bin/apktool: line 3: exec: /Users/qian/@@HOMEBREW_JAVA@@/bin/java: cannot execute: No such file or directory`
# 则执行以下命令,进行安装
HOMEBREW_BOTTLE_DOMAIN= brew reinstall kafka

反编译apk

执行命令

1
2
# 解压
apktool d -f $OriginPath -o $ChannelHome/origin_apk
  • ddecode的简写
  • -f/--force:强制删除目标文件夹,即会先清空$ChannelHome/origin_apk,然后再执行decode操作
  • $OriginPath是当前要反编译的apk
  • -o--output的简写,代表输出路径

结束语