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

Commit c3959973 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Exempt DMRH from permission check to keep existing behavior

Flag: EXEMPT bugfix
Test: TH
Bug: 428575270
Change-Id: Ia8f8741b279edb8be21fb53bf0f306b04831a812
parent 11e94031
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -13385,7 +13385,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        int affectedUserId = parent
                ? getProfileParentId(caller.getUserId()) : caller.getUserId();
        if (!isCallerDevicePolicyManagementRoleHolder(caller)) {
            enforcePermission(MANAGE_DEVICE_POLICY_APP_RESTRICTIONS, caller.getPackageName());
        }
        EnforcingAdmin enforcingAdmin =  getEnforcingAdminForCaller(who, caller.getPackageName());
        Bundle bundle = mDevicePolicyEngine.getLocalPolicySetByAdmin(