Before you do anything to your android device it’s good to have a backup. Okay let’s take a look how you should backup your android and restore if something went wrong.
Before you get started make sure you have installed android SDK installed. If not go ahead and install it from here.
How To Backup
- Verify your phone is On, plugged into the computer, and USB debugging is turned on
- Open terminal and type
adb devicesif everything is okay you should see your device serial number and you are all set! - Now in terminal type
adb backup –apk –shared –all –f mybackup.aband press Enter- It will backup your app data + the apks in your working directory.
- After that on your phone you should see below image

- Create a simple password and tap on “Back up my data“. This will take several minutes sit back and have a cup of coffee.
- Congratulations you have successfully backed up your phone
How To Restore
- Restoring a backup please follow the step 1 and 2 from taking Backup.
- Open terminal and type
adb restore path-to-your-backup.aband press Enter - After that on your phone provide the encryption password and tap on “Restore my data“.
- Wait for it to finish, and you should be fully restored.