Commit Graph

1221 Commits

Author SHA1 Message Date
Brad Ebinger
2ca3bfbfc9 Merge "[RCS UCE] Expose the IMS RCS feature APIs" into sc-dev 2021-02-08 19:46:41 +00:00
Eric Laurent
25ffe6ce31 Merge "AudioPlaybackConfiguration: add audio session ID" into sc-dev 2021-02-08 15:47:39 +00:00
Chiachang Wang
ae91051ed2 Merge "Create new system API in UserHandle to get uid" am: af6494310d am: 8927357b27 am: 6ec462de05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573942

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia28b9c251b67344c1d4d07a2d600a53ca36b170b
2021-02-08 05:57:39 +00:00
Chiachang Wang
af6494310d Merge "Create new system API in UserHandle to get uid" 2021-02-08 03:56:39 +00:00
TreeHugger Robot
3ae84f530b Merge "Rename InputConnecton#setImeTemporarilyConsumesInput" into sc-dev 2021-02-07 03:13:55 +00:00
Eran Messeri
cb0bed367e Indicator for admin control over sensor permission grants
Add a flag indicating whether an admin may or may not control permission
grants for sensors-related permissions.

By default, on a fully-managed device, the admin may control sensor
permission grants. The admin may opt-out by providing the newly-added
provisioning extra, EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT.

On a managed profile, will no longer be able to control sensor
permission grants.

This change adds the provisioning extra and state flag in the
ActiveAdmin, a follow-up change will make the permission controller
utilize the flag.

Bug: 158735247
Test: atest android.devicepolicy.cts.DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault
Change-Id: Iffd02450ee624416eccda8301ff84676f226c0d0
2021-02-06 21:13:45 +00:00
Treehugger Robot
5e4f6e8297 Merge "Keystore 2.0 SPI: Add NAMESPACE_WIFI." am: 07f94fbb01 am: 7e0e17ab0d am: 424646cb4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1564075

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I063196c2fb7b9547fc24b21a5143bef4fe115df0
2021-02-06 06:06:22 +00:00
TreeHugger Robot
ef8d3b00e0 Merge "Add device state request APIs to DeviceStateManager." into sc-dev 2021-02-06 04:37:38 +00:00
Treehugger Robot
07f94fbb01 Merge "Keystore 2.0 SPI: Add NAMESPACE_WIFI." 2021-02-06 04:08:13 +00:00
James.cf Lin
81bec14843 [RCS UCE] Expose the IMS RCS feature APIs
The RCS feature is supported, expose the RCS APIs.

Bug: 174187744
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: Ibc51a34cb3c3946ab8e8bd92591c734a45a4eb71
2021-02-06 08:41:56 +08:00
TreeHugger Robot
b2d60a685f Merge "Get the HotwordDetectionService from the xml metadata" into sc-dev 2021-02-05 23:24:32 +00:00
Stevie Kideckel
ae11a1abcf Merge "Enable use of of CompoundButtons in RemoteViews" into sc-dev 2021-02-05 22:18:25 +00:00
Kholoud Mohamed
de2340c0e9 Merge "Grant shell QUERY_USERS and MODIFY_QUIET_MODE" 2021-02-05 18:12:57 +00:00
Kholoud Mohamed
53fb73b912 Merge "Remove no longer needed broadcasts" into sc-dev 2021-02-05 17:53:19 +00:00
Kholoud Mohamed
28d66d71df Merge "Add user settings and intent filters to userTypeDetails" into sc-dev 2021-02-05 17:53:19 +00:00
TreeHugger Robot
1ac8aa5aa4 Merge "Changing IntentSender to become a listener." into sc-dev 2021-02-05 17:27:10 +00:00
Biswarup Pal
27b89a6d12 Merge "Rename onFreeCacheRequested API" into sc-dev 2021-02-05 17:22:01 +00:00
Jack Nudelman
258abf98ce Merge "Call TelephonyProvider apis for backup/restore per-sim settings." into sc-dev 2021-02-05 16:37:04 +00:00
lpeter
fd652d522c Get the HotwordDetectionService from the xml metadata
Bug: 178171920
Test: atest CtsVoiceInteractionTestCases
Merged-In: Ic19ae8b0ad8b646836fca7417e68b9b36429d5f0
Change-Id: I2a97491c7bbfd3a04ec3d9488beb158287d22e10
2021-02-05 23:28:13 +08:00
Eric Laurent
53945a40df AudioPlaybackConfiguration: add audio session ID
Add the audio session ID to the information in
AudioPlaybackConfiguration and make it available
to privileged apps via a system API.

