androidbackupadbfastboot

How do you use force adb to backup without user confirmation?


Running adb backup -apk -shared -all on an Android device yields Now unlock your device and confirm the backup operation. on the Terminal and a prompt on the device screen that requires user intervention. I was hoping to automate backup and restore from adb. is there a way to force and proceed with backup without user confirmation?


Solution

  • This can be done using fastboot command by pulling data off the inactive Android device. Here's a sample tutorial on this at XDA University.