- Feb 15, 2024
-
-
Yan Yan authored
Rename API methods and update API docs as per API council feedbacks Bug: 316603231 Test: make update-api && make Change-Id: Ibb1f58792d2e40ef1084c2b532e999a516a87b37
-
- 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
-
Nagendra Prasad Nagarle Basavaraju authored
- create SatelliteAccessController class to identify role sms and satellite communication enabled uid's, to keep track of role changes through OnRoleHoldersChangedListener and to request to create multi layer request to ConnectivityService. - unit test coverage Bug: 320514105 Test: m and atest FrameworksNetTests Change-Id: I95086f7a4fd6fe1261f432e605d792204ff5310b
-
Nagendra Prasad Nagarle Basavaraju authored
This commit also updates to use V14 dnsresolver APIs which was V13. Bug: 320514105 Test: m & atest FrameworksNetTests Change-Id: I6e92f4d99e0eba3b5d1d5e45bf11e5e945ea43f1
-
Ying Xu authored
This CL allows the Carrier Config app to request restricted WiFi nework by setting the correspoding subscription ID in the network request. Bug: 315835605 Test: atest android.net.cts.NetworkRequestTest atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivity.CarrierPrivilegeAuthenticatorTest atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest Change-Id: I237e692d092ff5f969ce4b7962f6d58099a6f3a9
-
Motomu Utsumi authored
-
Yuyang Huang authored
-
Handa Wang authored
Apps that target an SDK before {@link Build.VERSION_CODES.VANILLA_ICE_CREAM} will not see networks with this capability unless they explicitly set the NET_CAPABILITY_LOCAL_NETWORK in their NetworkRequests. In this way, `NET_CAPABILITY_LOCAL_NETWORK` should be public. Bug: 313000440 Test: None Change-Id: I44d9cf3ecf5da471a627696f3d2680f35d4b122d
-
Maciej Żenczykowski authored
Linux kernel implementation is: sock* sk_to_full_sk(sk): return (sk && sk->sk_state == TCP_NEW_SYN_RECV) ? inet_reqsk(sk)->rsk_listener : sk; bool sk_fullsock(sk): return (1 << sk->sk_state) & ~(TCPF_TIME_WAIT | TCPF_NEW_SYN_RECV) u32 bpf_get_socket_uid(skb): sk = sk_to_full_sk(skb->sk); if (!sk || !sk_fullsock(sk)) return overflowuid; kuid = sock_net_uid(sock_net(sk), sk); return from_kuid_munged(sock_net(sk)->user_ns, kuid); u64 bpf_get_socket_cookie(skb): return skb->sk ? __sock_gen_cookie(skb->sk) : 0 Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I0f9c2ffc24821068ebd2e5712789ff68aa196c48
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I8833451acc031b8b2137d23e9a6763851f149081
-
- Feb 06, 2024
-
-
Jeffrey Vander Stoep authored
-
Oriol Prieto Gascó authored
-
- Feb 05, 2024
-
-
Kangping Dong authored
Per CTS review comment in aosp/2949385: ``` You might want to make this a bit larger, otherwise if some new error codes are added in the future in a mainline update, already released CTS test packages will start to fail. That should be fixed by mCTS, but since mCTS is not in place yet, it's best to be safe ``` This commit moves the too-large error code check into unit test to avoid potential CTS compatibility issues. Bug: 323791003 Change-Id: If99191630e1044cb8f5ed189bf79567cd51c3905
-
Jeff Vander Stoep authored
This is needed to upgrade the android_logger crate from 0.12.0 to 0.13.3. with_max_level provides the same functionality as with_min_level. The renaming is admittedly confusing, but the new name is accurate and it makes sense that they deprecated and then removed the previously poorly named with_min_level. See crate documentation [1] and code [2]. [1]: https://docs.rs/android_logger/0.12.0/android_logger/struct.Config.html#method.with_min_level [2]: https://docs.rs/android_logger/0.12.0/src/android_logger/lib.rs.html#227 Bug: 322718401 Test: build and run CF with the change. Test: m aosp_cf_x86_64_phone Change-Id: Icbfe09b864ce3d52953bf93ca98b7a2db0990e68
-
- Feb 04, 2024
-
-
Kangping Dong authored
-