Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12d23a13 authored by bohu's avatar bohu Committed by Sudheer Shanka
Browse files

Emulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell

BUG: 31648062
Change-Id: I9679c18c0e3611ebc9779408826f182ea8f1e88b
(cherry picked from commit 57f47e8490b68678fd123cdc111d5073ec994382)
parent 4aed7713
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -592,7 +592,7 @@ public class UserManagerService extends IUserManager.Stub {
    @Override
    @Override
    public int[] getProfileIds(int userId, boolean enabledOnly) {
    public int[] getProfileIds(int userId, boolean enabledOnly) {
        if (userId != UserHandle.getCallingUserId()) {
        if (userId != UserHandle.getCallingUserId()) {
            checkManageUsersPermission("getting profiles related to user " + userId);
            checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
        }
        }
        final long ident = Binder.clearCallingIdentity();
        final long ident = Binder.clearCallingIdentity();
        try {
        try {