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

Commit e31ceb8e authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Jessica Wagantall
Browse files

DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.

CYNGNOS-3235
Bug: 29189712
Bug: 30317026
Bug: 30235113
Change-Id: Icced9805a56675e86f894c458c4a5a0048fd54c0
(cherry picked from commit d2569fc3)
parent 2f0a585c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -296,7 +296,7 @@ public class UserManagerService extends IUserManager.Stub {
    @Override
    public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
        if (userId != UserHandle.getCallingUserId()) {
            checkManageUsersPermission("getting profiles related to user " + userId);
            checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
        }
        final long ident = Binder.clearCallingIdentity();
        try {