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:
Elis Elliott
2023-02-20 17:47:02 +00:00
parent 87bab4610c
commit b2d13e50b4

View File

@@ -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));
}
}