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

Commit 03409f56 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

base: allow parental control to be activated with accounts

parent d835ef89
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15284,6 +15284,10 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
        if (!isAdb(caller)) {
            return true;
        }
        // Allow parental control with accounts
        if (owner != null && "foundation.e.parentalcontrol".equals(owner.getPackageName())) {
            return false;
        }
        wtfIfInLock();
        return mInjector.binderWithCleanCallingIdentity(() -> {