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

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

fixup! Firewall: Migrate to POLICY_REJECT_ALL

[LineageOS only!]

An essential part of this change was unintentionally part of CalyxOS's
"Allow network access for Lupin" instead.

Change-Id: I21ad6dde2688daf83412f94d5cd1c58607ddc594
parent 6f9ef53d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3071,6 +3071,13 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
                Slog.w(TAG, "unable to update policy on UID " + uid);
            }
        }

        // There is nothing to migrate if coming from pre-12 or from nothing.
        final boolean isMigratingFromAtLeastAndroid12 = version >= VERSION_SUPPORTED_CARRIER_USAGE;
        if (lineageVersion < LINEAGE_VERSION_REINSTATED_POLICY_REJECT_ALL
                && isMigratingFromAtLeastAndroid12) {
            migrateToPolicyRejectAll();
        }
    }

    /**