Commit Graph

1570 Commits

Author SHA1 Message Date
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
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
Yi Kong
9557ce3e22 Merge "Rename upload action to com.android.shell.action.PROFCOLLECT_UPLOAD" am: 473d29e6b1 am: 712e696cb4 am: ccb4fc52aa am: d16fdbd693 am: 5b40c28e2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1884169

Change-Id: Ib45b650caba2ad3d3cd0c6e59f75e85f8c280411
2021-11-08 17:28:17 +00:00
kholoud mohamed
ab6940d4d4 Add new INSTALL_DPC_PACKAGES permission
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
2021-11-08 14:28:08 +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
f887b5bc4f Merge "profcollect/betterbug integration with content uri" am: 0849b35051 am: 282fa75f5e am: 3e6258066e am: 6e3982e7b7 am: b91f1f4e8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1784487

Change-Id: I455509f53d2a15b0c09a7fc7e198b4faa6c03cbc
2021-11-06 09:33:42 +00:00
Maurice Lam
34cb7663e7 Add CREATE_VIRTUAL_DEVICE permission to Shell
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
2021-11-05 16:17:55 -07:00
Hongguang
bcca4dc8b9 Add SharedFilter to tuner frameworks.
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
2021-10-29 12:05:29 -07:00
Tingting Wang
0825cf2867 Merge "Add default account permission to Shell." 2021-10-28 23:02:13 +00:00
Kevin Resnick
636a7e9b20 Adding android.permission.MANAGE_VOICE_KEYPHRASES to the shell app to allow GTS tests to pass.
Change-Id: I40c41f8023234091260650a14d631f8900057849
Bug: 203585818
2021-10-19 21:48:59 +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
Tingting
51f97c3110 Add default account permission to Shell.
Ignore-AOSP-First: permission present in internal branch only
Test: atest CtsContactsProviderTestCases
Bug: 196239242
Change-Id: Icb2bebb24cdaf3d8ceebe1997ede3d49e214b0da
2021-10-13 00:03:19 +00:00
Kriti Dang
b98d265e86 Add permission to modify user preferred display mode.
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
2021-10-08 12:37:38 +00:00
“Ankita
f2d3022e5d Add new LocaleManagerService and its shell commands
Ignore-AOSP-First: permission present in internal branch only

Test: tested manually via adb

Bug: 194094788
Bug: 194484378

Change-Id: I413a74fc1b15d164de7f2098e975e0b792685394
2021-10-06 05:25:43 +00:00
Sungsoo Lim
df20c6308d Make MediaRouter2Manager provide correct system routes info
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
2021-09-24 13:53:53 +09:00
Bill Yi
e46a888bc4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id038bc19e5a8fa53fdbe1491a6ba726a0d46169c
2021-09-11 01:02:30 +00:00
Bill Yi
8ef7e285ca Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If56423949ea04d753ca94550edaefdbe008b5098
2021-08-27 13:25:13 +00:00
Bill Yi
9f3b563e46 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I85aef1aff252aacbf86601b1f1cee472e871a944
2021-08-10 05:23:24 +00:00
Bill Yi
56142efa04 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie8488dc066aaa1089fedeefb0329e0f0aa3e4dcb
2021-08-07 05:22:23 +00:00
Bill Yi
2d90d6144e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifb01306f8b0666369e40e423ad92a5a5c1874736
2021-07-23 16:14:05 +00:00
Bill Yi
6bde9d819a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I60d08e38a1467ac112053394bfc780d8bcc76959
2021-07-20 21:04:16 +00:00
Bill Yi
fe14767ded Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I97d379401e714f773d70c359abdacfb22af51db8
2021-07-18 15:30:07 +00:00
Jiyong Park
0edf7f6f47 Merge "Implement permission check for virtualizationservice" am: 1ce000ff84 am: 01dfd737f5 am: da0ffb8e4f am: e96e8c2b52
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1763365

Change-Id: I4c04a921f2cdd1a8c891a0d2b838139420fe58b5
2021-07-13 16:27: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