backing up android device using adb [closed]

白昼怎懂夜的黑 提交于 2019-11-27 05:04:41

问题


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.



来源:https://stackoverflow.com/questions/19225467/backing-up-android-device-using-adb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!