Don't set user restrictions directly on USER_ALL.
Bug: 269984638 Test: btest a.d.c.InstallUnknownSourcesTest Change-Id: Id71b1fb3af41afe722d336d33628bc1b222205c8
This commit is contained in:
@@ -2609,6 +2609,9 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
|
||||
applyUserRestrictionsForAllUsersLR();
|
||||
for (int i = 0; i < updatedUserIds.size(); i++) {
|
||||
if (updatedUserIds.get(i) == UserHandle.USER_ALL) {
|
||||
continue;
|
||||
}
|
||||
applyUserRestrictionsLR(updatedUserIds.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user