- Feb 20, 2024
-
-
Ying Xu authored
Always store the corresponding SubscriptionId together with the Carrier uid so that when the carrier loses the Privilege, both the uid and SubscriptionID will be used in the onCarrierPrivilegesLost callback Bug: 324357121 Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivity.CarrierPrivilegeAuthenticatorTest atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest Change-Id: I28e51c583261a67d4441c6f825ade6781b862ee4
-
- Feb 14, 2024
-
-
Suprabh Shukla authored
-
Motomu Utsumi authored
-
Suprabh Shukla authored
Apps will now lose network access once they are in top-sleeping or higher process state. Adding some cts tests to ensure correct behavior. The tests are using temporarily using junit Assume to skip if the feature flag is enabled to enable a following code migration. Test: atest CtsHostsideNetworkTests BYPASS_INCLUSIVE_LANGUAGE_REASON=Existing method Bug: 304347838 Change-Id: Iba7c7bd01309fa7a301fdc1524033f0fad5ae512
-
- Feb 13, 2024
-
-
Yan Yan authored
-
Yahav Nussbaum authored
* changes: Introduce Powered Off Finding API Add Powered Off Finding operations to NearbyService
-
Yahav Nussbaum authored
Bug: 307898240 Test: atest CtsNearbyFastPairTestCases Test: atest NearbyIntegrationPrivilegedTests Test: atest NearbyIntegrationUntrustedTests Change-Id: I57b37ea796c0791d72fec931f731a0143e816dac
-
Motomu Utsumi authored
-
Remi NGUYEN VAN authored
-
Maciej Żenczykowski authored
-
Motomu Utsumi authored
On V, this feature is enabled on all devices. On U, this feature is enabled if the flag is enabled. Test: TH Change-Id: I025b9a8098a0896be51cf06c5b8262243ba439b7
-
Remi NGUYEN VAN authored
Raise the max listener per client limit from 10 to 200. A frequent use-case for NsdManager is to file a DiscoveryListener, and try to resolve/listen for every service using a ServiceInfoCallback. The current limit of 10 callbacks is easy to hit in that case, since it would happen if there are at least 10 devices on the network. Raise the limit to 200 to avoid such problems. In practice it is very unlikely that there would be more than 200 services on a network; if advertised by different devices, they would barely fit in a /24 IPv4 prefix, so a limit of 200 should generally be high enough. Note that for discovery 200 listeners does not mean that batches of 200 queries will be sent: listeners on the same service type are grouped together so only one query is sent for the type, and results are distributed to matching listeners. Note also that the limit is currently only checked when registering discovery or advertising requests. This should be also checked when registering other kinds of listeners in a future change. Bug: 324377460 Test: atest Change-Id: I86fc00777e9dea3e5192b575581ba562e7401e42
-
Maciej Żenczykowski authored
(this will land in M-2024-05 ie. May mainline tethering module) Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I250b691eb03751da05ce10d41d6721f4964dd1d5
-
- Feb 12, 2024
-
-
Yan Yan authored
The flag com.android.net.flags.ipsec_transform_state gates APIs exposed by the Tethering module, and thus should also be included in Connectivity/common/flags.aconfig Bug: 324278950 Test: make Change-Id: Ia1fe733a4971ac56cae65870a5339362594322e6
-
- Feb 11, 2024
-
-
Maciej Żenczykowski authored
-
- Feb 10, 2024
-
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Suprabh Shukla authored
These can be used by manual or automated tests. Test: Manual by using the `cmd connectivity` shell commands Test: atest CtsNetTestCases:ConnectivityManagerTest Test: atest netd_integration_test Bug: 322562125 Change-Id: I1de55e430141f566e510b37554a9416c4444213b
-
- Feb 09, 2024
-
-
Maciej Żenczykowski authored
(super useful for debugging) Sample output: I NetBpfLoad: NetBpfLoad '/apex/com.android.tethering/bin/netbpfload' starting... I NetBpfLoad: NetBpfLoad api:10000/34 kver:6010019 platform:0 mainline:1 D NetBpfLoad: Found Tethering Apex mounted from blockdev /dev/block/dm-55 I NetBpfLoad: Tethering APEX version 340090000 Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Iaf1bc22b02913ea21ff9368abd9933e6ef4017f1
-
Yan Yan authored
Bug: 319532485 Test: Verified the return value on husky (arm) and cuttlefish (x86_64) Change-Id: I8fd53b0f137ad701e051644eafaa12c2a5cf3e7f
-
Nathaniel Manista authored
This fulfills a "TODO: remove this when there is a riscv64 libcronet" because with https://android-review.googlesource.com/2952606 there is now a RISC-V64 libcronet.
Bug: 276962315 Change-Id: Ia69657b13a35e47852bf2bc46b2aac95fcf46e0a -
Remi NGUYEN VAN authored
-
Maciej Żenczykowski authored
-
- Feb 08, 2024
-
-
Remi NGUYEN VAN authored
Allow all printable ASCII characters in subtypes, instead of only the set of characters allowed in service types. This is still more restrictive than what the spec allows, but allowing random bytes would be harder to manage (especially when displaying the subtypes in logs for example) and there is no known use-case for it. Having the NsdManager API impose more restrictions is probably also best for apps to minimize interoperability problems. Bug: 324377460 Test: atest Change-Id: Id75879a1c3ea6af8d7995b0e8e0dcc06e7160a0a
-
Motomu Utsumi authored
-
Motomu Utsumi authored
-
Motomu Utsumi authored
-
Xiao Ma authored
* changes: Make RtNetlinkRouteMessage constructor visible for testing. Make StructRtMsg constructor visible for testing. Make NduseroptMessage constructor visible for testing.
-
Motomu Utsumi authored
Currently reading trunk stable flag from mainline module is not supported and aosp/2954910 removes util methods to read trunk stable flag. This CL removes unused isTrunkStableFeatureEnabled in Dependencies. Test: TH Change-Id: I3fca329a73c2e249cf48cd01700d719b5f46dbc2
-
Motomu Utsumi authored
Starting thread from constructor could cause thread leak when assumption fails and teardown is not called. This CL moves initialization that starts thread to the setup. Test: TH Bug: 322659435 Change-Id: I8e84c12600a98d8019b7759103032c7d668cecd1
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Treehugger Robot authored
-
Cole Faust authored
-
Maciej Żenczykowski authored
Bug: 324338494 Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ied391f3366c87ffb1010ec6e5ece6604a72a7c9b
-
Motomu Utsumi authored
This reverts commit b0f48902. Reason for revert: Currently reading trunk stable flag from mainline module is not supported. So reverting the CL to avoid confusion. Change-Id: I0db04f28f378399aa299b325312a6af7f45d4f67
-
Maciej Żenczykowski authored
This is a follow up to: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2954728 as a result of taking a close look at all netd.c bpf_get_socket_uid() calls. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I59b08a531a344bdab33a6c35aed210ef9356530c
-
- Feb 07, 2024
-
-
Yuyang Huang authored
-
Ying Xu authored
Bug: 315835605 Test: atest android.net.cts.NetworkRequestTest Change-Id: Ie4ed844d59a20bfd1a222fb6a85ad14c08f2efbd
-
Nagendra Prasad Nagarle Basavaraju authored
- Implement handleSetSatelliteNetworkPreference() at ConnectivityService to create multi layer request with preference order PREFERENCE_ORDER_SATELLITE_FALLBACK. - unit test coverage Bug: 320514105 Test: m and atest FrameworksNetTests Change-Id: I3f71104f8c3c998599eaab71ae4076985f4bed77
-