进入官网Apktool install 可以看到这些
- Download Linux wrapper script (Right click, Save Link As
apktool
) - Download apktool-2 (find newest here)
- 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. - (This helps provide support for the 32bit native binary aapt, which is required by apktool)
- Rename downloaded jar to
apktool.jar
- Move both files (
apktool.jar
& apktool
) to /usr/local/bin
(root needed) - Make sure both files are executable (
chmod +x
) - Try running apktool via cli
按照步骤一步一步来就是了:
1.右击链接保存为 apktool
2.下载最新的apktool-2
3.确定是否有 32 bit libraries
4.
5.下载的文件改名为apktool.jar
6.移动两个文件到 /usr/local/bin
这里,我是把两个文件放在 donwload 目录里,进入目录 : sudo mv -i apktool apktool.jar /usr/local/bin/ ,输入密码后就移动好了
7.给apktool 文件执行的权限:
进入目录 cd /usr/local/bin/
sudo chmod +x apktool
然后就可以在任何目录执行 apktool 了
比如在目录下反编译某个文件 apktool d app.apk