Commit Graph

559892 Commits

Author SHA1 Message Date
Janis Danisevskis
9740651028 Merge "Integrate IKeystoreAuthorization aidl's addAuthToken with Keystore SPI." 2021-01-19 21:10:46 +00:00
Treehugger Robot
e1f0416a17 Merge "AbsSeekBar: Fix growRect computation" 2021-01-19 20:30:17 +00:00
Treehugger Robot
f79a0fd564 Merge "Make me an owner of accessibility frameworks" 2021-01-19 19:54:14 +00:00
Cody Kesting
48a1062811 Merge changes I61dd789f,I57c73264
* changes:
  Define add and remove for VCN policy listeners.
  Define VcnUnderlyingNetworkPolicy.
2021-01-19 19:37:53 +00:00
Jeff Sharkey
96a8a5b924 Merge "Make the performance team the owners for PinnerService.java" 2021-01-19 19:34:23 +00:00
Carmen Jackson
e41a225e2e Make the performance team the owners for PinnerService.java
In order to do this, updated the apct-tests/perftests/OWNERS file to
include the entire perf team and then added that to the
PinnerService.java definition.

Also removed srnvs@ since I am getting a "does not exist"
warning for that email.

Bug: 177918051
Test: Presubmit
Change-Id: I00f30f5131d38c4b073266e8c80d92d1ad734eb5
2021-01-19 11:31:58 -08:00
Steven Moreland
4becb19325 Merge "HwBlob: explicit size check" 2021-01-19 18:11:46 +00:00
Treehugger Robot
9c7e15ab31 Merge "Fixed Handler Leak on WrapperInit" 2021-01-19 18:05:04 +00:00
Treehugger Robot
b22ef02f1f Merge "Check ProjectBackwards property for childrens after children's syncProperties()." 2021-01-19 17:08:47 +00:00
Jeff Sharkey
8a1d03fe10 Merge "Correct ownership of AppSearchPersonTest" 2021-01-19 15:41:38 +00:00
Hasini Gunasinghe
5364fce817 Integrate IKeystoreAuthorization aidl's addAuthToken with Keystore SPI.
This CL introduces the Keystore SPI class for IKeystoreAuthorization
aidl interface and implements the calling code for addAuthToken method.

Bug: 166672367
Bug: 177830239
Bug: 177791435
Bug: 177787061
Bug: 177787180
Test: VTS test
Change-Id: I9f0adc97efadd0fa1a1f16dd5ec811f4151a2b03
2021-01-19 14:41:03 +00:00
Junyu Lai
b380466d29 Merge "Revert "[VCN06] Support request background network"" 2021-01-19 10:24:47 +00:00
Junyu Lai
854241172b Revert "[VCN06] Support request background network"
Revert submission 1545847-vcn06

Reason for revert: b/177876289 presubmit failure
Reverted Changes:
I8042ce197:[VCN06.1] Add CTS for request background network
If9aaa87b7:[VCN06] Support request background network

Change-Id: I9270b02a2d6d1ffcdd83b4f41becaf09a2b91e0a
2021-01-19 09:06:00 +00:00
Treehugger Robot
20e113e316 Merge "Add a permission check for the default network connectivity metrics." 2021-01-19 07:52:03 +00:00
Lorenzo Colitti
521a139f79 Add a permission check for the default network connectivity metrics.
This check was missed in aosp/1541935.

Bug: 177656797
Test: atest FrameworksNetTests
Change-Id: Idea00f16e56cff79897c142a4da3b07e3d93f379
2021-01-19 06:20:10 +00:00
Kyunglyul Hyun
2f9749cd57 Merge "MediaRouterService binds services when necessary" 2021-01-19 06:06:26 +00:00
Treehugger Robot
bd3110f654 Merge "Remove usage of NetCapability" 2021-01-19 05:16:00 +00:00
ryanlwlin
528811e0ef Make me an owner of accessibility frameworks
Test: Relying on treehugger. No functional changes.
Change-Id: Icc51b1b4e752289db1cbf24c2cd8e08a939fefec
2021-01-19 12:49:01 +08:00
Treehugger Robot
caa5817c33 Merge "Fix CaptivePortalDataTest#testParcelUnparcel on R" 2021-01-19 04:45:08 +00:00
Treehugger Robot
58a2186be0 Merge changes I475502fd,Ibf376a6f,Ia52f9caf
* changes:
  Address comments on aosp/1539753, aosp/1542487 and aosp/1547496.
  Fix propagating underlying caps when a network disconnects.
  Test for bugs with suspended VPN underlying networks.
