Commit graph

75,123 commits

Message SHA1
Move buildtools/third_party/libc++[abi] to third_party in Cronet's copybara
Test: None
Change-Id: Iaa00d4d383f84fbabe346cbe9a929ba471d68297

Mohannad Farrag   commited 2023-09-08 09:23:25 +00:00
c4daa59cd7
Cronet Import: Add jni_zero to the list of third_parties
Test: None
Change-Id: Iba6f410c23bdabbb5559772039b4242965e720a7

Mohannad Farrag   commited 2023-09-08 09:23:03 +00:00
eaba52172c
Merge "Delay frozen app sockets close until the cellular modem wakes up" into main
Motomu Utsumi   authored and   Gerrit Code Review   commited 2023-09-05 09:11:01 +00:00
4e95ea0740
Merge "Update permission check for offloadEngine registration" into main
Yuyang Huang   authored and   Gerrit Code Review   commited 2023-09-05 08:45:39 +00:00
65f96123a2
Merge "Send OffloadServiceInfos when registerOffloadEngine is called" into main
Yuyang Huang   authored and   Gerrit Code Review   commited 2023-09-05 07:05:05 +00:00
2be259b9cf
Update permission check for offloadEngine registration
For an app to register itself as an offloadEngine, it must have either
of the following permissions: NETWORK_STACK,
PERMISSION_MAINLINE_NETWORK_STACK, NETWORK_SETTINGS,
REGISTER_NSD_OFFLOAD_ENGINE.

Bug: 294777050
Test: atest CtsNetTestCases FrameworksNetTests
Change-Id: I19fe9b996a02b1ae23116c02a1b8406d93b3ecf1

Yuyang Huang   commited 2023-09-05 14:53:51 +09:00
8e6fbc8c1a
Merge "Factor out remoteauth dependencies to variables" into main
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2023-09-05 04:22:06 +00:00
9bfa7ac0b9
Delay frozen app sockets close until the cellular modem wakes up
Closing TCP sockets sends RST packets. If the cellular modem is idle,
sending RST packets will wake the modem up and consume battery.

This CL adds delay_destroy_frozen_sockets_version flag.
When this flag and destroy_frozen_sockets_version is enabled,
ConnectivityService delays closing socket until the cellular modem wakes up.
Pending frozen sockets are closed also when cellular network becomes no
longer the default network.

This CL also adds flag status and pending uids to the dump.

Bug: 284900338
Test: FrameworksNetTests
Change-Id: I2562568390dda36d02f72afb3a96f824788964c0

Motomu Utsumi   commited 2023-09-04 18:04:31 +09:00
188bfd36da
Only use TEST_APK_NEXT starting from V
The Next app is only necessary in development branches and right now the
in-development SDK is V.

Test: TH
Change-Id: I6aa72d70bc124ae7cf40962b172965d1f0fdb437

Yuyang Huang   commited 2023-09-03 10:21:07 +00:00
04d1ce9ea2
[nearby] Move NearbyIntegrationUntrustedTests and NearbyIntegrationPrivilegedTests from presubmit to postsubmit
The test runs for over 20min on several devices and we should move it to postsubmit.

Test: -m
Merged-In: Ie21c4ccece686896870c12486f55fe48840bdb1b
Change-Id: I4f5f8336bb8f952db062f927f79304df2f07cdeb

Xinyi Zhou   commited 2023-09-01 19:30:18 +00:00
72bbb446ef
Merge "Implement Discovery PLATFORM logic in Rust" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-09-01 16:28:34 +00:00
9cdea69732
Merge changes Ib5f541ed,Iff6a3cb1,I2ebd5c7a into main
* changes:
  [remoteauth] Add UwbRangingSession
  [remoteauth] Implement RangingSession
  [remoteauth] Implement RangingManager

Jin Chen   authored and   Gerrit Code Review   commited 2023-08-31 23:02:08 +00:00
fafedb40c9
Implement Discovery PLATFORM logic in Rust
This commit changes implementation of Platform from async to callback
patternintr

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: I50d0297725dce3fc3b846c9fb059c2242adad746

