android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chiachang Wang ac2e8f354d Remove the UID range check for TCP sockets
The original patch (aosp/2891011) incorrectly counted TCP
sockets with keepalive enabled for VPNs. This issue was
caused by the UID range verification. On bypassable VPNs,
the socket mark is always correct. It's possible for an
app that is not in the UID ranges to establish a socket
on the VPN. But that socket should be counted for the
purposes of keepalive. The old code would correctly count
it and the new code will incorrectly not count it. Also,
the UID range verification does not help on non-bypassable
VPNs since the socket mark is always the mark of default
network, not the socket mark of the VPN.

Instead of reverting the entire patch, this commit
removes the UID range mechanism. The code refactoring from
the original commit (which used structured classes to read
socket information) has been kept as it is a valuable
improvement.

Bug: 320842519
Test: atest FrameworksNetTests
Change-Id: I00731796144c982b9fd4d9771f3d0db1f1529a89
2024-01-19 02:50:35 +00:00
..
connectivity Remove the UID range check for TCP sockets 2024-01-19 02:50:35 +00:00
connectivityservice Merge "Implement NetworkRequestsState atom" into main 2024-01-17 01:33:06 +00:00
ethernet Connectivity Tests: join handler thread after calling quitSafely 2023-03-17 01:01:09 -07:00
net [AF03] Adopt FastDataInput 2023-12-26 15:42:09 +08:00
BpfLoaderRcUtilsTest.kt Log bpf rc file if it differs from the template files. 2023-11-29 19:58:15 +09:00
BpfNetMapsTest.java Merge changes Ie1a36c3c,Id727cf7b,Ifba198d9 into main 2023-11-07 19:32:51 +00:00
ConnectivityServiceTest.java Use MonitorThreadLeak in ConnectivityService tests 2024-01-11 19:19:13 +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 Stop registering native mdns service 2023-12-27 13:54:50 +00:00
VpnManagerServiceTest.java Update VPN tests to mock out createAttributionContext 2023-06-12 18:06:47 +00:00
VpnTestBase.java Test VPN app exclusion 2022-06-29 06:15:41 +00:00