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],存放在我的工作目录,并解压,再执行以下命令:
之后出现一个新的对话框:
结束。。。。
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],存放在我的工作目录,并解压,再执行以下命令:
之后出现一个新的对话框:
结束。。。。
相关文章推荐
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- how to compile source code of "Data Structures & Algorithm Analysis in Java" writen by Mark Allen Weiss
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- How to generate UML Diagrams from Java code in Eclipse
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- How to get source code from APK
- How to build the Robotics Library from source code on Windows
- Recommend ways to overwrite hashCode() in java
- Switching from Redhat Linux to Oracle Linux in about 5,000 easy steps
- Android: How to download the latest zip Android Source Code easily and using it in Intellij
- How to retreive raw post data from HttpServletRequest in java
- Configuring Visual Studio to Debug .NET Framework Source Code【from Shawn Burke's Blog】
- Java String Source code in openjdk-7
- Using Bytecode Outline to View Java bytecode in Eclipse
- How to retreive raw post data from HttpServletRequest in java
- How to pass macro definition from “makefile” command line arguments to C source code?
- How to implement equals() and hashCode() methods in Java[reproduced]
- Jacquie Barker, «Beginning Java Objects: From Concepts To Code, Second Edition»
- How to add or list certificates from keystore or trustStore in Java - Keytool Example Read more: ht
- 《Head First Java》And《Beginning Java Objects: From Concepts To Code, Second Edition》