Android gets source code from APK file.
Below the post for how to get source code from APK file.
STEP 1
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
STEP 2
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.
STEP3
Copy the classes.dex file and paste it inside dex2jar-0.0.9.13 folder
STEP 4
Then open COMMAND
PROMPT enter following the comment
Your file path
of(dex2jar-0.0.9.13 folder)/dex2jar classes.dex
Then enter
Then one more
jar file generated in your dex2jar-0.0.9.13 folder
STEP 5
Then Download
following file Java Decompiler from this link
Extract the
file and then open and execute files
STEP 6
Then open your generated file (classes_dex2jar.jar)
from that JAVA Decompiler.
There you can
able to see your all source file
STEP 7.
Save all source
file
GOTO ->
File-> save all source file
STEP 8
Then extract
the saved file and enjoy with codes.
HAVE A NICE DAY!