Export apk from phone?

I compiled and ran the project on my phone through eclipse, which is still installed there. During the cleaning of some directories, I accidentally deleted the source code, so the only remaining version of the code is in the apk installed on my phone. Is there a way to export the application back to my computer? It is not signed or anything else.

Thanks!

+7
source share
2 answers

You can configure it to be able to copy files on your phone via a USB connection - here where you can find it: Does Android support .apk files? if so, where?

Then, after you get .apk, look at these questions for decompilation:

Can I decompile an .apk file for Android?

decompile DEX into Java source code

+7
source

You CAN pull the APK from the phone, but it will be a Java bytecode, not your source code (whether it is signed or not). You will need to redesign the classes to extract the code. If this is not a VERY large application, I would say that your time is best spent simply by republishing it.

+1
source

All Articles