565992 Commits

Author SHA1 Message Date
Benedict Wong
01a61615d8 Merge "Trigger re-evaluation of privileged apps upon app install/uninstall" 2021-03-24 21:09:19 +00:00
Hui Wang
11149deba4 Merge "Integrate RCS provisioning updates into SipTransport" 2021-03-24 21:05:46 +00:00
Rahul Sabnis
2b735a548f Remove BluetoothHeadset#setPriority which was deprecated in Android 11
Tag: #feature
Bug: 183551808
Test: Manual
Change-Id: I88745589ec66d3060d24b530fe49fea8926726c6
2021-03-24 14:01:52 -07:00
Janis Danisevskis
11c25156a2 Merge "Keystore 2.0: Disable BackendBusyException." 2021-03-24 19:02:46 +00:00
Janis Danisevskis
e36f515441 Merge "Keystore 2.0: Add onDeviceOffBody to AndroidKeyStoreMaintenance." 2021-03-24 18:32:35 +00:00
Peter Wang
e0dcbf7c3f [API Review] Change ACTION_MANAGE_ALL_SIM_PROFILE_SETTINGS API
Bug: 182165190
Bug: 170507492
Test: Local
Change-Id: I21bd95bfc746f2d11dc569b9ea990bb7a3726ba5
Merged-In: I21bd95bfc746f2d11dc569b9ea990bb7a3726ba5
2021-03-24 11:18:37 -07:00
Dorin Drimus
d35c2ba4f0 Adapt first time VPN connection warning to TV form factor
Bug: 182766898
Change-Id: I9c47825e82a57161a7946aaf640f793237b20d7a
Test: N/A, only string change
2021-03-24 18:11:47 +00:00
Rambo Wang
8a11bfc999 Redact location info from PhysicalChannelConfig
If the registrant process is neither phone nor system,
the location info (e.g. physical cell id) will be redacted
before sending the PhysicalChannelConfig change to registrant.

Bug: 182605476
Test: atest com.android.internal.telephony.TelephonyRegistryTest
Change-Id: I05015d06f3f7301bdebfc22d1a9b32fd8bbbfe69
2021-03-24 11:09:54 -07:00
Yi Kong
096f175b7f Merge "profcollect: Broadcast intent when a profile report is ready to upload" 2021-03-24 17:59:48 +00:00
Jayachandran Chinnakkannu
bd3a33ed9f Merge "Add 5G/NR QOS support" 2021-03-24 17:44:48 +00:00
Treehugger Robot
59035dd21c Merge "DO NOT MERGE MediaCodec: add methods to query/subscribe vendor parameters" 2021-03-24 17:36:33 +00:00
Treehugger Robot
8c03c2a82e Merge "Move BLOCKED_REASON_* constants from NPMS into ConnectivityManager." 2021-03-24 17:22:50 +00:00
Sudheer Shanka
d533fa78b1 Move BLOCKED_REASON_* constants from NPMS into ConnectivityManager.
These constants will now be including all the reasons for why an
uid's network access can be blocked, instead of only the
restrictions that could be imposed by NPMS.

Bug: 183473548
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Merged-In: I4c544415e12adf442fd2415c371b1b70a39c3aa4
Change-Id: I6dcea43fbefa9eac8b5a971b822a5be5422a54b4
2021-03-25 01:33:26 +09:00
Janis Danisevskis
5d1c590723 Keystore 2.0: Disable BackendBusyException.
This disables throwing BackendBusyException in Android S. Instead we
keep the legacy behavior of spinning until an operation can be created.

Bug: 180133780
Test: N/A
Change-Id: I802148c59338b91e751498607fa903e156e40aa6
2021-03-24 09:22:56 -07:00
James.cf Lin
69297723f4 Updated the RcsCapabilityExchangeImplBase APIs
1. Remove the executor from the constructor of the class RcsCapabilityExchangeImplBase
2. Rename the API name from removeCapabilityExchangeImpl to destroyCapabilityExchangeImpl