Bug: 178909700
Test: atest AudioPlaybackConfigurationTest
Change-Id: I089ad0ed7f7efd5fd6db017ad1e86e013de7f05c
2021-02-05 14:49:38 +01:00
Issei Suzuki
c6fa4e9892 Merge "Fix flicker when starting an activity from Recents." into sc-dev 2021-02-05 11:10:57 +00:00
Biswarup Pal
fc99e08899 Rename onFreeCacheRequested API
Rename onFreeCacheRequested to onFreeCache in ExternalStorageService

Test: m
Bug: 179163256
Change-Id: If79a3f131faac23e8e44ed90f7b0962de1694500
2021-02-05 07:40:19 +00:00
TreeHugger Robot
4c1c534604 Merge "Exposed UserManager.isHeadlessSystemUserMode() as public API." into sc-dev 2021-02-05 07:00:35 +00:00
TreeHugger Robot
241f3b293b Merge "Add support for 10-bit YUV P010 ImageFormat" into sc-dev 2021-02-05 06:18:27 +00:00
Sarah Chin
1c600eed49 Merge "Update setSubscriptionOverride API to allow network types" 2021-02-05 05:14:50 +00:00
Lan Wei
66b21086e3 Rename InputConnecton#setImeTemporarilyConsumesInput
Rename InputConnecton#setImeTemporarilyConsumesInput as InputConnecton#setImeConsumesInput

Bug: 175362887
Bug: 179143513
Test: atest FrameworksCoreTests:TextViewTest
Test: atest CtsWidgetTestCases:TextViewTest

Change-Id: I8ac1ea4d53f747b0086ed415ff90793dfc6155bc
2021-02-05 12:16:22 +08:00
Calvin Pan
ca389a6427 Merge "Add a carrier config for non-RCS capabilities expiration" am: 454e15dc12 am: 1285ab52ce am: 6362783d8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1561617

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia0054d3821355ceda57d4df85af704c8bf7433f2
2021-02-05 02:51:35 +00:00
Chiachang Wang
8f43b2be54 Create new system API in UserHandle to get uid
For the incoming connectivity mainline, it need to compute the
intersection of a set of uids and appIds for the permission
control. As @UserIdInt values are internal implementation details
of the OS, any mainline modules should use strongly-typed
UserHandle arguments. Thus, create a new API that accepts
UserHandle and appId to get the computed uid.

Bug: 170598012
Test: atest FrameworksNetTests
Change-Id: I046546d2c5c76eac7a251e63e4234776975bf2bc
2021-02-05 02:26:23 +00:00
Darryl L Johnson
c26defea8f Add device state request APIs to DeviceStateManager.
This change promotes DeviceStateManager to a TestApi and exposes three
additional methods:
- getSupportedStates: returns a list of state ids that can be used with
requestState().
- submitRequest: requests that the device enter the supplied state.
- cancelRequest: clears the current requested device state.
to be used initially in CTS tests.

Bug: 177235528
Bug: 177236115
Test: atest DeviceStateManagerServiceTest
Test: atest DeviceStateManagerGlobalTest

Change-Id: Ieae9208420ddecea641a5c44f1610d3cb7071b07
2021-02-04 17:47:14 -08:00
James Lin
e5e204f62b Merge "[RCS UCE] Add a network response with Reason header info callback for the publish request and subscribe request." am: 77c5faf493 am: 09f4410ea2 am: 4472f1f545
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1570560

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5030cd96b091410af130c9916c564b3f296ec230
2021-02-05 01:30:32 +00:00
Calvin Pan
454e15dc12 Merge "Add a carrier config for non-RCS capabilities expiration" 2021-02-05 01:27:59 +00:00
Alex Buynytskyy
6f80c512a4 Changing IntentSender to become a listener.
Listener is more secure as nobody can send a broadcast with invalid
digests.

