Mac下使用apktool进行APK Decompiler

1. 下载apktool

  这个工具可以最大幅度地还原APK文件中的9-patch图片、布局、字符串等等一系列的资源

  MAC版本下载地址:http://ibotpeaches.github.io/Apktool/install/

Mac OS X:

  • 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)
  • Make sure both files are executable (chmod +x)
  • Try running apktool via cli 

Note - Wrapper scripts are not needed, but helpful so you don’t have to type java -jar apktool.jar over and over.

 

2.  mac 下终端访问文件出现“Permission Denied”解决方案

一个文件有3种权限,读、写、可执行,你这个文件没有可执行权限,需要加上可执行权限。

1. 终端下先 cd到该文件的目录下

2. 执行命令 chmod a+x ./文件名

 

3. decomplie apk

apktool d Demo.apk

 

posted @ 2018-02-07 13:04  那依旧灿烂的笑容  阅读(940)  评论(0)    收藏  举报