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

Skip to content
Commit 05929f52 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Use metered firewalls for metered uid policy

Since the underlying code in connectivity manager is moving to metered
firewalls to denote the uid policy for metered restrictions, NPMS can
start using them now.
Rather than having a single PENALTY_BOX, we have separate firewalls for
user and admin imposed restrictions. Once NPMS uses the appropriate
firewalls for these, it does not need to separately convey the blocked
reasons for metered restrictions on uids to the ConnectivityManager.

Flag: com.android.server.net.use_metered_firewall_chains

Test: atest FrameworksServicesTests:NetworkManagementServiceTest
Test: atest FrameworksServicesTests:NetworkPolicyManagerTest
Test: atest CtsHostsideNetworkPolicyTests

Bug: 336693007
Change-Id: I8da11ff663257d3dafcb5e22ae3313a9255ef0a6
parent c595dc65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment