Getting source code from an APK file
Step 1:
Make a new folder and put .apk file in it (which you want to decode). Now rename the extension of this .apk file to .zip (eg.: rename from filename.apk to filename.apk.zip) and save it. Now you get classes.dex files, etc. At this stage you are able to see drawable but not xml and java files, so continue.
Step 2:
Now extract this zip apk file in the same folder.
Step 3 :
Now go to https://googledrive.com/host/0BzHp_gLq8kRRbnh5WnFNSXNydEU and download zip file and extract it to the same folder
Step 4 :
Copy all files and directory of "dex2jar-0.0.9.7" in the same folder.
Step 5 :
Now double click on "RUN.bat"
Step 6 :
1. After completion of step 5 automaticaly generate "classes_dex2jar.jar"
2. Open "jd-gui.exe" exist in "get-apk-source_win\jd-gui-0.3.3.windows\" folder
3. Open "classes_dex2jar.jar" file in "jd-gui.exe" (File->Open File->Select path of "classes_dex2jar.jar")
OR
3. Drag and put file on "Java Compiler"
4. File->Save All Sources (Shortcut : Ctl_Alr+S)
5. Extract new created file("classes_dex2jar.src.zip") in new folder
2. Open "jd-gui.exe" exist in "get-apk-source_win\jd-gui-0.3.3.windows\" folder
3. Open "classes_dex2jar.jar" file in "jd-gui.exe" (File->Open File->Select path of "classes_dex2jar.jar")
OR
3. Drag and put file on "Java Compiler"
4. File->Save All Sources (Shortcut : Ctl_Alr+S)
5. Extract new created file("classes_dex2jar.src.zip") in new folder
Step 7:
1. Double click on RUN_1 file of APKTool folder exist in downloaded folder (get-apk-source-win)
2. Now copy apk file in APKTool exist in downloaded folder
3. Open RUN_2 file of APKTool folder and replace "filename.apk" to your apk file name with .apk but do not remove "
4. Double click on RUN_2 File
5. Now you get a file folder in that folder and now you can easily read xml files also.
2. Now copy apk file in APKTool exist in downloaded folder
3. Open RUN_2 file of APKTool folder and replace "filename.apk" to your apk file name with .apk but do not remove "
4. Double click on RUN_2 File
5. Now you get a file folder in that folder and now you can easily read xml files also.
Step 8:
Copy "Res" folder and "AndroidManifest.xml" file in the same folder(Main folder where already exist Res folder and "AndroidManifest.xml" file).
Step 9:
Done and now enjoy with source code...