Android gets source code from APK file.
Below the post for how to get source code from APK file.
Get your apk file
.apk to .zip or rar rename it. Ex .sample.apk to sample.zip
*Then extract the file.
In That extracted file you can able to see Manifest file ,res folder and classes.dex
Then download the following file
- In that link left side you can able to under featured tag Downloads dex2jar-0.0.9.13. zip .
Download the file and extract it.
After downloading the file Extract it.
Copy the classes.dex file and paste it inside dex2jar-0.0.9.13 folder
Then open COMMAND PROMPT enter following the comment
Your file path of(dex2jar-0.0.9.13 folder)/dex2jar classes.dex
Then one more jar file generated in your dex2jar-0.0.9.13 folder
Then Download following file Java Decompiler from this link
Extract the file and then open and execute files
Then open your generated file (classes_dex2jar.jar) from that JAVA Decompiler.
There you can able to see your all source file
Save all source file
GOTO -> File-> save all source file
Then extract the saved file and enjoy with codes.
HAVE A NICE DAY!