I used revert local history and now there is no code at all. I have a working version of the app on my phone.
Is there any way I can get the source code back from my phone?
Asked
Active
Viewed 244 times
-2

Vadim Kotov
- 8,084
- 8
- 48
- 62

user3925417
- 75
- 1
- 9
-
check this [link](http://stackoverflow.com/a/6081365/3168859) – Lal Jan 10 '15 at 17:48
-
If you reverted using your source control system (svn, git, etc), maybe your IDE has a local history you can go through? I've been able to recover deletes in both IntelliJ IDEA and Eclipse. – Todd Jan 10 '15 at 18:01
1 Answers
0
No. You can't get exact source code from .apk file.
You can try find your answer here. Is there a way to get the source code from an APK file?
But this will not the exact copy of your project.
-
-
-
-
-
1This is a tad misleading. Of course you can't get the source code back, but you can get something resembling it that will certainly be a lot quicker to use than a complete rewrite. Java is a lot more amenable to decompilation than most compiled languages (assuming progard was not enabled, in which case it'll be a nightmare) – Richard Tingle Jan 10 '15 at 18:06
-
Is there anyway I can get the apk from the actual app on my phone? – user3925417 Jan 10 '15 at 19:36
-
@user3925417 http://stackoverflow.com/questions/4032960/how-do-i-get-an-apk-file-from-an-android-device – Anatol Jan 11 '15 at 09:03