This may sound like a stupid question, but I have a Honor 5x I'd like to root, and I want to use adb backup to backup all my phone's data so I can restore it after unlocking my bootloader (which erases the phone's data).

My question is: If I backup with adb backup -all, when I'll restore my phone's data, will it erase root? Probably not, but I just don't want to risk it.

  • 1
    Thanks for the downvote without any explanation, really helpful ==" – Alpha Jan 2 '18 at 13:12
  • Your question is out of scope here at Superuser since it’s about an Android device. – Ramhound Jan 2 '18 at 13:17
  • 5
    Why not just migrate his question to Android SE without down voting? – user248200 Jan 2 '18 at 13:23
  • @Ramhound ... so since is he asking for a full backup via computer (adb) ... it should be on topic... even if, I agree, it can receive more attention in the android forum... – Hastur Jan 2 '18 at 14:09

No. Backing up and restoring won't affect root.

Basically, adb backup backups a portion of /data partition, while rooting mostly affects /system partition and soemtimes / (boot ramdisk, for system-less root). You can safely back it up and proceed on rooting it before restoring the backup.

  • What happens when I choose both System Apps and User Apps in backup settings, does it work as you mentioned? – user248200 Jan 3 '18 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.