2021-01-19 04:19:56 +00:00
Remi NGUYEN VAN
e4954ca8ad Fix CaptivePortalDataTest#testParcelUnparcel on R
CaptivePortalData only has 7 fields on R, not 8.

Bug: 177290955
Change-Id: I156738d07821fee43420d8af14c4bce36dd0e4a4
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalDataTest on R
2021-01-19 02:33:09 +00:00
Lorenzo Colitti
78a7675a34 Address comments on aosp/1539753, aosp/1542487 and aosp/1547496.
Bug: 173331190
Test: test-only change
Change-Id: I475502fde55d24e7ae3f7fe9f43c54740c57a9cf
2021-01-19 10:35:43 +09:00
Junyu Lai
a18490bdde Merge "[VCN06] Support request background network" 2021-01-19 01:04:20 +00:00
Lorenzo Colitti
a1c896e22e Fix propagating underlying caps when a network disconnects.
aosp/1513052, which generalized support for underlying networks,
broke default network switching when the network underlying a VPN
disconnects.

This is because it calls propagateUnderlyingNetworkCapabilities
in the middle of the bookkeeping operations needed when a
network is disconnected (specifically, after all satisified
requests are removed from the disconnecting network, but before
mDefaultNetworkNai is updated). This is completely incorrect
because propagateUnderlyingNetworkCapabilities can trigger a
network rematch, and running a rematch when the request data
structures are inconsistent is obviously wrong. See the test
changes in this CL for an example of the damage.

Fix this by moving propagateUnderlyingNetworkCapabilities to
before the bookeeping operations begin. It must be before
mDefaultNetworkNai is updated, because otherwise it will not know
that the default network is disconnecting, and it will not be
able to propagate capabilities to VPNs that set underlying
networks to null (i.e., to the default network). It must be
after the nai is removed from mNetworkForNetId because
otherwise it will think that the underlying network is still
connected.

Bug: 173331190
Test: accompanying unit test shows lots of bugs removed
Change-Id: Ibf376a6fa4b34d1c96f8506fa8abbb7595a8c272
2021-01-19 09:40:53 +09:00
Treehugger Robot
0dcf4de7df Merge "Make BugreportManager a public API that respects carrier privileges." 2021-01-19 00:21:25 +00:00
Rambo Wang
775a1db2c2 Merge "Introduce SignalStrengthUpdateRequest to customize signal update request" 2021-01-18 22:12:40 +00:00
Rambo Wang
14927330cd Introduce SignalStrengthUpdateRequest to customize signal update request
Privileged apps can send the request through TelephonyManager APIs
(in following CL) to monitor signal strength change with interested
RAN/SignalMeausrementType/Thresholds.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalStrengthUpdateRequestTest
Change-Id: Ifba384108b6627e4b808be34e6d828c93e8df995
2021-01-18 08:46:42 -08:00
Treehugger Robot
3299d00b87 Merge "New sm command to unmount app data and obb app visibility mount" 2021-01-18 16:20:41 +00:00
Lorenzo Colitti
e1c3182b5f Test for bugs with suspended VPN underlying networks.
Test: atest --rerun-until-failure 100 ConnectivityServiceTest#testVpnSwitchFromSuspendedToNonSuspended
Change-Id: Ia52f9cafef3f49ae70ad135d017e207eb57fddfe
2021-01-19 00:42:46 +09:00
Louis Chang
5896e8c4fd Merge "Revert "Integrate IKeystoreAuthorization aidl's addAuthToken wit..."" 2021-01-18 14:58:14 +00:00
Treehugger Robot
d8e3e07264 Merge "Add MOUNT_FLAG_VISIBLE to visible stub volumes" 2021-01-18 14:54:27 +00:00
Lorenzo Colitti
b330b5b71a Merge changes Ic5750d4f,I9fa888c9,I4211475f
* changes:
  Deflake testNetworkBlockedStatusAlwaysOnVpn
  Simplify testVpnRestrictedUsers.
  Add test coverage for LockdownVpnTracker.
