Commit Graph

1616 Commits

Author SHA1 Message Date
Jacky Kao
1700cab5f8 Merge "Adds APIs to let live caption can access the data in the DB (2/n)" 2022-01-18 23:26:52 +00:00
Jacky Kao
726d387e82 Adds APIs to let live caption can access the data in the DB (2/n)
1. Proposes the public APIs to get and the system APIs to set the
status of the captions and UI show/hide, and notify the status change.

2. Creates a new class, CaptioningManagerImpl, to get/set the value
of the secure setting keys through the A11yManagerService.

3. Adds a new permission, to protect the setter methods which can't
be used by 3rd party apps.

Bug: 136282740
Test: a11y CTS & unit tests
Change-Id: I591b98578dbb94ca8b5be8a553b81d23a143ee16
Ignore-AOSP-First: new permissions (not yet in AOSP)
2022-01-17 14:57:45 +08:00
Vania Desmonda
46888e3df2 Grant SET_WALLPAPER_DIM_AMOUNT permission to shell
Test: atest
Bug: 202841384
Change-Id: I25956393d5291f3b8f49bacead579975466e150e
2022-01-17 05:57:31 +00:00
Gareth Vaughan
8895d9fed7 Add new permission START_CROSS_PROFILE_ACTIVITIES
This allows holders of START_CROSS_PROFILE_ACTIVITIES permission to start an activity of the caller package in the other profile.
The "android.app.role.SYSTEM_WELLBEING" role will get this permission.

Test: atest CrossProfileAppsHostSideTest (with new tests in change I661d4b7132291950c8bcb4690d90154a78751b1e)
Ignore-AOSP-First: seeking internal review on WIP change prior to merging in AOSP
Change-Id: I4f368ec1a5facc0a95efee06b56522db853ff6d8
Bug: 207117478
2022-01-12 12:47:03 -05:00
Elliot Sisteron
398ed934da Merge "Add MANAGE_SAFETY_CENTER permission." 2022-01-11 19:11:07 +00:00
Josh Yang
2e6243d900 Merge "update bug report notification title" 2022-01-11 17:37:40 +00:00
Josh Yang
f9965004c0 Merge "Support adding System Traces to Wear Bugreports" 2022-01-11 17:33:44 +00:00
Nate Myren
1c89213b97 Merge "Allow shell to revoke notification permission without kill" 2022-01-11 16:48:29 +00:00
Antoan Angelov
04a2f675bd Merge "Make LAUNCH_DEVICE_MANAGER_SETUP adoptable by shell for CTS tests" 2022-01-11 13:16:14 +00:00
Nate Myren
2c54f50da6 Allow shell to revoke notification permission without kill
Add the revokePostNotificationPermissionWithoutKillForTest API, which
will allow the shell to revoke the POST_NOTIFICATIONS permission without
killing this app. Gate this permission behind the
REVOKE_POST_NOTIFICATIONS_WITHOUT_KILL permission, which is
signature|privileged, accessible only to the shell.

Ignore-AOSP-First: Contains information about unreleased features
Test: manual
Bug: 194833441
Change-Id: I3177d1aeb338591c1d736aa6b4f073b6db6227e7
2022-01-10 11:58:45 -08:00
Elliot Sisteron
39561ba353 Add MANAGE_SAFETY_CENTER permission.
Only for use by SafetyCenter (PermissionController), and shell for CTS
tests.

Test: atest CtsSafetyCenterTestCases
Bug: 203205376
Ignore-AOSP-First: Not announced yet, and permission hasn't been merged
in AOSP

Change-Id: I0f2ac01a0fc340b48d30b3e2006c2726a88c52a9
2022-01-10 14:50:21 +00:00
arangelov
31dafe7792 Make LAUNCH_DEVICE_MANAGER_SETUP adoptable by shell for CTS tests
Fixes: 213574164
Test: none
Ignore-AOSP-First: This new permission is part of a T-targeting feature
Change-Id: I9deebbb9721232ba29cbc5a8267a240761a2bc82
2022-01-07 14:36:48 +00:00
Xiaowen Lei
8b438be8e4 Clean up Communal Manager READ_COMMUNAL_STATE APIs.
These are not yet used, and are obsolete now because We will no longer
be shipping SLS in T.

Ignore-AOSP-First: tied to launch of new upcoming hardware.

Test: atest FrameworksMockingServicesTests:CommunalManagerServiceTest

Bug: 206054365
Change-Id: I51ffbfe5ddc89008d660fab7cfd5808cb827d300
2022-01-07 00:18:35 +00:00
Jan Tomljanovic
8066d1ef7b Add config value and a new permission for SafetyCenter.
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
2021-12-20 15:59:38 +00:00
kholoud mohamed
3809e3ee74 Add new permission UPDATE_DEVICE_MANAGEMENT_RESOURCES
The permission allows the holder to update certain device management
related system resources

