Also giving it to the Shell for Cts purposes.
Test: atest CtsSafetyCenterTestCases
Bug: 208421513
Ignore-AOSP-First: Not announced yet, and need to use a permission
that hasn't been merged in AOSP
Change-Id: I2c63c54efac0add7c412fa43b77fa18ba2e486c3
The permission allows the holder to update certain device management
related system resources
Bug: 188410712
Bug: 203548565
Test: N/A
Change-Id: I3930612e513bc1708ef2837c78204e1ba8c83c24
Design: go/communal-manager-api.
Note: this CL also removed "_MANAGER" from the communal service
constant, and "_manager" from the communal service name. When these
became unhidden, ApiLint.kt suggested the changes.
- http://cs/android/tools/metalava/src/main/java/com/android/tools/metalava/ApiLint.kt;l=2369-2386;rcl=0ef26a465a89c45fcfd24d648883208cd0161fd2
Ignore-AOSP-First: tied to launch of new upcoming hardware.
Test: atest CtsAppTestCases:CommunalManagerTest
Test: atest FrameworksMockingServicesTests:CommunalManagerServiceTest
Bug: 206054365
Change-Id: I6d225d6ddb482d9cffb16d1f9a25a98abd0cc382
This new permission allows the holder to query information of all users
on the device.
Bug: 188410712
Bug: 205707885
Bug: 206106797
Test: N/A
Change-Id: I7c8bba963d18994e9750af9ba9ca4524a9fe3b54
This is to ensure the CTS tests SafetyCenterManagerTest still passes
after enforcing the permission.
Test: atest CtsSafetyCenterTestCases
Bug: 205706756
Ignore-AOSP-First: Not announced yet, and need to use a permission
that hasn't been merged in AOSP
Change-Id: Iaee11c55fc25a82299d4c45dd7d24151a4f8c30b
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow which locks the device.
Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Merged-In: I3fa20b53b929c97a6760d65b432a74c3415d6a08
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
This allows the holder to query device policies set by any admin.
Also granted the permission to shell.
Bug: 188410712
Bug: 205707885
Bug: 206107027
Test: N/A
Change-Id: I13d6801b045342939b45ef26350d18db652fe55d
Add android.permission.CALL_AUDIO_INTERCEPTION privileged
permission controlling access to call uplink and downlink audio.
Bug: 189472651
Test: make
Change-Id: I5c52c91e3ce54e6f0831ddff4274feabe6336679
Ignore-AOSP-First: Call redirection feature is not announced yet.
Granting Shell new permissions required for accessing
CompanionDeviceManager APIs (such as
REQUEST_COMPANION_PROFILE_APP_STREAMING,
REQUEST_COMPANION_SELF_MANAGED).
Permissions are needed for running CompanionDeviceManagerTest CTS test
(which utilizes adoptShellPermissionIdentity for accessing the API
protected by the said permissions).
Bug: 194301022
Test: atest CompanionDeviceManagerTest
Ignore-AOSP-First: new permissions (not yet in AOSP)
Change-Id: I2c8469661f3b6de4ee1e2aa37c919bc0ad25ef8f
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow which locks the device.
Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
So we can test system APIs in cts.
Bug: 201017875
Test: atest android.settings.cts.SettingsMultiPaneDeepLinkTest
Change-Id: I8bedd571a4d3385042533fe7dd5ded250894d14a
Merged-In: I8bedd571a4d3385042533fe7dd5ded250894d14a
So we can test system APIs in cts.
Bug: 201017875
Test: atest android.settings.cts.SettingsMultiPaneDeepLinkTest
Ignore-AOSP-First: There are merge conflicts in master. So uploading to
master.
Change-Id: I8bedd571a4d3385042533fe7dd5ded250894d14a
Merged-In: I8bedd571a4d3385042533fe7dd5ded250894d14a
Bug: 201957547
Test: NA; Comment Change Only
Ignore-AOSP-First: New permission only added internally for now.
Change-Id: I1399e7aceaf568b8d83b69d73a3bf8382039139e
Add a new permission that allows the holder to install a DPC package
without requiring user action.
Test: N/A
Bug: 204416562
Bug: 188410712
Change-Id: Ib0ef022d0af41562eeef89a027b23d9692488933
The new name better aligns with the component and permission names.
Follow up review comments on https://r.android.com/1784487
Bug: 183487233
Test: presubmit
Change-Id: Ibe3a3e51b0dc154ee3e43b27e561fd541b62cc54
To allow CTS testing to get this permission.
Bug: 194949534
Test: ag/15781910
Ignore-AOSP-First: Permission that should be kept internal until T releases
Change-Id: I47974c6989640246a7005361b0f2527715297833
The SharedFilter is used to share the Filter created by TIS to another
process. The TIS uses Filter.createSharedFilter() to create a token and
share it to another process. The new process will use
Tuner.openSharedFilter() to open that new token and create a
SharedFilter. The new process will be able to read the TIS owned
Filter's data with this new SharedFilter.
Bug: 196124225
Test: atest android.media.tv.tuner.cts on both AIDL and HIDL HAL.
Change-Id: Id93b30e4db242d35a3d1ae6023b967a90a78c448
This permission will be used for testing purposes to modify the user
prefrred mode.
Ignore-AOSP-First: There are merge conflicts in master. So uploading to
master.
Bug: 198452789
Test: m
Change-Id: Id17e20f93ca9db4a24245e8c38f62d95b4f0f4ce
System route info could be changed per different apps. For example,
when a BT headset is connected, if a media app call
MediaRouter.selectRoute(defaultRoute) via Jetpack lib, the app will use
the phone speaker while the other media apps use the BT headset.
System UI should be changed depends on this CL.
Bug: 156549746
Test: atest mediaroutertest
atest CtsMediaTestCases:android.media.cts.SystemMediaRouter2Test
Ignore-AOSP-First: AOSP doesn't have SystemMediaRouter2Test
Change-Id: Ie24f97023b7113a2b59f0b55ab7b4230b394e9bd
For the service to be able to check permission, the AIDL interface is
exported to the virt APEX where virtualizationservice is in.
In addition, the VM permissions are granted to shell so that developers
can use the 'vm' tool on the shell.
Bug: 168588769
Test: /apex/com.android.virt/bin/vm run-app --log /dev/null
/data/local/tmp/virt/MicrodroidDemoApp.apk
/data/local/tmp/virt/MicrodroidDemoApp.apk.idsig assets/vm_config.json
Change-Id: I00db58ba9cef3b83f43db68ef86f062b59a0e6e1
Shell doesn't need this permission and it confusing to the user
if visible in Settings.
Test: Shell doesn't appear in Settings under
Settings -> Apps -> Special app access -> Alarms & Reminders ->
3 dot menu -> Show system
Bug: 190775895
Change-Id: I98b051f37f3edf4f616f8847f691b956dafbdd12
Merged-In: I98b051f37f3edf4f616f8847f691b956dafbdd12
This is required for GTS testing it, rather than having to instrument
GMS Core.
Bug: 182271592
Test: tested as part of other CLs in this topic
Change-Id: Id56e0d206afe0a9069d1510a3dae9a07141fff60
Both of NetworkPolicyManager#isUidNetworkingBlocked() and
NetworkPolicyManager#isUidRestrictedOnMeteredNetworks() are
required OBSERVE_NETWORK_POLICY but OBSERVE_NETWORK_POLICY is a
signature permission that CTS cannot acquire.
So add this permission for shell and call these 2 APIs with
shell identity to fix the problem.
Bug: 176289731
Test: atest CtsHostsideNetworkTests:HostsideNetworkPolicyManagerTests
Original-Change: https://android-review.googlesource.com/1737413
Merged-In: Iba7321c82e1a3ed773f99ccd4b9e3c24c607353f
Change-Id: Iba7321c82e1a3ed773f99ccd4b9e3c24c607353f
Both of NetworkPolicyManager#isUidNetworkingBlocked() and
NetworkPolicyManager#isUidRestrictedOnMeteredNetworks() are
required OBSERVE_NETWORK_POLICY but OBSERVE_NETWORK_POLICY is a
signature permission that CTS cannot acquire.
So add this permission for shell and call these 2 APIs with
shell identity to fix the problem.
Bug: 176289731
Test: atest CtsHostsideNetworkTests:HostsideNetworkPolicyManagerTests
Change-Id: Iba7321c82e1a3ed773f99ccd4b9e3c24c607353f
Shell doesn't need this permission and it confusing to the user
if visible in Settings.
Test: Shell doesn't appear in Settings under
Settings -> Apps -> Special app access -> Alarms & Reminders ->
3 dot menu -> Show system
Bug: 190775895
Change-Id: I98b051f37f3edf4f616f8847f691b956dafbdd12
Grant shell android.permission.GET_TOP_ACTIVITY_INFO for testing Launcher
tests that need access to AssistContentRequester in shell context.
Bug: 190344718
Test: Local build and flash, ran test
Merged-In: I551e0bee413432653f39c91664d716f695311b6f
Change-Id: I551e0bee413432653f39c91664d716f695311b6f