Igor Zaslavsky   commited 2023-08-31 22:51:06 +00:00
2974a10216
Merge "Created empty framework-location non-updatable module" into main
Mark White   authored and   Gerrit Code Review   commited 2023-08-31 16:00:53 +00:00
e695330a89
Factor out remoteauth dependencies to variables
This will allow using different values for the variables without having
merge conflicts in the dependencies list for each build rule.

Bug: 295788084
Test: m
Change-Id: I7b64a5a01d1f8139e7ce30ce95903d71cb09de9f

Remi NGUYEN VAN   commited 2023-08-31 19:08:17 +09:00
c41daa4106
Send OffloadServiceInfos when registerOffloadEngine is called
When the OffloadEngine is registered, it should get notice about all the
currently offloaded service.

Bug: 297314970
Test: atest CtsNetTestCases
Change-Id: I1b977a40476a1f5c30a075b559e72656a42865ae

Yuyang Huang   commited 2023-08-31 17:44:28 +09:00
c275a9e7ef
Merge "Relief unnecessary dependencies of code order" into main
KH Shi   authored and   Gerrit Code Review   commited 2023-08-31 05:36:40 +00:00
c022bd47a8
Merge "Removing SystemApi added in aosp/2685327" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-08-31 03:27:01 +00:00
e423ae1076
[nearby] Remove the NearbyIntegrationUiTests from presubmit target
Test: -m
Fix: 298265438
Change-Id: I574c31330f079689bc054e96acbc46f4f1e8fb00
Merged-In: I724dec0454534b36e3a7ce2727243071dad8236e

Xinyi Zhou   commited 2023-08-30 23:09:31 +00:00
2c155418a6
Merge "Implement Discovery PLATFORM logic in Rust" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-08-30 21:44:52 +00:00
6b5e8a11b9
Removing SystemApi added in aosp/2685327
Removing all SystemApi added in aosp/2685327 until M-2023-11 train  release
Apis will be placed back after that

Test: built successfully.
Bug: 290092977
API-Coverage-Bug: 294934095
Change-Id: I12e8b21e6d21541930acdd14322156ad75b27be5

Igor Zaslavsky   commited 2023-08-30 21:17:28 +00:00
edb12a4234
Created empty framework-location non-updatable module
Bug: 289776578
Test: CtsLocationCoarseTestCases CtsLocationFineTestCases CtsLocationGnssTestCases CtsLocationNoneTestCases CtsLocationPrivilegedTestCases

Change-Id: Ia57b9f10c8f506877003adf1d9b6e7201654921b

Mark White   commited 2023-08-30 20:44:07 +00:00
e4d44639cb
[nearby][clean up] Remove HalfSheetUX from apex
Dead code clean up

Test: -m
Bug: 292812342
Bug: 297413048
Merged-In: I7efa92469f0c061a972a7dadf6a38686b78c61b4
Change-Id: Icc2f1f206cfab99694f68a60082d4743d739cfe9

Xinyi Zhou   commited 2023-08-30 20:36:07 +00:00
ca314c2d71
Implement Discovery PLATFORM logic in Rust
This commit introduces NativeRemoteAuthService used by ReamoteAuth as an
interface toward Rust platform and protocol implementation

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: If2fcfee1c637d17bbc417a26ea39dc97062e6bc3

Igor Zaslavsky   commited 2023-08-30 19:11:29 +00:00
79bb3ca10f
Relief unnecessary dependencies of code order
The original code requires updating mLastIPv6LinkProperties before
calling updateIpv6ForwardingRules because mLastIPv6LinkProperties will
be used inside an internal function later. Remove this unnecessary
dependency by passing the interface name into the function.

Bug: 294025403
Test: atest TetheringTests
Change-Id: I5699fba3d7caf3314d102b643b02da2b2797dd66

