Linux使用笔记@IT·互联网生活家

Linux下Apktool本地安装及使用教程

2017-04-20  本文已影响92人  ZOKE

1.Download Linux wrapper script (apktool文本链接;  复制链接页面的所有内容,粘贴进文本,并另存为: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

下载链接:打包文件

上一篇下一篇

猜你喜欢

热点阅读