Skip to content

Commit 90ea10c

Browse files
Sudheer Shankagitbuildkicker
authored andcommitted
DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.
Bug: 29189712 Bug: 30317026 Bug: 30235113 Change-Id: Icced9805a56675e86f894c458c4a5a0048fd54c0
1 parent 5aa2601 commit 90ea10c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/core/java/com/android/server/pm/UserManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public List<UserInfo> getUsers(boolean excludeDying) {
301301
@Override
302302
public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
303303
if (userId != UserHandle.getCallingUserId()) {
304-
checkManageUsersPermission("getting profiles related to user " + userId);
304+
checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
305305
}
306306
final long ident = Binder.clearCallingIdentity();
307307
try {

0 commit comments

Comments
 (0)