Perform a full backup of an android device
Submitted by fser on Wed, 08/26/2015 - 20:36
First, you have to setup adb. adb is shipped with the android sdk, freely available online.
Plug your phone using usb cable to your commputer, run adb devices
.
I got a strange output:
$ ./adb devices
List of devices attached
???????????? no permissions
Once again, stackoverflow saved my life. Just add a rule for udev containing:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
and set the correct permissions on that file chmod a+r /etc/udev/rules.d/51-android.rules
.
Unplug the phone, plug it back, and ...
List of devices attached
0a61574f0297d5e9 unauthorized
Your phone should now ask you wether you want to allow USB debug, select yes.
You should now see something like
List of devices attached
0a61574f0297d5e9 device
And can now perform a backup using ./adb backup -all -f ~/android_phone
. If your phone is encrypted, you'll be asked for your password on your phone.
Add new comment