轉(zhuǎn)載請(qǐng)注明原作者氓癌,如果你覺得這篇文章對(duì)你有幫助或啟發(fā),不用請(qǐng)我喝咖啡: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另存后吨凑,其實(shí)默認(rèn)名字是apktool.txt,chomd +x apktool命令就無(wú)效户辱,需要從Get Info界面中把.txt后綴移除鸵钝。
2.apktool 用法
- 反編譯apk:apktool d[ecode] [opts] <file.apl> [<dir>]
- 編譯apk:apktool b[uild] [opts] [<app_path>] [<out_file>]