android_packages_modules_Co.../tests
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
..
benchmark [AF06] Fill file attributes metrics 2023-12-25 10:39:59 +08:00
common [mdns] add support for advertising subtypes 2023-12-18 10:03:16 +08:00
cts Fix replying to queries via unicast 2024-01-15 20:26:28 +09:00
deflake DO NOT MERGE: Disable FrameworksNetTests 2021-10-04 18:59:14 +08:00
integration Use MonitorThreadLeak in ConnectivityService tests 2024-01-11 19:19:13 +09:00
mts Write Data Saver setting to BPF map 2023-10-31 01:36:03 +00:00
native Update to fmtlib 10.1.1 2023-11-10 01:53:03 +00:00
smoketest Workaround prebuilt name conflict for service-connectivity 2022-05-26 09:37:05 +00:00
unit Remove the UID range check for TCP sockets 2024-01-19 02:50:35 +00:00