androidandroid-studiorecoverfile-recovery

Recover an Android project from an installed app


Recently I've switched to windows 10 by performing a clean install, which means that I've wiped the whole HDD. Sadly I forgot to backup a project built up in Android Studio but I have it installed and running on my phone.

Is it possible to somehow recover my project from what is installed on my smart device?

If yes, how?


Solution

  • Step 1. Generate an apk from the installed app on your "smart" phone.

    Use App Backup & Restore to do this. There are several other apps that allow you to create apk installers from installed apps. Just search on play store for "backup apps".

    Step 2. Decompile your app to get the source code:

    This is already answered on this SO Post (several options)

    (Optional) Step 3. Backup on source control right away

    Use free source control services like bitbucket to backup and avoid hassles like these in future.