Skip to content

Commit 43b5aa6

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 d473eff commit 43b5aa6

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
@@ -296,7 +296,7 @@ public List<UserInfo> getUsers(boolean excludeDying) {
296296
@Override
297297
public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
298298
if (userId != UserHandle.getCallingUserId()) {
299-
checkManageUsersPermission("getting profiles related to user " + userId);
299+
checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
300300
}
301301
final long ident = Binder.clearCallingIdentity();
302302
try {

0 commit comments

Comments
 (0)