Hello guys many of you would already know this that how to extract the Java, XML and other source files. If you are new to this topic, then you would be most excited to read this.
Here is the step by step procedure to extract java, xml, jpeg, png and other files from any .apk file. You can know the code for your educational purpose, but you can not simply import the extracted folder into android studio or to eclipse IDE.
Impact-Site-Verification: e849d569-6f65-4d2d-a315-62466b0fa7b0
Here I'm going to show you two ways to extract source from apk file. 1. Online and 2. Offline.
Click the below link and upload your apk file and wait till your source files get downloaded to your computer.
http://www.decompileandroid.com/
Here I'm going to show you two ways to extract source from apk file. 1. Online and 2. Offline.
1. ONLINE:
Click the below link and upload your apk file and wait till your source files get downloaded to your computer.
http://www.decompileandroid.com/
2. OFFLINE:
Steps to get JAVA files from .apk file :
Rename and get dex2jar file
- Rename the .apk file into .zip file (example pcmadness.apk into pcmadness.zip).
- Extract pcmadness.zip file and copy classes.dex file from extracted folder.
- Extract dex2jar.zip and paste classes.dex into dex2jar folder.
- Open command prompt and change directory to the dex2jar folder. Then write dex2jar classes.dex and press enter.
Convert classes.dex to classes.dex.dex2jar
classes.dex.dex2jar will be in dex2jar folder |
- Now open jd-gui(Java decompiler) and click on open file.
- And then open classes.dex.dex2jar file from that folder.
Now you will get class files and save all these class files by clicking on file then click “save all sources” in jd-gui by src name.
Steps to get XML files from .apk file:
- Download apktool.bat (or apktool for Linux) and apktool_<version>.jar from http://ibotpeaches.github.io/Apktool/install/ rename the jar file from above to apktool.jar and put both files in the same folder.
- Open a cmd.exe and change into that folder; verify that a Java Environment is installed (for Linux check the notes regarding required libraries as well)
- Now type apktool decode [apk file] in cmd.
Such a nice information thanks for sharing. We provide IT Support for businesses & individual in Maryland. Please visit Orion Network Solutions
ReplyDeleteThe great information that you shared. It will help all of them. Thanks for posting. Keep maintain the updates
ReplyDeletePHP Development Company|
ERP Software|
Magento ecommerce development companies|
This comment has been removed by the author.
ReplyDeleteI think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. website design and developer company
ReplyDelete