轉載請注明原作者,如果你覺得這篇文章對你有幫助或啟發,不用請我喝咖啡: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>]