Don't set user restrictions directly on USER_ALL.
Bug: 269984638
Test: btest a.d.c.InstallUnknownSourcesTest
Change-Id: Id71b1fb3af41afe722d336d33628bc1b222205c8
(cherry picked from commit b2d13e50b4)
Merged-In: Id71b1fb3af41afe722d336d33628bc1b222205c8
This commit is contained in:
committed by
Cherrypicker Worker
parent
707732f452
commit
fd5af1b03c
@@ -2592,6 +2592,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