apk 反编译

87 阅读1分钟

dex2jar 使用方法

  1. In the root directory run: ./gradlew distZip
  2. cd dex-tools/build/distributions
  3. Unzip the file dex-tools-2.1-SNAPSHOT.zip (file size should be ~5 MB)
  4. Run d2j-dex2jar.sh from the unzipped directory
 sh d2j-dex2jar.sh -f ~/path/to/apk_to_decompile.apk

jd-gui

open /Applications/JD-GUI.app
  1. 使用命令打开jd-gui工具
  2. 拖入dex2jar生成的jar包
  3. 查看反编译后的代码
  4. 注意:如果打不开软件的话,直接进去 cd进入到JD-GUI.app/Contents/Resources/Java目录,然后java -jar jd-gui-1.6.6-min.jar

下载地址 apktool dex2jar jd-gui