Commit Graph

1660 Commits

Author SHA1 Message Date
Kyeongkab.Nam
5e4c395cdb Guard TIF vendor extension APIs by new permission
Guard TvInputManager#getAvailableExtensionInterfaceNames() and
TvInputManager#getExtensionInterface() by
android.Manifest.permission.TIS_EXTENSION_INTERFACE.

Bug: 215189795
Bug: 193052431
Test: run cts -m CtsTvTestCases -t
android.media.tv.cts.TvInputManagerTest

Change-Id: I43d4f063b0a602f00f7f71e8fe08fb09c7a763bf
2022-02-07 12:19:54 -08:00
Dave McCloskey
994e4e4b70 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" am: f4a4508e64 am: 9845deb4e9 am: 911482e768 am: 1a22e966e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962480

Change-Id: Icfd3343b7a629878201f04013afa3d9dfc4f499a
2022-02-05 00:09:28 +00:00
Dave McCloskey
911482e768 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" am: f4a4508e64 am: 9845deb4e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962480

Change-Id: I1e44c4359dabe2333353f55e0c42afe04efedc78
2022-02-04 23:28:44 +00:00
Dave McCloskey
f4a4508e64 Merge "Add TRUST_LISTENER to the shell for use in CTS tests" 2022-02-04 22:58:26 +00:00
Peiyong Lin
817d4a78eb Allow Shell to access MANAGE_GAME_ACTIVITY.
Allow Shell to have MANAGE_GAME_ACTIVITY permission in order to run CTS.

Bug: b/202414447
Test: atest GameServiceTest
Ignore-AOSP-First: not-yet-published new permission.
Change-Id: I11a64d4e2819e5a94ae59d280eaa165dce51f518
2022-02-04 08:00:27 +00:00
Maciej Żenczykowski
1ff3c31349 Merge "Revert "Allow Shell to access MANAGE_GAME_ACTIVITY."" 2022-02-04 02:43:44 +00:00
Michael Eastwood
8563bb2bd3 Revert "Allow Shell to access MANAGE_GAME_ACTIVITY."
This reverts commit 9d9268e635.

Reason for revert: DroidMonitor: Potential culprit for Bug b/217792792 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I8f0f469a8fd83b8096e2d2c595a588a762443a88
2022-02-04 01:21:02 +00:00
Peiyong Lin
2a3f3807aa Merge "Allow Shell to access MANAGE_GAME_ACTIVITY." 2022-02-03 22:54:38 +00:00
Treehugger Robot
698279f7d4 Merge "Add NEARBY_WIFI_DEVICES to shell permissions for CTS" am: 5d4effbd23 am: e4ee7f0e2e am: c144be7ef4 am: 0ff22a2817
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966019

Change-Id: Iefec7643bc26a244a107eaadda7b55667258dd8e
2022-02-03 02:37:36 +00:00
Treehugger Robot
c144be7ef4 Merge "Add NEARBY_WIFI_DEVICES to shell permissions for CTS" am: 5d4effbd23 am: e4ee7f0e2e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966019

Change-Id: I20ad89d1047717a8c5df66581be7014e3d10631e
2022-02-03 02:06:03 +00:00
Treehugger Robot
5d4effbd23 Merge "Add NEARBY_WIFI_DEVICES to shell permissions for CTS" 2022-02-03 00:51:24 +00:00
Peiyong Lin
9d9268e635 Allow Shell to access MANAGE_GAME_ACTIVITY.
Allow Shell to have MANAGE_GAME_ACTIVITY permission in order to run CTS.

Bug: b/202414447
Test: atest GameServiceTest
Ignore-AOSP-First: not-yet-published new permission.
Change-Id: I595c3b36c79c08b6c4092b6eb3fad8f704a11d65
2022-02-02 23:51:35 +00:00
Antonio Kantek
3237ec6669 Merge "(TouchMode Permission) Update shell permission" am: 9d625f5392 am: 74927c2995 am: 952554a16f am: 822f1965c5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959747

Change-Id: I3e3075eea443242d67ce9f05156b379772e467fe
2022-02-01 23:28:36 +00:00
Antonio Kantek
952554a16f Merge "(TouchMode Permission) Update shell permission" am: 9d625f5392 am: 74927c2995
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959747

Change-Id: I8d44811b771bb7ddc2c3e61b5d7567ef064869e7
2022-02-01 21:32:00 +00:00
Antonio Kantek
e06f3d2e3f (TouchMode Permission) Update shell permission
Update shell permission with MODIFY_TOUCH_MODE_STATE

