backing up android device using adb [closed]

2019-01-16 04:42发布

问题:

I am attempting to copy all the applications and data from a android tablet1 to another android tablet2. Both tablets has the same specification and is the same type.

My approach is to use the command

 adb backup -f my_backup.ab -apk -shared -all

to get all the files from tablet1 then use the command:

 adb restore my_backup.ab

to restore(basically copy) all the backed up files to tablet2.

The restore works fine, my problem is that sometimes backup does not backup all applications are all data on the device.

Do you have any idea why this might be happening?

Thanks for your response and time.

回答1:

Execute on your computer

adb backup -apk -shared -all

This should hopefully create backup.ab with all of your apps, OS, and data. To restore, execute the following.

adb restore backup.ab


回答2:

If you do not have root access on tablet1, certain data will not be accessible by adb, such as private application data, hence they will not be backed up. Try running 'adb root' first.