Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export apk from phone?

I compiled and ran a project on my phone through eclipse which is still install there currently. While doing some directory cleaning I accidentally deleted the source code so the only remaining version of the code is in the apk installed on my phone. Is there anyway to export the app back to my computer?? It isn't signed or anything either.

Thanks!

like image 566
Nick Avatar asked Jul 01 '11 17:07

Nick


2 Answers

You can set up to be able to copy files on/off your phone via the USB connection - heres where you can look to find it: Does Android keep the .apk files? if so where?

Then after you get the .apk off look at these questions for decompiling:

Is it possible to decompile an Android .apk file?

decompiling DEX into Java sourcecode

like image 140
BZ. Avatar answered Nov 10 '22 12:11

BZ.


You CAN pull the APK off of the phone, but it's going to be Java Bytecode, not your source code (regardless of whether or not it's signed). You would have to reverse-engineer the classes to retrieve your code. If it's not a VERY large app, I'd say your time would best be spent simply re-creating it.

like image 1
AC2MO Avatar answered Nov 10 '22 11:11

AC2MO