Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd5af1b0 authored by Elis Elliott's avatar Elis Elliott Committed by Cherrypicker Worker
Browse files

Don't set user restrictions directly on USER_ALL.

Bug: 269984638

Test: btest a.d.c.InstallUnknownSourcesTest
Change-Id: Id71b1fb3af41afe722d336d33628bc1b222205c8
(cherry picked from commit b2d13e50)
Merged-In: Id71b1fb3af41afe722d336d33628bc1b222205c8
parent 707732f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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));
            }
        }