Bug: 188410712
Bug: 203548565
Test: N/A
Change-Id: I3930612e513bc1708ef2837c78204e1ba8c83c24
2021-12-16 15:50:18 +00:00
Hui Wu
c438cf02ee Merge "Add new MANAGE_CLOUDSEARCH permission for the cts test" am: d15fe6e622 am: 22a35c2185 am: bc8204f93c am: 1f87797c54
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1921037

Change-Id: Iad1e68b093a1dcecde655efad65dbcff13679c4b
2021-12-14 22:25:35 +00:00
Hui Wu
bc8204f93c Merge "Add new MANAGE_CLOUDSEARCH permission for the cts test" am: d15fe6e622 am: 22a35c2185
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1921037

Change-Id: Ia724f729f3aa402248adc0ac736dcd21ad17214c
2021-12-14 21:29:03 +00:00
Hui Wu
d15fe6e622 Merge "Add new MANAGE_CLOUDSEARCH permission for the cts test" 2021-12-14 20:35:51 +00:00
Xin Li
85d715bac3 Merge "Merge Android 12 QPR1" 2021-12-14 20:25:23 +00:00
Alex Buynytskyy
2d9b8b8a06 Merge "Allow shell/CTS to be package verifier." am: 99ada16f28 am: 6f6c520b90 am: eabf24b25e am: f744fb9e13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920519

Change-Id: Ib75a13edd0956b66882903730a9036744de5bfbd
2021-12-14 15:45:55 +00:00
Alex Buynytskyy
eabf24b25e Merge "Allow shell/CTS to be package verifier." am: 99ada16f28 am: 6f6c520b90
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920519

Change-Id: Ia480bbf461f0009eb5573db36d8b0d7f4133eb69
2021-12-14 15:13:46 +00:00
Alex Buynytskyy
6f6c520b90 Merge "Allow shell/CTS to be package verifier." am: 99ada16f28
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920519

Change-Id: Id62d814b8f3b451d6bb1929218e99300bfbdc7d5
2021-12-14 14:59:43 +00:00
Alex Buynytskyy
b4dc01e32a Allow shell/CTS to be package verifier.
Bug: 204810986
Test: device boots
Test: atest PackageManagerShellCommandTest ChecksumsTest
Change-Id: I0b379714a946c18afdeca4ec02469d26646544df
2021-12-14 01:18:16 +00:00
Hui Wu
a6324ff99e Add new MANAGE_CLOUDSEARCH permission for the cts test
Bug: 210528288
Test: cts test runs only with this CL
Change-Id: Ie4d262beb3b5054f4a9cf26001113ceabb5d793e
2021-12-13 23:30:47 +00:00
Kholoud Mohamed
8199ec0d7e Merge changes from topic "queryUser"
* changes:
  Add QUERY_USERS permission to some UserManager APIs
  Create new QUERY_USERS permission
2021-12-10 21:54:34 +00:00
Xiaowen Lei
a676d9b3df Add callback registration mechanism for listening to communal state changes.
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
2021-12-08 23:45:42 +00:00
kholoud mohamed
d0fe35e8b4 Create new QUERY_USERS permission
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
2021-12-08 16:23:01 +00:00
Elliot Sisteron
3379259e80 Add SEND_SAFETY_CENTER_UPDATE to shell permissions.
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
2021-12-08 12:23:42 +00:00
Eric Laurent
d8f5f3bb4f Merge changes from topic "call_redirection_apis"
* changes:
  audio: add call audio redirection APIs
  Add permission for call audio redirection
2021-12-07 08:29:21 +00:00
Julia Reynolds
fb1e94eb4e Shell: post notifications permission
so the package can send notifications on T+

Bug: 194833441
Change-Id: If38ae3addf6694f2dfe9f3ccc20d9a6495bfc193
2021-12-06 18:09:16 +00:00
Treehugger Robot
37643533d3 Merge "Add DEVICE_LOCK permission to Shell to support ATS test" am: 00b14576ba am: 8dc3be6249
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909557

Change-Id: Ica48fc74b73c4d54f39fff315ecd8ffc03989e9a
2021-12-03 01:37:21 +00:00
Treehugger Robot
8dc3be6249 Merge "Add DEVICE_LOCK permission to Shell to support ATS test" am: 00b14576ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909557

