dex2jar 使用方法
- In the root directory run: ./gradlew distZip
- cd dex-tools/build/distributions
- Unzip the file dex-tools-2.1-SNAPSHOT.zip (file size should be ~5 MB)
- 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
- 使用命令打开jd-gui工具
- 拖入dex2jar生成的jar包
- 查看反编译后的代码
- 注意:如果打不开软件的话,直接进去 cd进入到JD-GUI.app/Contents/Resources/Java目录,然后java -jar jd-gui-1.6.6-min.jar