Bug: 198487159
Test: manual
Change-Id: Ib5d5fd6298f281fe1339781026f4a2f471267747
2022-02-01 17:00:54 +00:00
xshu
a8460ad918 Add NEARBY_WIFI_DEVICES to shell permissions for CTS
Bug: 197776854
Test: build
Change-Id: I51f8441e3744a4137042abe602d700a4ab757fe1
2022-01-28 17:05:48 -08:00
Robert Horvath
5dfac22224 Merge changes from topics "low-power-standby-api", "lps-wakelock-testapi"
* changes:
  Add API to configure LPS maintenance mode behavior
  Add TestApi to force Low Power Standby to be active
  Add TestApi wakelock flag to have system acquire wakelock
  Allowlist active voice interaction session from Low Power Standby
  Introduce Low Power Standby API and wakelock restrictions
2022-01-28 12:27:05 +00:00
Robert Horvath
570645567f Introduce Low Power Standby API and wakelock restrictions
In Low Power Standby, additional restrictions are placed on apps that
are in a process state of FOREGROUND_SERVICE or less important
during standby (while the device is non-interactive):
- Wakelocks are disabled
- Network access is blocked
During doze maintenance windows the restrictions are lifted temporarily.

This change introduces the APIs for Low Power Standby, as well as
the wakelock restrictions.

This feature is targeting TVs. To prevent Low Power Standby from being
enabled on other devices, the feature is guarded by the config flag
config_lowPowerStandbySupported.

Bug: 190822356
Test: atest LowPowerStandbyControllerTest PowerManagerServiceTest
Ignore-AOSP-First: New permission only added internally for now.
Change-Id: Ia40f8a0fc4b366860af58ad76c988f93a5d41936
2022-01-27 23:08:26 +01:00
Shannon Chen
33b42f50df Merge "Add a test API allowing overriding the GameService provider." 2022-01-27 18:03:46 +00:00
Maurice Lam
f214e0d92e Merge "Make ADD_TRUSTED_DISPLAY and ADD_ALWAYS_UNLOCKED_DISPLAY "role"" 2022-01-27 17:45:42 +00:00
Evan Chen
bf9a16b7f5 Merge "Add computer permission to Shell's allowlist" 2022-01-27 06:57:35 +00:00
Calvin Pan
2801e6de4f Merge changes Ib484fc0c,I2b9ff69c,I0a31b117,I888c65c8,I03723cfe, ...
* changes:
  Clean <plurals> in DateTimeView
  Clean <plurals> in CertificateMonitor
  Clean <plurals> in FillUi
  Clean <plurals> in BugreportProgressService
  Clean <plurals> in keyguard
  Clean <plurals> in ChooserActivity
  Clear <plurals> in TextUtils
  Clean <plurals> in FindActionModeCallback
  Clean <plurals> in ZenModeConfig
  Add util class for plurals
2022-01-27 06:31:58 +00:00
Dave McCloskey
e0b7e861cd Add TRUST_LISTENER to the shell for use in CTS tests
Bug: 213631677
Test: m

Change-Id: I66eced84399147c4f182d250cd64598794b9c93b
2022-01-27 00:48:14 +00:00
Nate(Qiang) Jiang
1ce97f91ca Merge "Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS" am: dbe634a784 am: 93be545cde am: 8a4f65b48b am: e2f51cb6fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959813

Change-Id: I5f937570a060cc33af62635efa8ad0704ab053d2
2022-01-26 21:44:47 +00:00
Nate(Qiang) Jiang
8a4f65b48b Merge "Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS" am: dbe634a784 am: 93be545cde
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959813

Change-Id: I6b801218b1f79bfb456f6a0fefa0592594c33085
2022-01-26 21:07:15 +00:00
Erin Yan
2c7c391781 Merge "Add permissions to shell to enable testing" 2022-01-26 19:20:26 +00:00
shannonchen
d5846ad238 Add a test API allowing overriding the GameService provider.
This is so that CTS tests can be run against a test GameService
rather than against whatever GameService a particular device
has set as its default.

Ignore-AOSP-First: GameService incomplete in AOSP
Test: atest CtsGameServiceTestCases GameServiceProviderSelectorImplTest
Bug: 202417555
Bug: 206128693
Change-Id: I5d0d1a4047949117850818c14b5df617314efcf5
2022-01-26 15:48:22 +00:00
Nate Jiang
a6e72cf3e2 Add OVERRIDE_WIFI_CONFIG permission to Shell for CTS
Bug: 216433840
Test: build
Change-Id: I18500abe0e98030bd291aca536f6a70b0f6acafd
2022-01-26 03:00:50 -08:00
Calvin Pan
4ffb7e8884 Clean <plurals> in BugreportProgressService
Bug: 199230228
Test: make
Change-Id: I888c65c8819eb5443178ddfc2097d3519b89cefb
2022-01-26 11:55:10 +08:00
Evan Chen
4a13c90039 Add computer permission to Shell's allowlist
Bug: 216213933
Test: atest CtsCompanionDevicesTestCases:DeviceProfilesTest
Change-Id: I8088cc31fd4e5e508bfe30e15aa194ecab93f038
Ignore-AOSP-First: new permissions (not yet in AOSP)
2022-01-26 01:42:46 +00:00
Maurice Lam
990e342963 Make ADD_TRUSTED_DISPLAY and ADD_ALWAYS_UNLOCKED_DISPLAY "role"
These 2 permissions are needed for app streaming, so add them to the
APP_STREAMING role. They are also added to the Shell for CTS testing.