KH Shi   commited 2023-08-30 09:33:30 +00:00
6877034343
Address flake in testNetworkCallbackMaximum
These flake occasionally because registering a request increases
the current request count synchronously while unregistering
decreases it asynchronously, meaning if the test has time to
call register 100 times before unregister can run it will
wrongfully flake.
This could be addressed in production code but as comments in
the change explain, this isn't worth the complexity. Hence
just have a pinpoint fix in the test. See aosp/2707373 for
what a fix in the production code would look like.

Test: manual
Bug: 289530922
Change-Id: Iad9a725eda91406f820abe4706bca0a4756352a4

Chalard Jean   commited 2023-08-30 15:19:50 +09:00
2eb2f7998d
Merge "Verify reevaluation triggered when VPN validation fails" into main
Chiachang Wang   authored and   Gerrit Code Review   commited 2023-08-30 03:12:42 +00:00
29178c8906
Verify reevaluation triggered when VPN validation fails
Update tests to verify that the underlying network reevaluation
is triggered when VPN validation status switches to unvalidated.

Bug: 296183603
Test: atest FrameworksNetTests
Change-Id: I80934cce6e7f2d56039bdd6ad63c6f7173a597cb

Chiachang Wang   commited 2023-08-30 03:08:56 +00:00
3e1edc231f
Merge "Implement Discovery PLATFORM logic in Rust" into main
Igor Zaslavsky   authored and   Gerrit Code Review   commited 2023-08-30 02:51:07 +00:00
c4eef6c58e
Implement Discovery PLATFORM logic in Rust
This commit introduces new PAL that is used by ReamoteAuth protocol
communicate with remote device

Design doc: go/remote-auth-manager-fishfood-design

Test: built successfully.
Bug: : 291333048
Change-Id: I9c78137ccf2fd6c86735bef0dd0c9cedf589d704

Igor Zaslavsky   commited 2023-08-29 23:14:42 +00:00
455b104a81
Merge "netd bpf - implement ingress discard based on {dstip,ifindex}" into main
Treehugger Robot   authored and   Gerrit Code Review   commited 2023-08-29 23:13:36 +00:00
cabd4c4c6e
[remoteauth] Add UwbRangingSession
Test: atest RemoteAuthUnitTests
Bug: 292549287, 290675814
Change-Id: Ib5f541edc6d1ce373a58e3f602d7fe3aa1c2f3b7

Jin Chen   commited 2023-08-29 13:45:36 -07:00
0f5e3471e4
[remoteauth] Implement RangingSession
* Add basic functionalities to RangingSession and related data/util classes.

Test: atest RemoteAuthUnitTests
Bug: 292549287
Change-Id: Iff6a3cb1aefc20ef69e65e5e2705e8a707874668

Jin Chen   commited 2023-08-29 13:45:36 -07:00
ff375e5588
[remoteauth] Implement RangingManager
* Add basic functionalities to RangingManager and related data classes.

Test: atest RemoteAuthUnitTests
Bug: 292549287, 290675814
Change-Id: I2ebd5c7afbfc04499ef8e8f830e4a44b52332d69

Jin Chen   commited 2023-08-29 13:45:36 -07:00
be08f54a25
Merge "ethernet: Wait on releaseTetheredInterface() to be processed" into main
Treehugger Robot   authored and   Gerrit Code Review   commited 2023-08-29 19:55:08 +00:00
bf6f5b576d
netd bpf - implement ingress discard based on {dstip,ifindex}
Test: TreeHugger
Bug: 295800201
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I82771644045e0e37f73725730bd0bd2265ac5b77

Maciej Żenczykowski   commited 2023-08-29 19:35:12 +00:00
6109d94ec5
ethernet: Wait on releaseTetheredInterface() to be processed
There is a race between releaseTetheredInterface() and a new interface
being created. Calling setEthernetEnabled(true) forces the test to wait
on a callback that is generated on the ethernet handler thread (and
therefore guarantees releaseTetheredInterface() has been processed).

Bug: 296012516
Test: atest EthernetManagerTest
Change-Id: I7a1a763ba5c1c50274a112b8c1b8c04f35696f12

