您的位置:首页 > 编程语言 > Java开发

From APK to readable java source code in 3 easy steps

2012-01-30 10:34 513 查看
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、从网站下载[b]jd-gui-0.3.3.linux.i686.tar.gz[/b],存放在我的工作目录,并解压,再执行以下命令:



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



结束。。。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