Merge "Don't request account access for apps if it is explictly made not visible to them." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1827f12b50
@@ -5922,6 +5922,13 @@ public class AccountManagerService
|
||||
return;
|
||||
}
|
||||
|
||||
int visibility =
|
||||
resolveAccountVisibility(account, packageName, getUserAccounts(userId));
|
||||
if (visibility == AccountManager.VISIBILITY_NOT_VISIBLE) {
|
||||
Slog.w(TAG, "requestAccountAccess: account is hidden");
|
||||
return;
|
||||
}
|
||||
|
||||
if (AccountManagerService.this.hasAccountAccess(account, packageName,
|
||||
new UserHandle(userId))) {
|
||||
Bundle result = new Bundle();
|
||||
|
||||
Reference in New Issue
Block a user