- Nov 30, 2023
-
-
Motomu Utsumi authored
aosp/2792436 updated NetworkAgent and NetworkAgentTest. But the NetworkAgent change was not compatible with the old NetworkAgentTest. This CL makes NetworkAgent change to compatible with the old NetworkAgentTest. aosp/2851330 will update NetworkAgentTest to support NetworkAgent change done in aosp/2792436. Once the old cts is EOL, workaround in NetworkAgentTest and NetworkAgent can be removed. Bug: 310124646 Test: atest NetworkAgentTest Change-Id: Ic99b0ab72526a9ba22653f5bb132214ef0814440
-
- Nov 21, 2023
- Nov 20, 2023
-
-
KH Shi authored
-
Ken Chen authored
MDNS native support from Netd is stopped in V. Bug: 298594687 Bug: 312092770 Test: run CtsNetTestCasesMaxTargetSdk30 on V, no fatal exception. Change-Id: I3774288cdf5b82e6aeeee7ee2d030fdc524e1aa8
-
KH Shi authored
TetherUpstream6Key#src64 should be stored in network order. Use a big-endian ByteBuffer to retrieve a value stored in network order is actually converts it into native order, which is little-endian in Android. In this CL, we changed it to use byte[] instead of long to store the top 64-bits of the source prefix. Test: atest TetheringTests manual test with IPv6-only tethering upstream, check BPF stats. Bug: 312072637 Change-Id: I79f9282d5eda28328aa6a764ea92b086d6285133
-
Jean Chalard authored
* changes: Rename hasCarrierPrivilege... to isCarrierServiceUid... Detect discrepancies in subIds Allow carrier service UIDs to access their own WiFi networks.
-
Chalard Jean authored
Bug: 308519360 Test: CarrierPrivilegeAuthenticatorTest Change-Id: I59164be00a9e1fcced8538537c1dcabd214f2170
-
Chalard Jean authored
This method tests whether the UID is the carrier service UID, not whether the UID has carrier privilege. Note that in normal operation, the carrier service UID always has carrier privilege. Test: NetworkAgentTest Change-Id: I30f8814cc0419a2d6bdbe75fdc82156516eba026
-
Chalard Jean authored
The subIds in network capabilities are stored both in the network specifier (for telephony) or transportInfo (for wifi), and in a separate field in NC, which are seeded differently. These should in principle never diverge if there is no bug in the network factories code, but since this code is OEM-specific, it's very hard to know whether it's the case. Historically CarrierPrivilegeAuthenticator has been using the specifier / info to find out about the sub id, but reading from NetworkCapabilities#getSubscriptionIds() would be both nicer and more future-proof. Log a terrible failure in case they differ, so we can confidently switch to the latter if we don't see any such log. Change-Id: Ifdf67318ceb881349e322591632c18a4dbf218e1 Test: NetworkAgentTest
-
Chalard Jean authored
Bug: 236669534 Test: New tests in this patch Change-Id: If312b8f8359888558969c022811d6b203be602a0
-
Jean Chalard authored
-
Ken Chen authored
-
Chalard Jean authored
This tests that the network providers are subject to appropriate limitations as to what they can set as allowedUids – both in the positive (can do) case, and the negative (can't do) case. Test: this Change-Id: I115e2a4bc02ddcd03ecf2f35130fcb0378da22bd
-
Lorenzo Colitti authored
-
- Nov 19, 2023
-
-
Treehugger Robot authored
-
- Nov 17, 2023
-
-
Michał Brzeziński authored
-
Michał Brzeziński authored
This reverts commit 30fb9b1c. Reason for revert: Potential culprit for CtsLibcoreTestCases test failures b/311612650 Change-Id: Ie7de97159f92a174476a8fa8ea83e3e01914aea1
-
Handa Wang authored
-
Chiachang Wang authored
-
Junyu Lai authored
-
Junyu Lai authored
This change only outputs thread count differences instead of listing all threads. Additionally, it ignores threads with 1 count, which effectively filter out threads created by the test runner or other system components, such as hwuiTask*, queued-work-looper, SurfaceSyncGroupTimer, RenderThread, and Time-limited test. Sample Output: [1122/3060] android.net.connectivity.com.android.server.CSLocalAgentCreationTests#ThreadLeakMonitor: FAILED (1ms) STACKTRACE: java.lang.IllegalStateException: Unexpected thread changes: removed=[] added=[] updated=[TestAlarmManager=25,CSTestHandler=25] Test: atest ConnectivityCoverageTests (with shouldThreadLeakFailTest set to true) Bug: 310581973 Bug: 307693729 Change-Id: I085799ebbd69c29f833335684de208105302e012
-
Handa Wang authored
This CL lets ThreadNetworkControllerService calls the LocalNetworkConfig API to set up border routing between Thread and infrastructure network. Bug: 299552948 Bug: 305861411 Test: Verified on Cuttlefish that forwarding is set up. Change-Id: I8b2f015d9d6248bfb1cd9ac806dc8664970a26d2
-
Jean Chalard authored
-
Yang Sun authored
-
Remi NGUYEN VAN authored
The previous message is not clear about the fact that there is a SIM card inserted. Clarify it. Change-Id: I2391d9fa7762b6225438049199f9f178a8b24d41
-
Motomu Utsumi authored
-
Chiachang Wang authored
Bug: 161776767 Test: atest FrameworksNetTests Change-Id: Id2cef626c5893a4ff29161c801e497b7de551136
-
Maciej Żenczykowski authored
-
- Nov 16, 2023
-
-
Yan Yan authored
Add xfrm_address_t and xfrm_usersa_id structs Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: I552983d7e768e7fb8ba307ffc55060c8b35e7436
-
Ivo Kay authored
Test: atest FrameworksNetTests CtsNetTestCases Bug: 307217169 Change-Id: I006e3191a8c6100af3d2906d5d37f4e38a3db519
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Hansen Kurli authored
-
Chalard Jean authored
As a specialized network, a network with PRIORITIZE_* is not generally a good default network, and might cause unexpected charges if allowed to become one. Test: CSDefaultNetworkTests Change-Id: I8f7184f80bb987da720bd067862bd7a546a38e26
-
Jean Chalard authored
-
Kangping Dong authored
-
Chalard Jean authored
Ideally the rules should be set up before onAvailable is sent, but onLocalNetworkChanged should be sent after. The previous code had CSLocalAgentTests#testForwardingRules flaky because it was waiting for onAvailable and immediately checking that the routing rules have been set up. There are other ways to fix this flake (e.g. wait for onLocalNetworkChange in the test or add a timeout on the verify(netd) call) but this patch probably implements the best production code behavior. Bug: 309688089 Test: CSLocalAgentTests#testForwardingRules 1'000 times Before this patch : flakes after 50~200 iterations After this patch : no flake in 1'000 iterations Change-Id: I4dcccaa3607c1e28aa89f268f0c721d87b1e9466
-
Chiachang Wang authored
-
Jean Chalard authored
-