Change-Id: I3929ce59312776fb513e9754eb7b24852ca82bbe
2021-12-03 01:14:21 +00:00
Anthony Hugh
b4cce59e37 Add DEVICE_LOCK permission to Shell to support ATS test
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
2021-12-02 23:49:22 +00:00
Anthony Hugh
0f642cfedf Merge "Add DEVICE_LOCK permission to Shell to support ATS test" 2021-12-02 23:41:09 +00:00
kholoud mohamed
8620e8a4f9 Add new QUERY_ADMIN_POLICY permission
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
2021-11-30 17:04:39 +00:00
TreeHugger Robot
0a37f9d6c3 Merge "Share Wear bugreport right after it is taken" 2021-11-29 23:09:50 +00:00
Eric Laurent
c86875fb00 Add permission for call audio redirection
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.
2021-11-25 11:03:39 +01:00
Yeabkal Wubshit
5837e45717 Share Wear bugreport right after it is taken
In rvc-wear-dev, bugreports were not shared to phone until user tapped
on the bugreport-complete notification. Now, we are sending bugreports
to phones immediately after bugreport is taken. We still retain the
bugreport-complete notification. The bugreport-complete notification
will have an action button that leads the user to a bugreport-warning
screen as long as the user has not opted out from seeing the warning.
If the user chooses not to see that message again (which they can do
in the warning screen), there will not be any action button on the
bugreport-complete notification, and the user can just swipe to
delete it. Refer to the look of the notification when no warning message
is to be displayed (https://screenshot.googleplex.com/JStqotLwCaTXeL9)
and when a warning message is to be displayed (https://screenshot.googleplex.com/AdGKWFqbky8Ad8s)
Note: this change does NOT affect the functionality of the
BugreportProgressService for any other device except Wear devices.

Bug: 163083307
Test: the described feature tested with salmon running rvc-wear-dev
Change-Id: If6890ef8cada60e454c9232d402bbdb8a1b0315e
2021-11-24 23:45:21 +00:00
Sergey Nikolaienkov
9d95ba09be Grant Shell CDM permissions
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
2021-11-24 14:50:49 +01:00
Anthony Hugh
a07ccbe656 Add DEVICE_LOCK permission to Shell to support ATS test
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
2021-11-22 14:10:11 -08:00
Treehugger Robot
467fc19198 Merge "Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell" am: 9b6a363c8c am: c15f518369
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892999

Change-Id: I814281ec1817d61b5a8d454cf422c57963c8acb0
2021-11-19 03:45:31 +00:00
Treehugger Robot
c15f518369 Merge "Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell" am: 9b6a363c8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1892999

Change-Id: I178d7c006f1f4be80b02a49d90b4be8237129aa3
2021-11-19 03:33:15 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Arc Wang
0d7cc7a8a6 Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell
So we can test system APIs in cts.

Bug: 201017875
Test: atest android.settings.cts.SettingsMultiPaneDeepLinkTest
Change-Id: I8bedd571a4d3385042533fe7dd5ded250894d14a
Merged-In: I8bedd571a4d3385042533fe7dd5ded250894d14a
2021-11-17 07:01:56 +00:00
Arc Wang
7cf5afa7bf Add LAUNCH_MULTI_PANE_SETTINGS_DEEP_LINK permission to Shell
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
2021-11-17 14:55:04 +08:00
Abhijit Nukalapati
f55cffb820 update bug report notification title
Since the existing notification style sets maxLines to 2, the title was
being truncated and the percentage was thus not visible to the user.

As recommended by UX, we are updating the string so that it is no longer
truncated and the percentage text is visible.

Screenshots:
Before - https://screenshot.googleplex.com/9U6RKuMcnECQ3pV
After - https://screenshot.googleplex.com/8U9NCJHhR5qkRCD

BUG: 198747050
Change-Id: I2b94cc65e2b9c3af860dd35532e1060814f6a68e
(cherry picked from commit 262e835016e340e5fd7b5eb00b7ac6579ca127ae)
2021-11-16 22:42:25 +00:00
Yeabkal Wubshit
c4e31b8d9e Support adding System Traces to Wear Bugreports
System Traces collected with the native System Tracing App (Traceur) are
now added under a separate directory (systraces) for Wear bugreports.
Note that this change is functionally no-op for non-Wear form-factors (changes only one log's wordings for non-Wear form-factors).

Bug: 183239853
Test: manual
Change-Id: Id6b9aa0d38a0d465b763ec86fb1192875379431c
(cherry picked from commit 7111510c691ccf20baf372dab5cea2ac30ae0c23)
2021-11-16 22:19:24 +00:00
Pratyush More
1819cc60e3 Update Shell Permission comment to refer to LocaleManager CTS name.
Bug: 201957547
Test: NA; Comment Change Only
Ignore-AOSP-First: New permission only added internally for now.

Change-Id: I1399e7aceaf568b8d83b69d73a3bf8382039139e
2021-11-09 15:44:39 +00:00
TreeHugger Robot
7b114fdac3 Merge "Add CREATE_VIRTUAL_DEVICE permission to Shell" 2021-11-08 22:30:20 +00:00
Kholoud Mohamed
8efd85d97a Merge changes from topic "installPackages"
* changes:
  Allow installing DPCs with INSTALL_DPC_PACKAGES
  Add new INSTALL_DPC_PACKAGES permission
2021-11-08 18:19:59 +00:00