我想要实现机器人自动备份(安卓6.0),但它不能正常工作。
I'm trying to implement android auto backup (Android 6.0) but it doesn't work.
我得到同样的错误与
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.
我试图让
adb shell setprop log.tag.BackupXmlParserLogging VERBOSE
和
adb shell setprop log.tag.GmsBackupTransport VERBOSE
但我没有看到logcat的任何信息。转向备份和关闭后,我反而得到这个错误。如何解决呢?
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 encountered the same issue with the legal text.
按照 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.
但问题是,我从来没有看到这个对话框。 所以我清除了谷歌播放服务的所有数据,禁用它,再次启用它,打开Play商店应用。我不得不添加我的帐户,并在过程结束时,对话框出现了。
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.
那么,不要忘记更新谷歌播放服务的最后一个版本,否则你不会有分配备份帐户。在更新结束后,你应该能够执行命令亚行外壳BMGR fullbackup<包装>
正确
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.
上一篇:的onClick或onItemClick暂停时以&QUOT结果; IllegalStateException异常:无法执行与的onSaveInstanceState后QUOT这个动作;异常、动作、结果
下一篇:在一个空对象引用android.content.Context.getPackageName()对象、android、content、Context