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

Commit 1254733e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow QUERY_ADMIN_POLICY holders query admins" into main

parents a688806e b45bb48c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16412,7 +16412,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
    @Override
    public android.app.admin.EnforcingAdmin getEnforcingAdmin(int userId, String identifier) {
        Preconditions.checkCallAuthorization(isSystemUid(getCallerIdentity()));
        Preconditions.checkCallAuthorization(canQueryAdminPolicy(getCallerIdentity()));
        return getEnforcingAdminInternal(userId, identifier);
    }