ubuntu 安装 apktool

进入官网Apktool install 可以看到这些

  1. Download Linux wrapper script (Right click, Save Link As apktool)
  2. Download apktool-2 (find newest here)
  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)
  8. 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

你可能感兴趣的:(android)