2021-01-18 14:03:54 +00:00
Martijn Coenen
2da2fdc519 Merge "Make releaseSomeActivities() a oneway call." 2021-01-18 13:25:12 +00:00
Treehugger Robot
6341816b31 Merge "Handle stub volumes in StorageSessionController" 2021-01-18 12:54:48 +00:00
Youkichi Hosoi
d2905dd086 Add MOUNT_FLAG_VISIBLE to visible stub volumes
The visibility setting of a removable device shared with Chrome OS is
passed via Disk flags. When a device (stub volume) is marked as visible,
we should set the MOUNT_FLAG_VISIBLE flag to it.

Bug: 123377807
Bug: 142684891
Bug: 132796154
Test: Toggle the visibility setting of a removable device in the Chrome
Test: OS Settings app > Confirm that the device is visible to Android
Test: apps only when it is marked as visible.
Test: Tested in R

Change-Id: I19289596345690b1802738122fe274eeb41f9361
2021-01-18 12:09:52 +00:00
Treehugger Robot
ea47f9ee6c Merge "Remove usage of hidden NetworkUtils from Formatter" 2021-01-18 11:01:06 +00:00
Adrian Roos
c5ce225fdf AbsSeekBar: Fix growRect computation
Fixes an issue with the growRectTo computation where if the
difference between the current and target size wasn't an even
number, the resulting rect would not actually have the correct
size.

Also, asserts using the thumb bounds, rather than the view
bounds in case the thumb is not perfectly centered within the
view due to rounding errors on odd densities.

Fixes: 173872859
Test: atest AbsSeekBarTest
Change-Id: Ib2b81a91ba8feeb6743a4e4a588d6116d231eb8d
2021-01-18 10:50:52 +00:00
Louis Chang
589975d198 Revert "Integrate IKeystoreAuthorization aidl's addAuthToken wit..."
Revert submission 1519257-rename_auth_service

Reason for revert: breaking WM presubmit, b/177787180
Reverted Changes:
Ib847b68d4:Integrate IKeystoreAuthorization aidl's addAuthTok...
I7893ab452:Integrate IKeystoreAuthorization aidl's addAuthTok...
I4a092119c:Implement addAuthToken method of IKeystoreAuthoriz...

Change-Id: Iea9bf7e7b3d1e968bbbe39f4ec08dcc3577cee07
2021-01-18 10:01:12 +00:00
Treehugger Robot
21d36ec4f5 Merge "Pass caller information in cancelBugreport." 2021-01-18 09:41:21 +00:00
Treehugger Robot
6231aefd06 Merge "Enforce that NetworkAgentInfo fields are never null." 2021-01-18 09:32:39 +00:00
Martijn Coenen
5363b0671d Make releaseSomeActivities() a oneway call.
This is called from a GC handler hook in BinderInternal, from the
finalizer thread. It's a call from an app process into system_server. On
some devices, we observed this call taking a long time, causing
TimeoutExceptions on the finalizer thread.

Since this work is not critical, and when the GC runs is anyway
unpredictable, make releaseSomeActivities() oneway instead.

Bug: 118997212
Test: TH
Change-Id: I6b06917493a09a2fba63502c4bd1a203c184a62c
Merged-In: I6b06917493a09a2fba63502c4bd1a203c184a62c
2021-01-18 09:46:10 +01:00
junyulai
d4d56da595 [VCN06] Support request background network
This will be mainly used by VCN management service which will
need to hold the networks but preserve the backgrounded-ness
of the networks.