Patrick Rohr   commited 2023-08-29 10:22:05 -07:00
524256d457
netd.c - only check clat uid on egress
On ingress:
(a) the socket is not a normal socket (it's AF_PACKET)
    and thus (likely) doesn't hit this code path
    [if it did... we'd have double or more accounting
    of any traffic captured by AF_PACKET sockets,
    I haven't checked - but I assume that doesn't happen]
(b) is created by the system server (so not AID_CLAT)
(c) is not tagged by the system server (so not AID_CLAT)

So this is a no-op, but it simplifies the bpf program,
since 'egress' is a compile time evaluated constant.

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Iec693548789eb2752f9f30038e72e35c876f986c

Maciej Żenczykowski   commited 2023-08-29 15:03:29 +00:00
fca4ee4f08
Merge "Split BpfNetMaps constants and utilities into standalone classes" into main
Junyu Lai   authored and   Gerrit Code Review   commited 2023-08-29 10:44:51 +00:00
50a7ecccf1
Split BpfNetMaps constants and utilities into standalone classes
This is a no-op refactoring that splits constants and utility
methods into standalone classes which will be shared with
a bpf reader class in subsequent CLs.

NO_IFTTT=No-op refactoring

Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.BpfNetMapsTest
Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.net.module.util.StructTest

Bug: 297836825
Change-Id: I6d7ea044e43180ae001573009a166be74ebe6a5d

Junyu Lai   commited 2023-08-29 08:20:10 +00:00
29b7b6385a
Merge "Add sim card requirement for net permission tests" into main
Paul Hu   authored and   Gerrit Code Review   commited 2023-08-29 08:12:59 +00:00
654c04b8a4
Merge changes Ic9fbf2f9,I1eb54c07 into main
* changes:
  [remoteauth] Add RangingManager interfaces
  [remoteauth] Add RangingSession interfaces

Jin Chen   authored and   Gerrit Code Review   commited 2023-08-28 17:26:14 +00:00
2af727b8ca
Merge "Verify VPN underlying network is set as soon as it tries to use it" into main
Chiachang Wang   authored and   Gerrit Code Review   commited 2023-08-28 10:18:23 +00:00
69cd0aa5a0
Merge "Request enterprise networks" into main
Jean Chalard   authored and   Gerrit Code Review   commited 2023-08-28 09:20:34 +00:00
940e330f5d
Merge "Restore ConnectivityManagerTest into presubmits" into main
Jean Chalard   authored and   Gerrit Code Review   commited 2023-08-28 09:20:02 +00:00
05a82947f3
Verify VPN underlying network is set as soon as it tries to use it
Bug: 289606688
Test: atest FrameworksNetTests
Change-Id: Ib35a63ac5f68599c646afad5cad68c1753fb732f

Chiachang Wang   commited 2023-08-28 08:00:20 +00:00
845a91cc31
Ignores VS Code files from git
VS Code is useful for lite and/or remote edit.

Test: none
Change-Id: I4584f4dc176d8816e1abea4a73ce12d556ee5aa6

Kangping Dong   commited 2023-08-27 20:10:55 +08:00
cf41958c07
[remoteauth] Add RangingManager interfaces
* Initial commit to define interfaces and data structures for the
  ranging manager.

Test: atest RemoteAuthUnitTests
Bug: 290675597, 292549287
Change-Id: Ic9fbf2f909249586f13f8d7be3069ba8ad3bd779

Jin Chen   commited 2023-08-25 12:42:30 -07:00
393e611129
Merge changes I47b91c0c,I630c0e49 into main
* changes:
  Report sent query count
  Report service info callback metrics data

Paul Hu   authored and   Gerrit Code Review   commited 2023-08-25 14:46:39 +00:00
1b5d601d0c
Merge "Skip tests in CtsNetTestCases module if feature not supported" into main
Treehugger Robot   authored and   Gerrit Code Review   commited 2023-08-25 13:37:03 +00:00
cae5209d5a