Android auto backup error

让人想犯罪 __ 提交于 2019-12-04 04:57:46

问题


I'm trying to implement android auto backup (Android 6.0) but it doesn't work.

I get the same error with

10-28 22:58:06.980 600-5578/? I/PFTBT: Initiating full-data transport backup of com.myapp.package
10-28 22:58:06.981 7891-14015/? I/GmsBackupTransport: Attempt to do full backup on com.myapp.package
10-28 22:58:06.982 600-5578/? I/PFTBT: Transport rejected backup of com.myapp.package, skipping
10-28 22:58:06.982 600-5578/? I/PFTBT: Full backup completed.
10-28 22:58:06.982 600-610/? D/BackupManagerService: Done with full transport backup.

I tried enable

adb shell setprop log.tag.BackupXmlParserLogging VERBOSE

and

adb shell setprop log.tag.GmsBackupTransport VERBOSE

but I don't see any more information in the logcat. After turning backup off and on I instead get this error. How to resolve it?

10-28 23:53:08.699  1633  1644 I GmsBackupTransport: Attempt to do full backup on com.myapp.package
10-28 23:53:08.699  1633  1644 V GmsBackupTransport: Rejecting full data backup. user has not seen up to date legal text
10-28 23:53:08.699   599  8353 I PFTBT   : Transport rejected backup of com.myapp.package, skipping
10-28 23:53:08.699   599  8353 I PFTBT   : Full backup completed.
10-28 23:53:08.699   599  6518 D BackupManagerService: Done with full transport backup.

I've followed the guide here Auto backup. Any ideas?


回答1:


I encountered the same issue with the legal text.

According to the doc :

Note: To protect user privacy, the device user must have opted in to Google services for Auto Backup to work. The Google services opt-in dialog appears when the user goes through the Setup Wizard or configures the first Google account on the device.

The problem was that I never saw this dialog. So I cleared all the data of Google play services, disabled it, enabled it again and opened the Play Store app. I had to add my account and at the end of the process, the dialog appeared.

Then, don't forget to update Google Play Services to the last version else you won't have a backup account assigned. At the end of the update, you should be able to execute the command adb shell bmgr fullbackup <PACKAGE> properly.



来源:https://stackoverflow.com/questions/33403094/android-auto-backup-error

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