Test: android.net.ConnectivityManagerTest#testRequestType
Test: android.net.cts.ConnectivityManagerTest#testRequestBackgroundNetwork /
      --rerun-until-failure 100
Test: ConnectivityServiceTest#testBackgroundNetworks
Test: m -j doc-comment-check-docs
Bug: 175662146
Change-Id: If9aaa87b7e71c2b695ac7b08858850e975b28bb6
2021-01-18 16:32:08 +08:00
Youkichi Hosoi
b19c9dcd1a Handle stub volumes in StorageSessionController
Currently, StorageSessionController.shouldHandle() returns true only for
emulated volumes and public volumes. As a result, even when we call
MountUserFuse() in StubVolume::doMount(), stub volumes for external
storage (MyFiles and removable media) are not covered with the Android
FUSE layer which is required for features like EXIF redaction.
This CL modifies StorageSessionController.shouldHandle() so that stub
volumes can be properly handled by StorageSessionController.

Bug: 123377807
Bug: 123641356
Bug: 132796154
Test: $ ls -lZ /storage | grep CAFEF00D
Test: $ atest MediaStore_Images_MediaTest#testLocationRedaction
Test: Tested in R
Change-Id: I74caa0c16bd0021c561c599616c53076022aa4de
Merged-In: I74caa0c16bd0021c561c599616c53076022aa4de
2021-01-18 08:29:48 +00:00
Lorenzo Colitti
c67354f697 Deflake testNetworkBlockedStatusAlwaysOnVpn
This test flakes about 1% of the time on my device. This is due
to the test calling expectNetworkRejectNonSecureVpn() before the
handler thread has processed the call to setAlwaysOnVpnPackage.

Fix this by waiting for callbacks where it is possible to do so,
and by calling waitForIdle where it is not.

Test: test-only change
Change-Id: Ic5750d4fdf9e7e3654a2b6ade74da6bc5de18fb6
2021-01-18 17:28:52 +09:00
Lorenzo Colitti
68a864542e Simplify testVpnRestrictedUsers.
Code review comments have suggested that this test is too long
and difficult to understand. Split it into two tests and put some
of the common setup into setup methods and statics.

Bug: 173331190
Test: test-only change
Change-Id: I9fa888c940d7048f1ba6836a5706fbdb84b5f5c9
2021-01-18 17:28:52 +09:00
Lorenzo Colitti
220207cecb Add test coverage for LockdownVpnTracker.
Also add a comment to an existing test.

Bug: 173331190
Test: test-only change
Change-Id: I4211475f053f0cdf2b804132c52ce5205a772193
2021-01-18 17:28:50 +09:00
Remi NGUYEN VAN
d3d76d8063 Remove usage of hidden NetworkUtils from Formatter
Use the Inet4AddressUtils common utility instead.
NetworkUtils is moving to the connectivity module, so its hidden symbols
are not accessible from the framework. Use the Inet4AddressUtils utility
instead.

NetworkUtils.intToInetAddress is also deprecated.

Bug: 174436414
Test: m

Change-Id: Ia4f4de2f23b2e2be056f78cc30259814f9a4dc91
2021-01-18 17:01:56 +09:00
Lorenzo Colitti
57605d3db0 Enforce that NetworkAgentInfo fields are never null.
These fields have been recently audited, confirmed never to be
null, and annotated @NonNull. Ensure that they can never become
null by throwing exceptions in the codepaths that set them.
Also remove some null checks.

Test: atest FrameworksNetTests
Change-Id: I6ce5bb4d69a990f1c857c599b7e50e372352eb87
2021-01-18 07:49:26 +00:00
Treehugger Robot
36b467616c Merge "Remove usage of hidden .netId in IpConnectivityLog" 2021-01-18 06:36:02 +00:00
Lorenzo Colitti
61209f8504 Merge "Mark several NetworkAgentInfo members @NonNull and address TODO." 2021-01-18 05:51:38 +00:00