android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motomu Utsumi 11d3345daa Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX
Follow up CLs will update CS to generate blocked reason from bpf map
instead of asking NPMS.

However, one issue is NPMS set PENALTY_BOX for
BLOCKED_METERED_REASON_USER_RESTRICTED and
BLOCKED_METERED_REASON_ADMIN_DISABLED without telling the reason.
So, CS can not know the reason of PENALTY_BOX.

This CL add new firewall chain and match to distinguish reasons.
NPMS must call setUidFirewallRule with
FIREWALL_CHAIN_METERED_DENY_USER or FIREWALL_CHAIN_METERED_DENY_ADMIN
based on the reason so that CS can know the reason of restriction.

Bug: 332628891
Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: Ia4ad4bdb345abc22c782630e828edfad2452db36
2024-04-23 15:04:28 +09:00
..
connectivity Use NsdServiceInfo ifIndex in MdnsDiscoveryManager 2024-04-03 12:58:51 +09:00
connectivityservice Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX 2024-04-23 15:04:28 +09:00
ethernet Allow HW address retrieval from EthernetNetworkFactory 2024-04-01 13:45:19 -07:00
net Make cache duration and max entries configurable 2024-04-08 10:43:48 +08:00
BpfNetMapsTest.java Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX 2024-04-23 15:04:28 +09:00
ConnectivityServiceTest.java Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX 2024-04-23 15:04:28 +09:00
IpSecServiceParameterizedTest.java Reland "Support getting transform state in IpSecService" 2023-12-12 22:19:55 +00:00
IpSecServiceRefcountedResourceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceTest.java Experimental support for IPv6 UDP encap. 2023-02-08 15:05:07 +09:00
IpSecXfrmControllerTest.java [XFRM_MSG_NEWSA] Support polling SA state with netlink message 2023-12-11 18:43:34 +00:00
IpSecXfrmControllerTestHex.java [XFRM_MSG_NEWSA] Support polling SA state with netlink message 2023-12-11 18:43:34 +00:00
LegacyTypeTrackerTest.kt Build ethernet framework source into framework-connectivity-tiramisu 2022-03-14 14:06:35 +00:00
NetIdManagerTest.kt Address comments on aosp/1781202 2022-08-17 07:11:55 +00:00
NsdServiceTest.java Report sent query count in resolution stop metrics 2024-04-10 09:21:29 +00:00