Bug: 180616706
Test: atest RcsUceAdapterTest ImsServiceTest
Change-Id: I9c11e384992345886d9c4a744dd4d734884a303f
2021-03-24 16:16:45 +00:00
Treehugger Robot
8c9b5df98a Merge "Don't try to report non-existent stats" 2021-03-24 16:12:45 +00:00
Yi Kong
61db7cd45e profcollect: Broadcast intent when a profile report is ready to upload
The feature is guarded by profcollect_native_boot/upload_report and is
turned off by default.

Test: manual, fake-ota
Bug: 79161490
Change-Id: I0fc59e662a5ae821f66e72ec11f189a842244960
2021-03-25 00:03:24 +08:00
junyulai
8a1b7e2678 [SP29.1] Simplify logic of calculating and applying data limit
This is a no-op refactoring that is needed for accommodating
follow-up change to send warning quota to hardware.

Test: atest NetworkPolicyManagerServiceTest NetworkStatsServiceTest
Bug: 149467454
Bug: 170699770
Bug: 170179169
Merged-In: I073934f3ac4d13b569ea3a295692c76451b7bbfa
Change-Id: I073934f3ac4d13b569ea3a295692c76451b7bbfa
  (cherry-picked from ag/13982165)
2021-03-24 23:00:40 +08:00
junyulai
fc73e7ba4b [SP28] Add API for set data warning
To have better control and race-free of set data warning
to tether offload hardware, an interface of set warning and
limit at the same time in the NetworkStatsProvider is needed.

This is a no-op change which expose such interface with minimum
changes in service side to get build pass. The implementation
would be included in follow-up patches.

Test: atest NetworkStatsServiceTest
Test: atest NetworkPolicyManagerServiceTest
Test: atest GtsNetworkStackHostTestCases
Test: m doc-comment-check-docs
Bug: 149467454
Bug: 170699770
Bug: 170179169
Merged-In: I6ee661497f7dedb871c85786d1950cab951d8aa2
Change-Id: I6ee661497f7dedb871c85786d1950cab951d8aa2
  (cherry-picked from ag/13959436)
2021-03-24 22:48:26 +08:00
Charles Chen
4eca6d0c5c Merge "Add OWNERS for ComponentCallbacksController" 2021-03-24 10:05:52 +00:00
Harpreet Eli Sangha
1bf9cb029b UWB: Annotate AngleMeasurement Parameters
Bug: 180395817
Test: Build
Signed-off-by: Harpreet Eli Sangha <eliptus@google.com>
Change-Id: Ic4ea2049086ba7593021dbbc2ef7b8f6283d8540
2021-03-24 18:37:01 +09:00
Max Bires
7fd458dc44 Adding AIDL and functions for talking to RemoteProvisioner
This change adds an AIDL interface which the RemoteProvisioner app
implements that allows the keystore SPI to inform the app when an
attestation key may have been used, and when the underlying attestation
key pool is totally empty. The former is a non-blocking call, and the
latter blocks until completion.

Since the latter involves network, there are timeouts involved on the
app side to ensure that the blocking call doesn't hang indefinitely if
there's no network.

Test: atest CtsKeystoreTestCases && atest RemoteProvisionerUnitTests

Change-Id: Ie49e37659c96ce5c1626d1b99a4a7ccc62028156
2021-03-24 01:13:10 -07:00
daren.liao
55bc36d33c Remove pending actions when standby
[Description]
Remove action when standby
Prevent pending action from blocking sending <Standby> to device
1)  Remove NewDeviceAction + all ARC related actions
2)  Don't start NewDeviceAction & SystemAudioAutoInitiationAction
when power standby or transient to standby

Bug: 157444862

[Test Report]
AVR : Yamaha RX-V377 / Onkyo HT-R558
DVD : Pioneer CEC DVD player
Test CEC Standby off/on over 30 times: PASS

