Merge "Emulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell" into nyc-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bdd0a2b14a
@@ -571,7 +571,7 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
@Override
|
||||
public int[] getProfileIds(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 {
|
||||
|
||||
Reference in New Issue
Block a user