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

Commit 505ab55a authored by Irem Uguz's avatar Irem Uguz Committed by Android (Google) Code Review
Browse files

Merge "Check for SystemAuthority on PolicyEnforcementInfo" into main

parents e971bdaa 5ae1aad1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -78,9 +78,7 @@ public class PolicyEnforcementInfo {
    }

    private static boolean isSystemAuthority(EnforcingAdmin enforcingAdmin) {
        // System authorities are implemented as UnknownAuthority.
        // TODO(b/414733570): Add SystemAuthority class to represent system authority properly.
        return enforcingAdmin.getAuthority() instanceof UnknownAuthority;
        return enforcingAdmin.getAuthority() instanceof SystemAuthority;
    }

    private static boolean isSupervisionRole(EnforcingAdmin enforcingAdmin) {