backing up android device using adb [closed]

2019-01-16 04:43发布

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.

2条回答
Anthone
2楼-- · 2019-01-16 05:30

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.

查看更多
孤傲高冷的网名
3楼-- · 2019-01-16 05:33

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
查看更多
登录 后发表回答