Merge "Invalidate accounts cache on permissions change" into sc-dev am: 65a8530ccc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14970920 Change-Id: Ie875bd68db84fac69105fe88b022e88203a2a74d
This commit is contained in:
@@ -375,6 +375,9 @@ public class AccountManagerService
|
||||
// Cancel account request notification if a permission was preventing the account access
|
||||
mPackageManager.addOnPermissionsChangeListener(
|
||||
(int uid) -> {
|
||||
// Permission changes cause requires updating accounts cache.
|
||||
AccountManager.invalidateLocalAccountsDataCaches();
|
||||
|
||||
Account[] accounts = null;
|
||||
String[] packageNames = mPackageManager.getPackagesForUid(uid);
|
||||
if (packageNames != null) {
|
||||
|
||||
Reference in New Issue
Block a user