i am new to android application development. I developed one android application.I build and install .apk file in my mobile. Now i lost that source file.i have only the .apk file. Is it possible to recover all my source file from that .apk file. I developed my application in eclipse with android 4.0 version please help me to go forward. thank you, bye.
Asked
Active
Viewed 7,414 times
-9
-
Check [android-apktool](https://code.google.com/p/android-apktool/) which can be used for reverse engineering of APK files. Check and read this thread: http://stackoverflow.com/questions/3593420/android-getting-source-code-from-an-apk-file – Paresh Mayani May 20 '13 at 05:11
1 Answers
3
The java class files are converted to dex files and are packed along with the other resource, You can use any file compressing software to get the contents of the apk file however to get the source code is difficult
How to get the java source code The dex files are which contain the java source code, The dex2jar tool can be used to get the jar file from the dex file and once you get the jar file use JD-GUI to get the source code in java. Now keep this in mind that if the user has used obfuscation then the java code you would get is obfuscated and you have to DeObfuscator(I havent used this)
To get other resources You can used the apktool to reverse engineer the code and other resources, Here in XDA forums you can get to know how to use it

janot
- 13,578
- 1
- 27
- 57

Girish Nair
- 5,148
- 5
- 40
- 61