, ,

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

  1. Verify your phone is On, plugged into the computer, and USB debugging is turned on
  2. Open terminal and type adb devices if everything is okay you should see your device serial number and you are all set!
  3. Now in terminal type adb backup –apk –shared –all –f mybackup.ab and press Enter
    • It will backup your app data + the apks in your working directory.
  4. After that on your phone you should see below image
  5. Create a simple password and tap on “Back up my data“. This will take several minutes sit back and have a cup of coffee.
  6. Congratulations you have successfully backed up your phone

How To Restore

  1. Restoring a backup please follow the step 1 and 2 from taking Backup.
  2. Open terminal and type adb restore path-to-your-backup.ab and press Enter
  3. After that on your phone provide the encryption password and tap on “Restore my data“.
  4. Wait for it to finish, and you should be fully restored.