Today we are going to see how the .apk can be reverse engineered to see the original source code
Procedure
- Get the .apk file (Here I'm taking example apk called psr.apk)
- Rename the extention from psr.apk to psr.zip file
- Extract the psr.zip file
- It will create folder named "psr" and contents will be inside that
- Download the tool "dex2jar" from the official link
- Extract the downloaded "dex2jar" zip
- Navigate to the "dex2jar" extracted directory
- Execute the following command
- ./d2j-dex2jar.sh psr/classes.dex
- Now it will generate classes-dex2jar.jar file
- Extract the jar file, it will create "classes-dex2jar" folder
- Now, open you "intelliJ IDEA"
- Install "Java Decompiler IntelliJ Plugin" in "intelliJ IDEA"
- In IDE, click "File->Open"
- Select the "classes-dex2jar" folder path
- Now, click on any of the .class file, then you should be able to see the original java source code of it
Isn't it awesome guys :)
Keep enjoying the coding :)
Please send your feedback and comments to psrdotcom@gmail.com
No comments:
Post a Comment