Commit Graph

1569 Commits

Author SHA1 Message Date
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
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
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
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
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
Bill Yi
e5aea73516 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id4693c75727f7f10ebd91c85d1b706b661c1ba3a
2022-01-10 15:24:52 +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
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
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
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
Yi Kong
b324a7418a Rename upload action to com.android.shell.action.PROFCOLLECT_UPLOAD
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
2021-11-08 06:16:22 +00:00
Yi Kong
ca33a22bc6 profcollect/betterbug integration with content uri
Test: manual
Bug: 183487233
Bug: 194155753
Change-Id: I6bdec2d090126c53d3cf2fa9deece2441eeafd98
2021-10-13 05:34:00 +00:00
Jiyong Park
da0ffb8e4f Merge "Implement permission check for virtualizationservice" am: 1ce000ff84 am: 01dfd737f5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763365

Change-Id: I81519001e9e2dae4eef2b38327858281e44d1886
2021-07-13 16:09:29 +00:00
Jiyong Park
a8cc7f17bf Implement permission check for virtualizationservice
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
2021-07-13 08:25:28 +09:00
Nikita Ioffe
ffcc75b181 Merge "Grant INSTALL_PACKAGE_UPDATES permission to Shell" into sc-dev am: 1d2cbb6f50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235316

Change-Id: I4f39d26a3c086f186240411e31052011a262b963
2021-07-12 20:19:21 +00:00
Nikita Ioffe
65eb22cc56 Grant INSTALL_PACKAGE_UPDATES permission to Shell
Bug: 188062003
Test: m
Change-Id: I342f64e666afa4202b8af69f04d64b05d40fac40
2021-07-09 00:52:08 +01:00
Bill Yi
904b805a3b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3119b126448d6baaff32b055f23079a01b84574d
2021-07-03 19:25:33 -07:00
Bill Yi
0948be6a56 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3b359da04d6f3c8f8f4f6ba47a35a587ab4f0c80
2021-07-02 10:22:39 +00:00
TreeHugger Robot
268e58afe4 Merge "Remove SCHEDULE_EXACT_ALARM from Shell" into sc-dev 2021-06-30 00:42:40 +00:00
Suprabh Shukla
d50bc69f94 Remove SCHEDULE_EXACT_ALARM from Shell
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
2021-06-29 16:27:28 -07:00
TreeHugger Robot
866fdeaa20 Merge "Give Shell the NOTIFY_PENDING_SYSTEM_UPDATE permission" into sc-dev am: 69a0939764
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15107816

Change-Id: I6a58650e3553227b5a858a0dbb26d2c0a1380a9a
2021-06-29 17:03:50 +00:00
TreeHugger Robot
69a0939764 Merge "Give Shell the NOTIFY_PENDING_SYSTEM_UPDATE permission" into sc-dev 2021-06-29 16:57:01 +00:00
Alex Kershaw
1f5ef8e31d Give Shell the NOTIFY_PENDING_SYSTEM_UPDATE permission
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
2021-06-29 11:52:04 +01:00
TreeHugger Robot
849af2a984 Merge "Allow Shell more permissions for TvInputManagerTest." into sc-dev am: 7058f9948f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15098677

Change-Id: If58599b99b81fb0a5272c02ee16354b697156c47
2021-06-28 11:21:46 +00:00
TreeHugger Robot
7058f9948f Merge "Allow Shell more permissions for TvInputManagerTest." into sc-dev 2021-06-28 11:05:00 +00:00
Bill Yi
a9c04b5bd6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaacad6ae55e075d8f5dfcb74618062d248cb4686
2021-06-26 12:24:35 +00:00
Hongguang
757d741cd7 Allow Shell more permissions for TvInputManagerTest.
Bug: 171024152
Test: android.media.tv.cts.TvInputManagerTest
Change-Id: Iabea3ea72a5476892c848eaa8ebf4f93ad9b1000
2021-06-25 00:50:51 +00:00
Lucas Lin
fbc5d5d588 Add OBSERVE_NETWORK_POLICY for shell to test CTS
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
2021-06-22 05:46:59 +00:00
Lucas Lin
132eb9d912 Merge "Add OBSERVE_NETWORK_POLICY for shell to test CTS" am: a7cf9f2c02 am: bb7dc51bc5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1737413

Change-Id: I8a9442e99f22997d0114b927ebf9fb3b3c7979d6
2021-06-22 03:47:36 +00:00
Lucas Lin
a7cf9f2c02 Merge "Add OBSERVE_NETWORK_POLICY for shell to test CTS" 2021-06-21 23:58:49 +00:00
Bill Yi
b507cbdc22 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icc0092ac2c4fad7ed3ce04582eed6b90f0aec782
2021-06-20 21:17:14 +00:00
Bill Yi
187901803b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2819aa08e417169038e419037f246e4ca4ce12ba
2021-06-17 22:07:14 +00:00
lucaslin
010a8e0667 Add OBSERVE_NETWORK_POLICY for shell to test CTS
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
2021-06-16 17:45:32 +08:00
Xin Li
48e70ad8bc DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: I81c036a8484d14683db9450b55bd379c7a728d73
Change-Id: I71fe9744d88740a8d95235ddb4c8ab91881473ce
2021-06-14 22:01:46 -07:00
Treehugger Robot
46ec3a64e2 Merge "Remove SCHEDULE_EXACT_ALARM from Shell" am: 15ec62006a am: f9119ba721
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1734573

Change-Id: I79b787b22c36b9028a50fab4191fc3915ddc6710
2021-06-12 11:49:37 +00:00
Treehugger Robot
f9119ba721 Merge "Remove SCHEDULE_EXACT_ALARM from Shell" am: 15ec62006a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1734573

Change-Id: I5c11ed6be44d43e9b19905e98178a8829e2dac6f
2021-06-12 11:29:46 +00:00
Treehugger Robot
15ec62006a Merge "Remove SCHEDULE_EXACT_ALARM from Shell" 2021-06-12 11:05:56 +00:00
Bill Yi
43d1318f43 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7e5604a3d35651a10450ac20039d12b5ce2e0b7d
2021-06-11 12:24:40 +00:00