Change-Id: I3e4c3faa803afc8c19c33d9340ace098e9d7ed0b
2021-03-24 15:33:31 +08:00
Lucas Lin
ac06b167f9 Merge "Replace CM#isNetworkSupported() with checking FEATURE_TELEPHONY" 2021-03-24 04:02:56 +00:00
Wonsik Kim
197e1a7f5e DO NOT MERGE MediaCodec: add methods to query/subscribe vendor parameters
Bug: 183242434
Test: atest android.media.cts.MediaCodecTest
Change-Id: Iaef8f8aef564dc8cda84a83f6cc628d87649b43d
2021-03-24 02:51:59 +00:00
Chiachang Wang
b2d5ab569c Merge "Remove the hidden NetworkRequest usage" 2021-03-24 02:41:27 +00:00
Janis Danisevskis
fd5cba4483 Keystore 2.0: Add onDeviceOffBody to AndroidKeyStoreMaintenance.
Also have KeyStore.onDeviceOffBody call
AndroidKeyStoreMaintenance.onDeviceOffBody.

Test: N/A
Bug: 171305684
Change-Id: I0b01764bfc4c5828d17ccfffb4f8dad5f3bcea6d
2021-03-23 19:18:55 -07:00
Jayachandran C
af09816c25 Add 5G/NR QOS support
Bug: 155176305
Bug: 182317794
Test: atest ConnectivityServiceTest
      atest QosCallbackTrackerTest

