Merge "Fix issue with saving admins before finishing loading. am: adbda7474c" into nyc-mr2-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
04c2f3f2df
@@ -2567,14 +2567,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
// Ignore
|
// 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
|
// Might need to upgrade the file by rewriting it
|
||||||
if (needsRewrite) {
|
if (needsRewrite) {
|
||||||
saveSettingsLocked(userHandle);
|
saveSettingsLocked(userHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate a list of admins from the admin map
|
|
||||||
policy.mAdminList.addAll(policy.mAdminMap.values());
|
|
||||||
|
|
||||||
validatePasswordOwnerLocked(policy);
|
validatePasswordOwnerLocked(policy);
|
||||||
updateMaximumTimeToLockLocked(userHandle);
|
updateMaximumTimeToLockLocked(userHandle);
|
||||||
updateLockTaskPackagesLocked(policy.mLockTaskPackages, userHandle);
|
updateLockTaskPackagesLocked(policy.mLockTaskPackages, userHandle);
|
||||||
|
|||||||
Reference in New Issue
Block a user