From 90ea10c4d3e4aceba98276f5f16389aa6f99584a Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Fri, 29 Jul 2016 10:50:10 -0700 Subject: DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. Bug: 29189712 Bug: 30317026 Bug: 30235113 Change-Id: Icced9805a56675e86f894c458c4a5a0048fd54c0 --- services/core/java/com/android/server/pm/UserManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/core') diff --git a/services/core/java/com/android/server/pm/UserManagerService.java b/services/core/java/com/android/server/pm/UserManagerService.java index 96d505b..583d764 100644 --- a/services/core/java/com/android/server/pm/UserManagerService.java +++ b/services/core/java/com/android/server/pm/UserManagerService.java @@ -301,7 +301,7 @@ public class UserManagerService extends IUserManager.Stub { @Override public List 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 { -- cgit v1.1