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

Commit 714095c8 authored by Tommy Webb's avatar Tommy Webb Committed by Michael Bestas
Browse files

NPMS: Check if UID is disallowed by transports

The isUidNetworkingBlocked method now also consults Connectivity as to
whether the UID is currently disallowed from accessing networks.

Requires: I2729b61c349ec2812a74d7d1c04b90a58b0f5b88
Change-Id: I1cf17b837af5f62c97d99127e1811aa58ef734bf
parent 5a0dc91a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6243,7 +6243,8 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {

        mStatLogger.logDurationStat(Stats.IS_UID_NETWORKING_BLOCKED, startTime);

        return blockedReasons != BLOCKED_REASON_NONE;
        return blockedReasons != BLOCKED_REASON_NONE
                || mConnManager.isUidCurrentlyDisallowedByPolicy(uid);
    }

    @Override