1.Download Linux wrapper script (apktool文本鏈接;? 復制鏈接頁面的所有內(nèi)容挖炬,粘貼進文本,并另存為:apktool)
2.Download apktool-2 (apktool-2下載鏈接)
3.Make sure you have the 32bit libraries (ia32-libs) downloaded and installed by your linux package manager, if you are on a 64bit unix system.
4.(This helps provide support for the 32bit native binary aapt, which is required by apktool)
5.Rename downloaded jar to apktool.jar
6.Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)
7.Make sure both files are executable (chmod +x)
sudo chmod +x apktool
sudo chmod +x apktool.jar
8.Try running apktool via cli
9鼠渺、反編譯apk
apktool d test.apk //它會自動生成test目錄的反編譯目錄 (ps: d是decode反編譯命令)
10、修改后回編譯apk
apktool b test //在test下的dist目錄生成打包好的test.apk
11眷细、簽名文件需要android源碼里找:signapk.jar platform.x509.pem platform.pk8
java -jar signapk.jar platform.x509.pem platform.pk8 MyDemo.apk MyDemo_signed.apk
下載鏈接:打包文件