转载请注明原作者,如果你觉得这篇文章对你有帮助或启发,不用请我喝咖啡:D
1.安装apktool
http://ibotpeaches.github.io/Apktool/
- Download Mac wrapper script (Right click, Save Link As apktool)
- Download apktool-2 (find newest here)
Rename downloaded jar to apktool.jar - Move both files (apktool.jar& apktool) to /usr/local/bin (root needed)
P.S. Make sure both files are executable (chmod +x)
- Try running apktool via cli
- cli:Command-Line Interface
- 下载的apktool另存后,其实默认名字是apktool.txt,chomd +x apktool命令就无效,需要从Get Info界面中把.txt后缀移除。
2.apktool 用法
- 反编译apk:apktool d[ecode] [opts] <file.apl> [<dir>]
- 编译apk:apktool b[uild] [opts] [<app_path>] [<out_file>]