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

Commit f217746e authored by Jonathan Scott's avatar Jonathan Scott
Browse files

Fix applicationrestrictions with delegate.

Test: btest CtsDevicePolicyTestCases
Bug: 269496796
Change-Id: Ic4f1eb43c0bff6ed9fc51f683690e1e1a66feef5
parent 4526d3fb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -12597,7 +12597,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            }
            return policies.get(enforcingAdmin).getValue();
        } else {
            Objects.requireNonNull(who, "ComponentName is null");
            Preconditions.checkCallAuthorization((caller.hasAdminComponent()
                    && (isProfileOwner(caller) || isDefaultDeviceOwner(caller)))
                    || (caller.hasPackage() && isCallerDelegate(caller,