Fixes: 205062006
Bug: 204606917
Test: ag/16633813
Change-Id: I66903ba11694e1a57aecf1a12ed1f7e0f6eab811
Ignore-AOSP-First: Permissions are for features not in AOSP yet
2022-01-25 10:27:30 -08:00
Alex Johnston
cf04bc3d29 Add lost mode platform changes
Changes:
* Add SEND_LOST_MODE_LOCATION_UPDATES permission.
* Add DPM.sendLostModeLocationUpdate API.
* Add intent action and extras to send lost mode
  location updates to the DPC.
* Add DPM attribution tag

Manual testing:
* Add lost mode receiver to TestDPC
* Call new API in GmsCore using reflection
* Verify API call is successful and the
  lost mode receiver receives the location update

Bug: 206945072
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      manual testing
Change-Id: I9374a53c1146143c8f5bff3ac38cfe18d3f0bf2f
2022-01-25 10:12:31 +00:00
Treehugger Robot
eadc950b1e Merge "Add permissions to the shell to allow creation of CTS tests for trust." am: 139e007dc5 am: d9b1d582b4 am: 6ce69e06a3 am: 3a26a48294
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955633

Change-Id: Ib278ad053e744cf01c5f2b8cba8917d87a8d4290
2022-01-21 14:21:22 +00:00
Treehugger Robot
6ce69e06a3 Merge "Add permissions to the shell to allow creation of CTS tests for trust." am: 139e007dc5 am: d9b1d582b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955633

Change-Id: I51843ba8e7426a0a86f7227acba97051706e86f6
2022-01-21 13:47:08 +00:00
Treehugger Robot
139e007dc5 Merge "Add permissions to the shell to allow creation of CTS tests for trust." 2022-01-21 13:17:35 +00:00
Sharon Su
d59bc2951c Merge "Add new MANAGE_WALLPAPER_EFFECTS_GENERATION permission for the cts test" am: d1dfefffec am: 92bea7818d am: e6f7842767 am: 1689c96c28
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955201

Change-Id: If4f307d73f9b7bbf68242d1f1bf30c37038e0ac9
2022-01-21 05:40:22 +00:00
Sharon Su
e6f7842767 Merge "Add new MANAGE_WALLPAPER_EFFECTS_GENERATION permission for the cts test" am: d1dfefffec am: 92bea7818d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1955201

Change-Id: Ib765020d85d1b0bdd8c9b2c377898120cbe9e54b
2022-01-21 05:26:32 +00:00
Dave McCloskey
48ae5a7790 Add permissions to the shell to allow creation of CTS tests for trust.
Test: m TrustTestCases in separate CL
Bug: 213631672

Change-Id: Ie215e988eebe4103458b8be4d00698ae1121f75d
2022-01-20 15:48:11 -08:00
Pablo Gamito
4611f177e0 Remove READ_COMMUNAL_STATE from Shell
This seems to have been mistakenly added back in
I591b98578dbb94ca8b5be8a553b81d23a143ee16 after being removed
in I51ffbfe5ddc89008d660fab7cfd5808cb827d300

Gets Android to boot without crashing the system process

Fixes: 215527822
Change-Id: I5bc4920166101042ee36a97fe17a574b88caf29a
2022-01-20 16:10:25 +00:00
Sharon Su
5f97f2237c Add new MANAGE_WALLPAPER_EFFECTS_GENERATION permission for the cts test
Bug: 213238425
Test: build and presubmit
Change-Id: If6507ac871e01bebb770e85bc4572b7e3d2cb5d9
2022-01-20 00:35:57 +00:00
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
Gareth Vaughan
84f6837779 Merge "Add new permission START_CROSS_PROFILE_ACTIVITIES" am: 0702622783 am: 8051cf324f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1949116

Change-Id: I25565b7a04ac1eac63843f4ec39ce8a0dd347a95
2022-01-18 19:32:26 +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
d8c3b65041 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
Bug: 207117478
Change-Id: I9f554e937a653a51d5bbdaf19a7a90a9073d1aca
Merged-In: I4f368ec1a5facc0a95efee06b56522db853ff6d8
2022-01-13 22:51:29 +00:00
Erin Yan
9b27ef20e5 Add permissions to shell to enable testing
Adding MANAGE_WEAK_ESCROW_TOKEN and to Shell so the API can be called from tests.

Bug: 209632699
Test: Builds, boots. atest WeakEscrowTokenAutoFeatureTest
Ignore-AOSP-First: brand new permissions
Change-Id: If0a157903c605347a5b26625a735433caf27bcb1
2022-01-12 22:00:12 +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