将DEX反编译成Java源代码
作者:互联网
如何将Android DEX(VM字节码)文件反编译成相应的Java源代码?
解决方法:
这很简单
获取这些工具:
1)dex2jar将dex文件转换为jar文件
2)jd-gui查看jar中的java文件
源代码非常易读,因为dex2jar进行了一些优化.
程序:
这是关于如何反编译的过程:
步骤1:
将test_apk-debug.apk中的classes.dex转换为test_apk-debug_dex2jar.jar
d2j-dex2jar.sh -f -o output_jar.jar apk_to_decompile.apk
d2j-dex2jar.sh -f -o output_jar.jar dex_to_decompile.dex
Note: In the Windows machines all the
.sh
scripts are replaced by.bat
scripts
第2步:
在JD-GUI中打开jar
标签:dex,android,java,reverse-engineering,decompiler 来源: https://codeday.me/bug/20190911/1804218.html