Merge "Emulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell" into nyc-mr2-dev

This commit is contained in:
Sudheer Shanka
2017-01-14 00:10:05 +00:00
committed by Android (Google) Code Review

View File

@@ -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 {