1556 Commits

Author SHA1 Message Date
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
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
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
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
Suprabh Shukla
f199b66d36 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
2021-06-10 19:33:01 -07:00
Treehugger Robot
74c6327514 Merge "Give shell android.permission.GET_TOP_ACTIVITY_INFO" am: 388c76ada4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1729512

Change-Id: If29c56b48d3137e963884896888b35f6a44f0345
2021-06-09 18:20:34 +00:00
TreeHugger Robot
61df18427d Merge "Give shell android.permission.GET_TOP_ACTIVITY_INFO" into sc-dev am: 57fcc33111
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14909796

Change-Id: I5eaedc6dc023811b3a1077ab9dd1e0674a893d21
2021-06-09 17:20:16 +00:00
zakcohen
baea422788 Give shell android.permission.GET_TOP_ACTIVITY_INFO
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
2021-06-09 03:32:35 +00:00
Zak Cohen
46e5c0df76 Give shell android.permission.GET_TOP_ACTIVITY_INFO
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
2021-06-09 03:27:58 +00:00
Bill Yi
ab6521bb91 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I458cc3b1b672932f5e97ca47523444eda810c18f
2021-06-07 14:45:32 +00:00
Jeff Sharkey
3014068eb8 Merge "Don't export HeapDumpProvider." into sc-dev am: 0b4b1ccbdb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14829145

Change-Id: I8a7aef9f7a5cd69efebe93770425b568a5fef4d2
2021-06-04 22:19:22 +00:00
Kweku Adams
a60c62bcb7 Don't export HeapDumpProvider.
Stop exporting HeapDumpProvider so apps can only access generated dumps
when the user explicitly shares them.

Bug: 184046948
Test: capture system heap dump in developer options and confirm test app
get SecurityException if it tries to access the dump directly, but gets
access when the dump is shared through the notification flow

Change-Id: Ibdca7cde4f563baa39163869289da5b79fc3a6db
2021-06-03 16:07:56 -07:00
Treehugger Robot
b487b585c5 Merge "Add permission into Shell for CTS test" am: 6963e8d05b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1716671

Change-Id: I1fff8c332e77b0061a2beaddc2422825d5af8fc0
2021-05-31 02:45:32 +00:00
TreeHugger Robot
ebb9f1e93e Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev am: 6572539f65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14540428

Change-Id: Ib9db03805c0a7cbc337824a61434422cff4ffa30
2021-05-26 10:56:56 +00:00
TreeHugger Robot
6572539f65 Merge "Check "BIND_HOTWORD_DETECTION_SERVICE" permission before binding HotwordDetectionService" into sc-dev 2021-05-25 13:24:35 +00:00
lpeter
f62ae15bad Add permission into Shell for CTS test
Bug: 187914415
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Merged-In: I4ccd8fd5b153f28fa4b1463f7412bb8067cc4ffd
Merged-In: I8829c3c389fb5fe4b06ffcf21870db50fa2ede4b
Change-Id: I1bf11112ba7c37b372db772312a75c39809962a9
2021-05-25 10:43:12 +08:00
Patrick Baumann
43628ca24c Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21 14:13:18 -07:00