Bug: 160605420
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I5f6ec3f0fa975d274d456d11d57be61d0b245e80
2021-02-05 00:16:51 +00:00
James Lin
77c5faf493 Merge "[RCS UCE] Add a network response with Reason header info callback for the publish request and subscribe request." 2021-02-04 23:59:19 +00:00
Kholoud Mohamed
19b39a8fc3 Grant shell QUERY_USERS and MODIFY_QUIET_MODE
Added a new permission QUERY_USERS, granted the
new permission and MODIFY_USERS to shell.
These permissions are required to enable CTS
tests to access the following APIs:
* UserManager#getUsers and any other API that depend on it
* UserManager#getProfileParent
* UserManager#requestQuietModeEnabled

Test: Confirmed that a CTS test can call these APIs
Bug: 178695365
Merged-In: Ifa14d24ee1873161e3986e8d0669fd47a7bcaa7a
Change-Id: Ifa14d24ee1873161e3986e8d0669fd47a7bcaa7a
2021-02-04 23:03:52 +00:00
Kholoud Mohamed
fb05a7f10a Merge "Grant shell QUERY_USERS and MODIFY_QUIET_MODE" into sc-dev 2021-02-04 23:00:10 +00:00
Jack Nudelman
e2ea428d95 Call TelephonyProvider apis for backup/restore per-sim settings.
Bug: 172244913
Test: make, atest TelephonyProviderTest

Change-Id: I1652172f003e2fd5ab08dfdbf63dadc64e034406
2021-02-04 20:54:39 +00:00
Kholoud Mohamed
c60281bd21 Grant shell QUERY_USERS and MODIFY_QUIET_MODE
Added a new permission QUERY_USERS, granted the
new permission and MODIFY_USERS to shell.
These permissions are required to enable CTS
tests to access the following APIs:
* UserManager#getUsers and any other API that depend on it
* UserManager#getProfileParent
* UserManager#requestQuietModeEnabled

Test: Confirmed that a CTS test can call these APIs
Bug: 178695365
Change-Id: Ifa14d24ee1873161e3986e8d0669fd47a7bcaa7a
2021-02-04 20:43:19 +00:00
Evgenii Stepanov
804a79e7b0 Merge "Implement memtagMode and nativeHeapZeroInit manifest attrs." into sc-dev 2021-02-04 19:55:49 +00:00
Kweku Adams
c5de3da207 Merge "Remove setForeground API." into sc-dev 2021-02-04 19:48:56 +00:00
TreeHugger Robot
df079b7943 Merge "Update batching APIs" into sc-dev 2021-02-04 19:47:40 +00:00
Kholoud Mohamed
352849ccbe Remove no longer needed broadcasts
Removed broadcasts that were sent from the framework
to Managed Provisioning during DPM#createAndProvisionManagedProfile
and DPM#provisionFullyManagedDevice to handle system apps
snapshotting. This is no loger needed as Managed
Provisioning is directly applying that logic after calling the APIs.

Bug: 178478031
Test: N/A
Change-Id: Ic78828f3be05f154414f53c9c78915cf92341765
2021-02-04 19:35:39 +00:00
Kholoud Mohamed
b2d15371a1 Add user settings and intent filters to userTypeDetails
Added the capability to set default user settings and
default cross profile intent filters for different user
types in UserTypeDetails.
Also added default values for managed profiles.
The following is mostly copied from existing code in MP:
* DefaultCrossProfileIntentFilter class
* DefaultCrossProfileIntentFiltersUtils class
* setDefaultCrossProfileIntentFilters and
* resetDefaultCrossProfileIntentFilters in UserManagerService

