I accidently erased my project from Eclipse, and all I have left is the APK file which I transferred to my phone. Is there a way to reverse the process of exporting an application to the .apk file, so I can get my project back?
Android – Reverse engineering from an APK file to a project
androidapkdecompiling
Related Topic
- Java – How to discover memory usage of the application in Android
- Android – way to get the source code from an APK file
- Android – ‘App not Installed’ Error on Android
- Android – How to build an APK file in Eclipse
- Android error: Failed to install *.apk on device *: timeout
- Android – Install an apk file from command prompt
- Java – Can’t start Eclipse – Java was started but returned exit code=13
- Android – How to avoid reverse engineering of an APK file
Best Answer
There are two useful tools which will generate Java code (rough but good enough) from an unknown APK file.
Download dex2jar tool from dex2jar.
Use the tool to convert the APK file to JAR: Windows:
MacOS / Linux:
Once the JAR file is generated, use JD-GUI to open the JAR file. You will see the Java files.
The output will be similar to:
Then you can use other tools to retrieve the AndroidManifest.xml and resource files (like images, translations, etc...) from the APK file.
Apktool
AXMLParser
NinjaDroid