1.工具安裝
brew install jd-gui
2.下載dex2jar
[https://yer.dl.sourceforge.net/project/dex2jar/dex2jar-2.0.zip](https://yer.dl.sourceforge.net/project/dex2jar/dex2jar-2.0.zip)
解壓后進(jìn)入文件夾
執(zhí)行chmod 777 *授權(quán)
3.apk反編譯為jar文件
sh d2j-dex2jar.sh -f **.apk
4.將jar解壓為文件夾
5.將class文件反編譯成java文件
打開(kāi)JD-GUI軟件
File -> Save All Sources
6.直接修改apk后綴名為zip,然后解壓,可查看文件其他資源
1.工具安裝
brew install apktool
brew install dex2jar
brew install jd-gui
2.將apk文件后綴改為zip并解壓文件
3.將dex文件轉(zhuǎn)換成Jar包
d2j-dex2jar <dex_name> -o <jar_name>
4.dex文件轉(zhuǎn)換成Jar報(bào)錯(cuò)(com.googlecode.d2j.DexException: not support version.)
原因:dex2jar-2.0工具只支持035和036版本協(xié)議
解決辦法:將dex文件打開(kāi),將內(nèi)容開(kāi)頭的037等其他版本改為036,保存并重新轉(zhuǎn)換
其他參考文檔
[http://m.itdecent.cn/p/2bbe7112f940](http://m.itdecent.cn/p/2bbe7112f940)
[https://blog.csdn.net/u010248147/article/details/112860007](https://blog.csdn.net/u010248147/article/details/112860007)
1.安裝軟件jadx:
git clone https://github.com/skylot/jadx.git
cd jadx
./gradlew dist
2.圖形界面:
build --> jadx --> bin --> jadx-gui
3.其他參考文檔
http://www.wjhsh.net/cheflone-p-14096040.html