脚本地址
将脚本保存起来,命名为apktool。
apktool.jar下载
将下载的apktool_x.x.x.jar文件重命名为apktool.jar
$ sudo mv apktool /usr/local/bin
$ sudo mv apktool.jar /usr/local/bin
$ sudo chmod +x /usr/local/bin/apktool
$ sudo chmod +x /usr/local/bin/apktool.jar
在终端输入apktool命令:
$ apktool
Apktool v2.4.1 - a tool for reengineering Android apk files
with smali v2.3.4 and baksmali v2.3.4
Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
Updated by Connor Tumbleson <connor.tumbleson@gmail.com>
usage: apktool
-advance,--advanced prints advance information.
...
出现上述信息,表示安装成功。