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

Commit 81a83562 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Update an error message."

parents f32d3a06 137241c7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5971,7 +5971,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            }
            if (activeAdmin.getUid() != mInjector.binderGetCallingUid()) {
                mContext.enforceCallingOrSelfPermission(
                        android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS, null);
                        android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS,
                        "Calling uid " + mInjector.binderGetCallingUid() + " neither owns the admin"
                        + " " + who + " nor has MANAGE_PROFILE_AND_DEVICE_OWNERS permission");
            }
            return activeAdmin.userRestrictions;
        }