From APK to readable java source code in 3 easy steps

Android applications are packed inside a APK file, which is just a ZIP file containing among other things a compactDalvik Executable (.dex) file.
First step is to extract the “classes.dex” file from the APK:

Now, we use the tool dex2jar to convert the classes.dex file to Java .class files:


From here we obtain the file “classes.dex.dex2jar.jar”, now we can use the java decompilerJD-GUI to extract the source code:


 

Now just go to “File -> Save all sources” and it will generate the zip file “classes.dex.dex2jar.src.zip” containing all the decompiled Java source code:)



我的执行步骤:

1、将apk文件复制到我要工作的目录-software,并执下以下命令:


2、从网站下载dex2jar-0.0.9.7.zip ,存放在我的工作目录,并解压,再执行以下命令:


3、从网站下载jd-gui-0.3.3.linux.i686.tar.gz,存放在我的工作目录,并解压,再执行以下命令:


之后出现一个新的对话框:

结束。。。。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值