NOTE REGARDING FILE HISTORY: Several classes moved from ManagedProvisioning
to the framework. There is a comment on this CL that points to an internal
link to the change history of these files in ManagedProvisioning.

Bug: 176973252
Test: atest UserManagerServiceUserTypeTest
Test: atest BundleUtilsTest
Test: atest UserRestrictionsUtilsTest
Test: atest com.android.server.pm.UserManagerTest
Test: atest UserManagerServiceTest
Test: atest com.android.server.devicepolice.DevicePolicyManagerTest

Change-Id: I3d4cbfcbcad6b6419c5306ae025d4cb9dca317ba
2021-02-04 19:15:39 +00:00
Winson
ee612e99fe Address domain verification API comments
Changes package to pm.verify.domain, removes throwing InvalidDomainSet,
cleans up permissions, and renames DomainVerificationSet ->
DomainVerificationInfo.

Bug: 163565712
CTS-Coverage-Bug: 179382047

Test: atest com.android.server.pm.test.verify.domain

Change-Id: I5d60c227f0e529fe27c1844ada97716933a533b0
2021-02-04 10:27:01 -08:00
Winson
3c7113a401 Remove legacy IntentFilterVerificationManager
Completely deletes all the code for v1 of domain verification,
delegating everything to the new DomainVerificationService.

Exempt-From-Owner-Approval: Already approved by owners on main branch

Bug: 171251883

Test: none, removal of effectively dead code

Change-Id: Ib222ccd46019c1c28b402c0f68466077b62871c1
2021-02-04 10:27:00 -08:00
Winson
477f87d56b Add DomainVerificationManager
Contains the core SDK @SystemApi portion of the domain verification
APIs, including the state codes and get/set methods for package/user
state.

Set methods are gated by corresponding permissions, but get methods
were left available as general @SystemApi in case someone finds a use
case for them.

Adds a new exception which allows the manager to be more specific in
what caused a failure.

Exempt-From-Owner-Approval: Already approved by owners on main branch

Bug: 163565712

Test: none, just API interfaces, will be tested with implementation

Change-Id: I86802fe4b88a8a0f63a1798944c5d8c3a3bab09b
2021-02-04 10:26:58 -08:00
Winson
dea682ad80 Add new domain verification permissions
One for the domain verification agent package, one for the agent's
broadcast receiver, and one for Settings to mutate the user state.

Exempt-From-Owner-Approval: Already approved by owners on main branch

Bug: 163565712

Test: none, will be tested as part of implementation/enforcement

Change-Id: I680a495103ae1bc0c22695c38b3e9ad74ca47d8f
2021-02-04 10:26:58 -08:00
Winson
e803a1bd33 Add internal domain verification data classes
Eventually will be used to store state that's included as part of
com.android.server.pm.Settings.

Also adds equality and  Kotlin index operator mutation support to
SparseArray, to improve ease of use.

Exempt-From-Owner-Approval: Already approved by owners on main branch

Bug: 163565712
CTS-Coverage-Bug: 179382047

Test: none, will be tested as part of follow up change

Change-Id: Ie4eca3a99633465337758ee165e07f35c8db87c8
2021-02-04 10:26:57 -08:00
Winson
2641e601cc Add domain verification API classes
Includes the request class sent to the verification agent and the 2
data classes returned by the to-be-added DomainVerificationManager.

Exempt-From-Owner-Approval: Already approved by owners on main branch

Bug: 163565712
CTS-Coverage-Bug: 179382047

Test: atest DomainVerificationCoreApiTest

Change-Id: If9f1b987f0d06c930f6c44b58af101b83947acb9
2021-02-04 10:26:57 -08:00
Christine Franks
6ed22e53ea Merge "Add reduce bright colors to brightness tracker" into sc-dev 2021-02-04 17:12:59 +00:00
Kweku Adams
2d5d378598 Remove setForeground API.
We renamed them to expedited jobs and the deprecated API is not being
used.

Bug: 171305774
Test: atest CtsJobSchedulerTestCases
Change-Id: I35dd6bf3c9188f621da49da7c9ed513d163afed8
2021-02-04 08:53:40 -08:00