Change-Id: Idf6d8a7c3b80bc50a2c1244ceaefea9381d40c2f
2021-03-23 19:14:21 -07:00
Steven Moreland
bf6bbc60aa Binder: allow stability downgrade
For instance, use a VINTF interface inside the system image without
adding it to the VINTF manifest (e.g. for testing, in this case, the
interface can't be used between system and vendor).

Bug: 183154648
Test: N/A
Change-Id: I9ceb5d96e6a245b9509d9c60828aa3736056909d
2021-03-24 01:26:04 +00:00
Rambo Wang
c289c9b0a2 Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode"
* changes:
  Export ServiceState#DataRegState into telephony provider
  Public ServiceState#duplexMode in telephony provider
2021-03-24 01:22:51 +00:00
Benedict Wong
f1a81b04b1 Merge "Check carrier privilege permissions with package name" 2021-03-24 01:19:35 +00:00
Benedict Wong
62f01dfbd5 Trigger re-evaluation of privileged apps upon app install/uninstall
This change registers listeners for package installs and uninstalls,
ensuring that changes to app install statuses are reflected in the VCN

Bug: 183465258
Test: atest FrameworksVcnTests
Change-Id: I8d2afd351208cac12392bf945439845cc521b7ec
2021-03-23 17:42:12 -07:00
Benedict Wong
d68c1f6cb2 Check carrier privilege permissions with package name
This change ensures that carrier privileges for the right packages are
always checked.

Bug: 183465199
Test: atest FrameworksVcnTests
Change-Id: If46c660e54870529868a7b4b1e271c9009b81d45
2021-03-23 17:42:12 -07:00
Hui Wang
3f7fe40e49 Integrate RCS provisioning updates into SipTransport
Bug: 173828167
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Merged-In: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
Change-Id: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
2021-03-24 00:21:28 +00:00
Jordan Liu
d7858116ca Merge "Add resource to disable cb" 2021-03-23 22:23:19 +00:00
Tianjie Xu
d0fe0c721d Merge "Clear caller id when reading device config" 2021-03-23 22:10:38 +00:00
Treehugger Robot
abffe558e3 Merge changes from topic "audiomanagertest_cts_dnd"
* changes:
  [Notification] Fix NotificationManagerServiceTest
  [Notification] Fix Notification channel Dnd bypass for multiusers
2021-03-23 20:48:21 +00:00
John Reck
66fc99d578 Merge "Fix thread-shared field evades lock acquisition reported by Coverity" 2021-03-23 19:55:30 +00:00
Tianjie
18fb750cc5 Clear caller id when reading device config
Reading the DeviceConfig with the gmscore call id will result in a
security exception.

Also clear the caller identity when before calling into locksettings
to armRebootEscrow. This is inline with the other usage for RoR
preparation.

Bug: 183475757
Test: trigger RoR from gmscore
Change-Id: Ifc65625fc7aba05d016c127cf6672922a5ffb000
2021-03-23 12:36:14 -07:00
Janis Danisevskis
faabd1a836 Merge "Keystore 2.0: Add @IntDef for Keystore namespaces." 2021-03-23 19:35:00 +00:00
James Lin
fe4b99ee22 Merge "UCE OPTIONS APIs updated" 2021-03-23 18:47:44 +00:00
Zongheng Wang
ab2c1e5777 Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" 2021-03-23 18:47:36 +00:00
Jack He
b4d4127efb Merge "ScanFilter.setDeviceAddress: Should send deviceAddress instead of mDeviceAddress to the next level" 2021-03-23 18:02:22 +00:00
Chen Chen
feab55912c ScanFilter.setDeviceAddress: Should send deviceAddress instead of mDeviceAddress to the next level
Bug: 183409081
Test: build and run

Change-Id: I2d25d21b0f143fc7362679e0094455c9132fda9d
2021-03-23 17:43:36 +00:00
Cody Kesting
46c10cbc4d Merge changes from topic "vcn-status-changed"
* changes:
  Rename VcnStatusCallback#onVcnStatusChanged.
  Reevaluate VcnGatewayConnections on receiving new configs.
2021-03-23 17:10:51 +00:00
Jordan Liu
61c1f3c415 Add resource to disable cb
Bug: 176557108
Test: manual
Change-Id: I060836c10b60638e4155670e16cf6475e6740665
Merged-In: I060836c10b60638e4155670e16cf6475e6740665
2021-03-23 09:54:23 -07:00
Rambo Wang
cff9760e07 Export ServiceState#DataRegState into telephony provider
Keep ServiceState#getDataRegState hide. Apps can get the same
info from telephony provider without loation permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I1ba72a5b767761d2f7bd1b52459a0c9d101061a2
2021-03-23 09:33:21 -07:00
Rambo Wang
4481b5181e Public ServiceState#duplexMode in telephony provider
ServiceState#getDuplexMode is a public API. Expose the same
info through telephony provider to let applications retreive
it without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I19128c938993f351533aca9a8e1a1356e21eb30e
2021-03-23 09:27:42 -07:00
Alex Light
6b3d3b38ba Don't try to report non-existent stats
During OTAPreopt we don't have compilation stats due to the way we
compile things. Don't attempt to report stats in this case since it
will cause an NPE.

Test: manual OTA on a blueline
Bug: 181182967
Bug: 177694884
Change-Id: Ie2eb4d7e2ab562d4436a605bcbdd2ea17517dfc3
Merged-In: Ie2eb4d7e2ab562d4436a605bcbdd2ea17517dfc3
2021-03-23 15:50:45 +00:00
Francois Gaffie
978bb8f810 [Notification] Fix NotificationManagerServiceTest
NotificationManagerServiceTest fails (10 failures) when launched
with different user as 0 (e.g. Automotive platform).
Test could be launched with "--user 0" to fix these test or test
can be adapted not to hardcode user id launching these test.

This CL makes the test adapative to the user id launching unit test.

Bug: 178032672

Test: adb shell am instrument -w -e class com.android.server.notification.NotificationManagerServiceTest com.android.frameworks.tests.uiservices

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I1f124deafd50d257683667ef986b88df1e4b8a75
Merged-in: I1f124deafd50d257683667ef986b88df1e4b8a75
2021-03-23 15:27:56 +00:00