Here we will Learn how to decompile an apk file
Softwares required are listed below:
Step 1 : Copy all the downloaded softwares in a folder. Create a New Folder in the same folder.
Step 2 : Extract all the softwares from their zip to the same folder(decompiling).
Step 3 : Rename the apk (SoundDemo.apk) to SoundDemo.apk.rar. Remove SoundDemo.apk from the folder but don't delete it.
Step 4 : Extract the rar file to a folder named SoundDemo
Step 5 : You will find following contents in SoundDemo folder.
Step 6 : Copy all the contents from SoundDemo to New Folder.
Step 7 : Here are the contents in dex2jar folder.
Step 8 : Copy all these contents in New Folder. Remember now there are contents of SoundDemo and dex2jar folders in New Folder currently.
Step 9 : Open Command Prompt and go to location of New Folder by typing following 2 commands:
1) cd pathtoNewFolder
2) dex2jar classes.dex
Replace pathtoNewFoder with actual path to New Folder from your computer.
Step 10 : Now copy classesdex2jar.jar from New Folder to outside folder (decompiling folder).
Step 11 : Bring the removed SoundDemo.apk back to our folder.
Step 12 : Run the .exe file found in jd-gui folder.
Step 13 : Drag classes.dex2jar.jar to java decompiler.
Step 14 : Click on File->Save All Sources.
Step 15 : Give name as classes_dex2jar.src.zip an save it in same folder.
Step 16 : Extract classes_dex2jar.src.zip to a folder classes_dex2jar.src in same folder.
Step 17 : Make a New Folder named Decompiled SoundDemo and copy contents in classes_dex2jar.src folder to Decompiled SoundDemo folder.
The java resources of SoundDemo are extracted. The xml resources will be extracted in the next post.
Softwares | Link | Size |
---|---|---|
Desired APK (SoundDemo.apk) |
https://github.com/yatinkode/SoundDemo.git | 2 Mb |
apktool | https://my.pcloud.com/publink/show?code=Hk2 | 30Mb |
framework-res.apk | https://www.androidfilehost.com/?fid=23212708291677144 | 10.4Mb |
jdk1.7 | http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html | 138Mb |
dex2jar.zip | https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip | 1.60Mb |
Step 1 : Copy all the downloaded softwares in a folder. Create a New Folder in the same folder.
Step 2 : Extract all the softwares from their zip to the same folder(decompiling).
Step 3 : Rename the apk (SoundDemo.apk) to SoundDemo.apk.rar. Remove SoundDemo.apk from the folder but don't delete it.
Step 4 : Extract the rar file to a folder named SoundDemo
Step 5 : You will find following contents in SoundDemo folder.
Step 6 : Copy all the contents from SoundDemo to New Folder.
Step 7 : Here are the contents in dex2jar folder.
Step 8 : Copy all these contents in New Folder. Remember now there are contents of SoundDemo and dex2jar folders in New Folder currently.
Step 9 : Open Command Prompt and go to location of New Folder by typing following 2 commands:
1) cd pathtoNewFolder
2) dex2jar classes.dex
Replace pathtoNewFoder with actual path to New Folder from your computer.
Step 10 : Now copy classesdex2jar.jar from New Folder to outside folder (decompiling folder).
Step 11 : Bring the removed SoundDemo.apk back to our folder.
Step 12 : Run the .exe file found in jd-gui folder.
Step 13 : Drag classes.dex2jar.jar to java decompiler.
Step 14 : Click on File->Save All Sources.
Step 15 : Give name as classes_dex2jar.src.zip an save it in same folder.
Step 16 : Extract classes_dex2jar.src.zip to a folder classes_dex2jar.src in same folder.
Step 17 : Make a New Folder named Decompiled SoundDemo and copy contents in classes_dex2jar.src folder to Decompiled SoundDemo folder.
Stay Tuned with Made In Android
No comments:
Post a Comment