I'm trying to take full backup using adb backup -all -f <path> and it took backup and stored in my PC.

When I try to restore it using adb restore <path> then it restores onto the target device.

ADB backup command is not taking backup of messages, contacts and pictures. Kindly guide me if I'm missing something.

I could see that I have to use adb root to take backup using pull command. Will the device warranty be there if I use adb root command?

  • 1
    If you have not rooted your device, 'adb root' will not work at all.
    – Dan Brown
    Jun 22, 2016 at 11:47
  • @Dan B, still the posting doesnt have solution or guidance for getting backup of contact and messages
    – SeekeR
    Jun 22, 2016 at 12:08
  • Well, lets be realistic here. Contacts can either be saved to the SIM card, or be exported onto storage and moved onto a computer as a file. Backing up SMS can only really be done to the SIM card, unless apps are used. Pictures can be saved to google photos, or synced/moved to the Backup holder.
    – Dan Brown
    Jun 22, 2016 at 12:13
  • See conveniently named "SMS Backup & Restore£ in the play store. It backs them up as .xml files, so those can be moved like normal files in the backup procedures.
    – Dan Brown
    Jun 22, 2016 at 12:15
  • Oh, and you can use the -shared and -system arguments in the link above to help this process along.
    – Dan Brown
    Jun 22, 2016 at 12:18

1 Answer 1


For photos you can either copy them to the pc or use a third party app that will backup them, like Google photos.

For contacts and sms there are plenty of third party apps. You can alao backup the contacts to google server using the contacts app itself

  • I'm developing a application to take a backup from the mobile to PC. I have tested some of the tools which takes full backup. But i wanted to know how did they achieved it and what was the commands used behind the GUI.
    – SeekeR
    Jun 25, 2016 at 4:31
  • well I don't think they used any official API, but instead they just copied files from each app's folders. The thing that they miss is permissions. For this, I think you need to look at : stackoverflow.com/a/27866435/878126 , stackoverflow.com/a/32798532/878126 . Jun 25, 2016 at 6:30
  • Thanks for sharing the link. it seems the command list the permission granted for th apk and not to set permission to allow some operation. is there any other command other than adb to take backup of contacts from device ?
    – SeekeR
    Jun 25, 2016 at 6:43
  • Not sure if it's possible so easily as backup of apps, but some people say it is: android.stackexchange.com/questions/85269/… Jun 25, 2016 at 8:59

Not the answer you're looking for? Browse other questions tagged .