- Nov 27, 2023
-
-
Yan Yan authored
Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: I42e423c09ffb733a809636360468c963c7864872
-
- Nov 22, 2023
-
-
Motomu Utsumi authored
-
Motomu Utsumi authored
framework-connectivity-flagged-apis-droidstubs is used by jarjar-rules-generator to avoid jarjaring flagged apis. But, this usage of --show-annotation FlaggedApi in the flag is not supported. So this CL removes --show-annotation FlaggedApi. As far as framework-connectivity-flagged-apis-droidstubs contains flagged APIs, it's fine that this droidstubs also contains non-flagged APIs. Test: TH Bug: 312408311 Change-Id: I2f1f5624d98873420c0c36ac6e31386102211045
-
Xiao Ma authored
Test: TH Change-Id: I260665a0afa056e32021c5255a17ea0af59b6575
-
Paul Hu authored
-
Chiachang Wang authored
-
Yuyang Huang authored
-
Kangping Dong authored
-
KH Shi authored
-
Mark Chien authored
-
Paul Hu authored
-
Kangping Dong authored
Per API council feedback and API guideline at go/android-api-guidelines#provide-executor, it should call Binder.clearCallingIdentity() before invoking the app-supplied callbacks so that the app doesn't use the system-server's identity for permission check in the callback. Bug: 309952666 Test: atest ThreadNetworkUnitTests Change-Id: I3cfbce29c0a516506bb76a44b151a583c8477806
-
Chiachang Wang authored
This is a clean up commit to address TODO for resetting the LISTEN_ACTIVITY_TIMEOUT_MS timer as aosp/2188755 was shipped. Fix: 252972908 Test: atest CtsNetTestCases Change-Id: Ibc1a1c68883a3772729f24b01f9dc8d3cc37c1eb
-
Yan Yan authored
-
- Nov 21, 2023
-
-
Yan Yan authored
- Change class names to start with Xfrm or StructXfrm for consistency with other messages and structs - Create xfrm sub-folder for xfrm messages - Add "finals" to input parameters Bug: 308011229 Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.netlink (new tests added) Change-Id: Id6d34b4549bbc1890b3f4dd9f1638977f66e3236
-
Mark Chien authored
-
Mike Yu authored
-
Ken Chen authored
It's no longer needed because the only useful version is v1 and all functions are deprecated in v2. Bug: 298594687 Test: m Change-Id: I0226b7f3d3cda6fb897e02a035e84943913a944e
-
Ken Chen authored
-
Paul Hu authored
Also add MonitorThreadLeak annotation to check thread leak. Test: atest ConnectivityCoverageTests --test-filter mdns* Change-Id: Ie47f30360e36784428173f6cc87a4a6b09826405
-
Mark authored
This is no-op change. Test: atest TetheringTests Change-Id: Ia5c68c403bdaa981f35ecad8ffc3e034746dfdea
-
Paul Hu authored
The NsdManager constructor creates a new thread, which is not intended to be closed. However, the test in NsdMangerTest and NsdServiceTest create a new NsdManager instance, resulting in a large number of threads running during the tests. This can lead to an out-of-memory error for the tests. To resolve this issue, use the common singleton thread ConnectivityThread to handle tasks from the various instances. Fix: 308544734 Test: atest ConnectivityCoverageTests --test-filter Nsd* Change-Id: I1908a2bb1bd20da8e0498353bca26f7e89e16626
-
Mark authored
Instead of passing state machine to UpstreamNetworkMonitor, wrapped it by an interface would have two benefits: 1. Easier for testing. 2. Isolate state machine operation in callback. Test: atest TetheringTests Change-Id: I2a97fd5cbc8c49df8c3c98428c6570916ab31ea5
-
Yan Yan authored
-
Yan Yan authored
Test: Owners file changes only; no code changes Change-Id: I28b407a269befd4ce4e61c49dae435ac1b4ef4aa
-
Ken Chen authored
The only version of mdns_aidl_interface supported by Netd is V1. After that, the entire interface has been deprecated (which is the V2). The latest stable version is no longer meaningful because no one is supposed to use V2. Bug: 298594687 Test: m Change-Id: I9ac8199312cdc5d829889ea562979cad7d3bf054
-
- Nov 20, 2023
-
-
KH Shi authored
1. assertEquals syntax is (expected, actual) and not the other way around 2. use assertArrayEquals to compare arrays Test: atest TetheringTests Bug: 312072637 Change-Id: I5eb0c270323253f648d3a8fd488506b9ad1ca6a1
-
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
-
Mike Yu authored
Bug: 240259333 Test: atest ConnectivityCoverageTests Change-Id: I92ab5e1eef7ba1715176e3628222084067d14603
-
Lorenzo Colitti authored
-