Android BackupManager完整数据备份未获得同意

时间:2017-09-12 18:50:37

标签: android adb backup

我正在使用bmgr测试自动备份,并且无法使其正常工作。

我在清单中有 allowBackup="true" ,当然它已在设备上启用。

有谁知道INELIGIBLE_DOLLY_CONSENT是什么?

09-12 19:16:27.163 783-11562/? I/PFTBT: Initiating full-data transport backup of com.xxxxxxxxx.xxxxx
09-12 19:16:27.166 1371-1640/? I/Backup: [GmsBackupTransport] Attempt to do full backup on com.xxxxxxxxx.xxxxx
09-12 19:16:27.173 1371-1640/? W/Backup: [EligibilityFilter] Rejecting backup of com.com.xxxxxxxxx.xxxxx. Full data backup does not have consent
09-12 19:16:27.173 1371-1640/? W/Backup: [GmsBackupTransport] Rejecting package com.xxxxxxxxx.xxxxx for full backup because ineligible (INELIGIBLE_DOLLY_CONSENT).
09-12 19:16:27.175 783-11562/? I/PFTBT: Transport rejected backup of com.xxxxxxxxx.xxxxx, skipping
09-12 19:16:27.175 783-11562/? I/PFTBT: Full backup completed.

2 个答案:

答案 0 :(得分:0)

重新添加我的Google帐户后,它可以正常工作:

  1. 转到设置并选择帐户
  2. 点击 Google 帐户;
  3. 单击三个点图标;
  4. 点击删除帐户

然后,点击添加帐户以重新添加您的Google帐户。

答案 1 :(得分:0)

遇到相同的问题(在logcat中执行Transport rejected package because it wasn't able to process it at the timeadb shell bmgr backupnow com.myapp时,INELIGIBLE_DOLLY_CONSENT)。

仅通过在电话设置中禁用并重新启用备份即可解决该问题。