OSDN Git Service

[DO NOT MERGE] Backup account access grants
authorSvet Ganov <svetoslavganov@google.com>
Wed, 7 Sep 2016 16:57:41 +0000 (09:57 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Fri, 9 Sep 2016 17:16:57 +0000 (10:16 -0700)
commit72ed12c55f36c61f3ec07ab563ed8c93ea92c733
treeae00974fd8159d38fcfade1b41ce1eeb7fe52682
parent1b6e3e48242258e1dafb1709c1f11acd5ee1b1fa
[DO NOT MERGE] Backup account access grants

Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). If the sync adapter
does not have permission to access the account we ask the
user to grant access and take a note. This CL adds backup
for the explicit user grants.

bug:31162498

Change-Id: I31e3f3d010475352c7c54255ac2d3a2fed4d0c72
core/java/android/accounts/AccountManagerInternal.java
core/java/android/util/PackageUtils.java [new file with mode: 0644]
core/java/com/android/server/backup/AccountManagerBackupHelper.java [new file with mode: 0644]
core/java/com/android/server/backup/SystemBackupAgent.java
services/core/java/com/android/server/accounts/AccountManagerBackupHelper.java [new file with mode: 0644]
services/core/java/com/android/server/accounts/AccountManagerService.java