How to get source code from apk android app
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.
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.
Or watch this video for better understanding from coders-hub.com
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.
Or watch this video for better understanding from coders-hub.com
How to get source code from apk android app
Reviewed by Sriram PV
on
12:20:00
Rating:
No comments:
Add your valuable comment here, Share your opinions. Comments for back-links will be deleted without prior intimation. Thank you.