Fix issue with saving admins before finishing loading. am: f98ed6863a
am: b275a205af
Change-Id: I01487d9c39f4e82b63961cdd43df238f2bfd2b89
This commit is contained in:
@@ -2498,14 +2498,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
// Ignore
|
||||
}
|
||||
|
||||
// Generate a list of admins from the admin map
|
||||
policy.mAdminList.addAll(policy.mAdminMap.values());
|
||||
|
||||
// Might need to upgrade the file by rewriting it
|
||||
if (needsRewrite) {
|
||||
saveSettingsLocked(userHandle);
|
||||
}
|
||||
|
||||
// Generate a list of admins from the admin map
|
||||
policy.mAdminList.addAll(policy.mAdminMap.values());
|
||||
|
||||
validatePasswordOwnerLocked(policy);
|
||||
updateMaximumTimeToLockLocked(userHandle);
|
||||
updateLockTaskPackagesLocked(policy.mLockTaskPackages, userHandle);
|
||||
|
||||
Reference in New Issue
Block a user