blob: 319b44ce216f3d0fd750aefe233e220c0f3b2cb8 [file] [log] [blame]
Alan Viverettee3c38a02014-04-02 15:39:13 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
Felipe Lemee53e85f2015-11-17 17:37:53 -08004 * Copyright (C) 2015 The Android Open Source Project
Alan Viverettee3c38a02014-04-02 15:39:13 -07005 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
Dianne Hackborn514074f2013-02-11 10:52:46 -080019<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20 package="com.android.shell"
21 coreApp="true"
22 android:sharedUserId="android.uid.shell"
23 >
24
Nate Myren17f21592019-05-09 13:58:06 -070025 <!-- Standard permissions granted to the shell. -->
26 <uses-permission android:name="android.permission.GET_RUNTIME_PERMISSIONS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080027 <uses-permission android:name="android.permission.SEND_SMS" />
Eugene Susla93519852018-06-13 16:44:31 -070028 <uses-permission android:name="android.permission.READ_SMS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080029 <uses-permission android:name="android.permission.CALL_PHONE" />
Yorke Leeadb53b32015-06-03 14:15:42 -070030 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
chen xu6a942d482018-12-12 19:59:30 -080031 <uses-permission android:name="android.permission.READ_PRECISE_PHONE_STATE" />
Shuo Qian134334b2019-09-12 17:00:31 -070032 <uses-permission android:name="android.permission.READ_ACTIVE_EMERGENCY_SESSION" />
Michael Groover1248e432018-10-08 09:39:24 -070033 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080034 <uses-permission android:name="android.permission.READ_CONTACTS" />
35 <uses-permission android:name="android.permission.WRITE_CONTACTS" />
36 <uses-permission android:name="android.permission.READ_CALENDAR" />
37 <uses-permission android:name="android.permission.WRITE_CALENDAR" />
38 <uses-permission android:name="android.permission.READ_USER_DICTIONARY" />
39 <uses-permission android:name="android.permission.WRITE_USER_DICTIONARY" />
40 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
41 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Nathan Harold89796d42020-06-18 12:19:34 -070042 <!-- ACCESS_BACKGROUND_LOCATION is needed for testing purposes only. -->
43 <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080044 <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
45 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
46 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
47 <uses-permission android:name="android.permission.BLUETOOTH" />
Alex Klyubin1991f572017-03-03 14:08:36 -080048 <uses-permission android:name="android.permission.LOCAL_MAC_ADDRESS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080049 <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
Tim Kilbournbba73a02015-09-01 14:21:09 -070050 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
Felipe Leme6a05eee2016-02-19 14:43:51 -080051 <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
Philip P. Moltmann30a2d632016-11-29 14:25:59 -080052 <uses-permission android:name="android.permission.MANAGE_USB" />
Jeff Sharkey4a539442018-01-05 17:09:52 -070053 <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
Dianne Hackborndd027b32018-01-19 17:44:46 -080054 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Dianne Hackborn514074f2013-02-11 10:52:46 -080055 <!-- System tool permissions granted to the shell. -->
Dianne Hackborn2d7576b2014-10-03 16:26:04 -070056 <uses-permission android:name="android.permission.REAL_GET_TASKS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080057 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
58 <uses-permission android:name="android.permission.REORDER_TASKS" />
Jeff Sharkey4ba69232018-12-08 14:43:03 -070059 <uses-permission android:name="android.permission.REMOVE_TASKS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080060 <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
61 <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" />
62 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
63 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
Stanislav Zholninbec88352019-01-16 14:30:35 +000064 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
65 <uses-permission android:name="android.permission.WRITE_DEVICE_CONFIG" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080066 <uses-permission android:name="android.permission.BROADCAST_STICKY" />
Phil Weaver1df928f2018-10-12 15:48:34 -070067 <uses-permission android:name="android.permission.MANAGE_ACCESSIBILITY" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080068 <!-- Development tool permissions granted to the shell. -->
69 <uses-permission android:name="android.permission.SET_DEBUG_APP" />
70 <uses-permission android:name="android.permission.SET_PROCESS_LIMIT" />
71 <uses-permission android:name="android.permission.SET_ALWAYS_FINISH" />
72 <uses-permission android:name="android.permission.DUMP" />
73 <uses-permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES" />
74 <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
75 <!-- Internal permissions granted to the shell. -->
76 <uses-permission android:name="android.permission.FORCE_BACK" />
77 <uses-permission android:name="android.permission.BATTERY_STATS" />
Sudheer Shanka93bfd052017-09-01 16:41:10 -070078 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080079 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
80 <uses-permission android:name="android.permission.INJECT_EVENTS" />
81 <uses-permission android:name="android.permission.RETRIEVE_WINDOW_CONTENT" />
82 <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" />
83 <uses-permission android:name="android.permission.READ_INPUT_STATE" />
84 <uses-permission android:name="android.permission.SET_ORIENTATION" />
85 <uses-permission android:name="android.permission.INSTALL_PACKAGES" />
Todd Kennedy66ed8df2020-03-25 08:59:34 -070086 <!-- TODO(b/152310230): remove once APIs are confirmed to be sufficient -->
87 <uses-permission android:name="com.android.permission.USE_INSTALLER_V2" />
Jeff Sharkeye515c642015-08-28 11:20:39 -070088 <uses-permission android:name="android.permission.MOVE_PACKAGE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080089 <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" />
Jeff Sharkeya4daf892017-04-09 21:37:56 -060090 <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
Sergii Piatakove8214d62018-04-02 16:48:56 +030091 <uses-permission android:name="android.permission.ACCESS_INSTANT_APPS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080092 <uses-permission android:name="android.permission.DELETE_CACHE_FILES" />
93 <uses-permission android:name="android.permission.DELETE_PACKAGES" />
Richard Uhlerc739c8c2018-12-12 11:03:34 +000094 <uses-permission android:name="android.permission.MANAGE_ROLLBACKS" />
Richard Uhler1fc10c12019-03-18 11:38:46 +000095 <uses-permission android:name="android.permission.TEST_MANAGE_ROLLBACKS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080096 <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />
97 <uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
Nikita Ioffe1ef72132020-02-01 00:08:14 +000098 <uses-permission android:name="android.permission.REBOOT" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080099 <uses-permission android:name="android.permission.DEVICE_POWER" />
Salvador Martinez812ea752018-10-19 13:03:20 -0700100 <uses-permission android:name="android.permission.POWER_SAVER" />
Dianne Hackborn514074f2013-02-11 10:52:46 -0800101 <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" />
102 <uses-permission android:name="android.permission.BACKUP" />
103 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
104 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
105 <uses-permission android:name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" />
Svet Ganov7121e182015-07-13 22:38:12 -0700106 <uses-permission android:name="android.permission.GRANT_RUNTIME_PERMISSIONS" />
107 <uses-permission android:name="android.permission.REVOKE_RUNTIME_PERMISSIONS" />
108 <uses-permission android:name="android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS" />
Svet Ganovd8eb8b22019-04-05 18:52:08 -0700109 <uses-permission android:name="android.permission.WHITELIST_RESTRICTED_PERMISSIONS" />
Nate Myrend3a63852019-06-07 13:11:58 -0700110 <!-- Permission required to test onPermissionsChangedListener -->
111 <uses-permission android:name="android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -0800112 <uses-permission android:name="android.permission.SET_KEYBOARD_LAYOUT" />
113 <uses-permission android:name="android.permission.GET_DETAILED_TASKS" />
114 <uses-permission android:name="android.permission.SET_SCREEN_COMPATIBILITY" />
115 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
116 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Jeff Sharkey39da5532013-11-05 12:17:25 -0800117 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -0800118 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
119 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Sudheer Shankaf5cea032016-06-08 17:13:24 -0700120 <uses-permission android:name="android.permission.CREATE_USERS" />
Esteban Talavera9c173882014-09-12 15:48:55 +0100121 <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" />
Robert Quattlebaumf7346712017-08-14 18:29:42 -0700122 <uses-permission android:name="android.permission.ACCESS_LOWPAN_STATE"/>
123 <uses-permission android:name="android.permission.CHANGE_LOWPAN_STATE"/>
124 <uses-permission android:name="android.permission.READ_LOWPAN_CREDENTIAL"/>
Dianne Hackborn514074f2013-02-11 10:52:46 -0800125 <uses-permission android:name="android.permission.BLUETOOTH_STACK" />
Ian Pedowitz358e51f2016-03-15 17:08:27 +0000126 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
Svetoslav1376d602014-03-13 11:17:26 -0700127 <uses-permission android:name="android.permission.RETRIEVE_WINDOW_TOKEN" />
Allen Hair59d2b432014-04-23 10:23:07 -0700128 <uses-permission android:name="android.permission.FRAME_STATS" />
Svet Ganovbe19c3a2014-07-21 23:46:05 -0700129 <uses-permission android:name="android.permission.BIND_APPWIDGET" />
Adam Lesinskib5cf61b2014-08-18 16:10:28 -0700130 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Svetoslav7e9c2152014-10-21 14:52:00 -0700131 <uses-permission android:name="android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS"/>
Amith Yamasanicf768722015-04-23 20:36:41 -0700132 <uses-permission android:name="android.permission.CHANGE_APP_IDLE_STATE" />
Christopher Tateec3a9f32017-03-21 17:43:47 -0700133 <uses-permission android:name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" />
Jeff Sharkey4c099d02015-05-15 13:45:00 -0700134 <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
135 <uses-permission android:name="android.permission.MOUNT_FORMAT_FILESYSTEMS" />
Yorke Leeadb53b32015-06-03 14:15:42 -0700136 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Hall Liu9cf3e7a2019-02-28 15:29:19 -0800137 <!-- Shell only holds android.permission.NETWORK_SCAN in order to to enable CTS testing -->
138 <uses-permission android:name="android.permission.NETWORK_SCAN" />
Yorke Leeadb53b32015-06-03 14:15:42 -0700139 <uses-permission android:name="android.permission.REGISTER_CALL_PROVIDER" />
140 <uses-permission android:name="android.permission.REGISTER_CONNECTION_MANAGER" />
141 <uses-permission android:name="android.permission.REGISTER_SIM_SUBSCRIPTION" />
Nicholas Sauer1344cb92015-08-25 08:47:50 -0700142 <uses-permission android:name="android.permission.GET_APP_OPS_STATS" />
Dianne Hackbornbf1b57d2018-03-07 12:42:47 -0800143 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES" />
Felipe Lemed1e0f122015-12-18 16:12:41 -0800144 <uses-permission android:name="android.permission.VIBRATE" />
Chris Ye473c84f2020-01-28 22:54:23 -0800145 <uses-permission android:name="android.permission.ACCESS_VIBRATOR_STATE" />
Filip Gruszczynski1ca4e542015-12-22 09:22:34 -0800146 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />
Winson Chung58fb7492018-03-17 12:51:14 -0700147 <uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS" />
Michal Karpinski7b97a022018-12-14 15:17:29 +0000148 <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
Andrii Kulian02689a72017-07-06 14:28:59 -0700149 <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING" />
Felipe Leme6a05eee2016-02-19 14:43:51 -0800150 <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
Amith Yamasanibf125652016-05-13 11:13:16 -0700151 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
Felipe Leme5381aa42016-10-13 09:02:32 -0700152 <uses-permission android:name="android.permission.MANAGE_AUTO_FILL" />
Felipe Leme749b8892018-12-03 16:30:30 -0800153 <uses-permission android:name="android.permission.MANAGE_CONTENT_CAPTURE" />
Winson Chung3fb0f252019-01-08 17:41:55 -0800154 <uses-permission android:name="android.permission.MANAGE_CONTENT_SUGGESTIONS" />
Sunny Goyal54e91342018-11-14 11:59:02 -0800155 <uses-permission android:name="android.permission.MANAGE_APP_PREDICTIONS" />
Rebecca Silberstein2d935e12017-08-18 08:54:56 -0700156 <uses-permission android:name="android.permission.NETWORK_SETTINGS" />
157 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
mswest463f4c99d2018-02-01 10:13:10 -0800158 <uses-permission android:name="android.permission.SET_TIME" />
159 <uses-permission android:name="android.permission.SET_TIME_ZONE" />
Mathew Inwood5f1f29a2018-04-03 15:40:56 +0100160 <uses-permission android:name="android.permission.DISABLE_HIDDEN_API_CHECKS" />
Hai Zhangbc0df492018-11-19 17:27:47 -0800161 <uses-permission android:name="android.permission.MANAGE_ROLE_HOLDERS" />
Hai Zhangabf0d982019-02-26 16:50:53 -0800162 <uses-permission android:name="android.permission.OBSERVE_ROLE_HOLDERS" />
Julia Reynolds87621942019-01-29 16:19:36 -0500163 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
Evan Lairddeb46f32019-04-17 16:47:54 -0400164 <uses-permission android:name="android.permission.STATUS_BAR" />
Felipe Leme65a9c672016-04-18 16:15:00 -0700165 <!-- Permission needed to rename bugreport notifications (so they're not shown as Shell) -->
166 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
Julia Reynoldsdc6adc62019-04-08 10:35:40 -0400167 <uses-permission android:name="android.permission.REQUEST_NOTIFICATION_ASSISTANT_SERVICE" />
Wei Liu6e500012016-08-26 14:57:25 -0700168 <!-- Permission needed to hold a wakelock in dumpstate.cpp (drop_root_user()) -->
169 <uses-permission android:name="android.permission.WAKE_LOCK" />
MÃ¥rten Kongstad2e0d0f32016-06-02 09:35:31 +0200170 <!-- Permission needed to enable/disable overlays -->
171 <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
Karthik Ravi Shankarebc1b482017-03-26 02:56:44 -0700172 <!-- Permission needed to access privileged VR APIs -->
173 <uses-permission android:name="android.permission.RESTRICTED_VR_ACCESS" />
Svet Ganovd223db32017-12-22 09:43:48 -0800174 <uses-permission android:name="android.permission.MANAGE_BIND_INSTANT_SERVICE" />
Ben Gruver1ab3d6e2017-12-07 13:45:08 -0800175 <uses-permission android:name="android.permission.SET_HARMFUL_APP_WARNINGS" />
Svet Ganov8bd13952018-01-15 21:32:00 -0800176 <uses-permission android:name="android.permission.MANAGE_SENSORS" />
Svet Ganovc1006a32018-01-16 14:05:18 -0800177 <uses-permission android:name="android.permission.MANAGE_AUDIO_POLICY" />
Svet Ganov82f09bc2018-01-12 22:08:40 -0800178 <uses-permission android:name="android.permission.MANAGE_CAMERA" />
Jayant Chowdhary393ad6e2019-07-17 09:28:50 -0700179 <!-- Permissions needed to test system only camera devices -->
180 <uses-permission android:name="android.permission.CAMERA" />
181 <uses-permission android:name="android.permission.SYSTEM_CAMERA" />
Jayant Chowdhary4feeee82019-09-16 13:23:11 -0700182 <!-- Permissions needed for CTS camera test: RecordingTest.java when assuming shell id -->
183 <uses-permission android:name="android.permission.RECORD_AUDIO" />
Philip P. Moltmann6c644e62018-07-18 15:41:24 -0700184 <!-- Permission needed to enable/disable Bluetooth/Wifi -->
185 <uses-permission android:name="android.permission.MANAGE_BLUETOOTH_WHEN_WIRELESS_CONSENT_REQUIRED" />
186 <uses-permission android:name="android.permission.MANAGE_WIFI_WHEN_WIRELESS_CONSENT_REQUIRED" />
Po-Chien Hsuehe56f2f582019-02-21 09:58:02 +0800187 <!-- Permission needed to invoke DynamicSystem (AOT) -->
188 <uses-permission android:name="android.permission.INSTALL_DYNAMIC_SYSTEM" />
Kweku Adams4d345d72019-06-26 17:05:55 -0700189 <!-- Used to clean up heap dumps on boot. -->
190 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Po-Chien Hsuehe56f2f582019-02-21 09:58:02 +0800191
Svet Ganovc1006a32018-01-16 14:05:18 -0800192
Wale Ogunwale3d088812018-02-22 12:36:55 -0800193 <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
Suprabh Shukla349f9a12018-07-16 13:23:21 -0700194 <uses-permission android:name="android.permission.SUSPEND_APPS" />
Varun Shah05861922019-01-24 07:19:14 -0800195 <uses-permission android:name="android.permission.OBSERVE_APP_USAGE" />
Chad Brubakerbd175fe2018-10-01 10:38:54 -0700196 <uses-permission android:name="android.permission.READ_CLIPBOARD_IN_BACKGROUND" />
William Hestera96d3d32018-12-19 13:14:51 -0800197 <!-- Permission needed to wipe the device for Test Harness Mode -->
198 <uses-permission android:name="android.permission.ENABLE_TEST_HARNESS_MODE" />
Paul Murphy1460b762020-02-26 20:42:55 -0800199
200 <!-- Permissions required to test CompanionDeviceManager teses in CTS -->
Eugene Susla6eae4a62019-03-28 13:50:17 -0700201 <uses-permission android:name="android.permission.MANAGE_COMPANION_DEVICES" />
Paul Murphy1460b762020-02-26 20:42:55 -0800202 <uses-permission android:name="android.permission.COMPANION_APPROVE_WIFI_CONNECTIONS" />
Wale Ogunwale3d088812018-02-22 12:36:55 -0800203
Svet Ganov8455ba22019-01-02 13:05:56 -0800204 <uses-permission android:name="android.permission.MANAGE_APPOPS" />
205
Dimuthu Gamagea2b22262020-06-03 14:45:06 -0700206 <!-- Permission required for IncrementalLogCollectionTest -->
207 <uses-permission android:name="android.permission.LOADER_USAGE_STATS" />
208
shafikae42afc2020-01-10 16:16:29 +0000209 <!-- Permission required for storage tests - FuseDaemonHostTest -->
210 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
211
Benedict Wong600d93f2019-02-15 12:11:17 -0800212 <!-- Permission needed to run network tests in CTS -->
213 <uses-permission android:name="android.permission.MANAGE_TEST_NETWORKS" />
markchien5e430e52019-01-23 17:24:10 +0800214 <!-- Permission needed to test tcp keepalive offload. -->
215 <uses-permission android:name="android.permission.PACKET_KEEPALIVE_OFFLOAD" />
Benedict Wong600d93f2019-02-15 12:11:17 -0800216
Nikolas Havrikov74941c22020-07-07 14:23:33 +0200217 <!-- Permission needed for CTS test - UnsupportedErrorDialogTests -->
218 <uses-permission android:name="android.permission.RESET_APP_ERRORS" />
219
Zimuzo901c70d2019-03-19 21:45:49 +0000220 <!-- Permission needed to run keyguard manager tests in CTS -->
221 <uses-permission android:name="android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS" />
222
wilsonshih5db7b392019-02-20 23:08:45 +0800223 <!-- Permission needed to test wallpaper component -->
224 <uses-permission android:name="android.permission.SET_WALLPAPER" />
225 <uses-permission android:name="android.permission.SET_WALLPAPER_COMPONENT" />
226
Narayan Kamatha31ed1b2019-04-08 17:32:33 +0100227 <!-- Permission required to test ContentResolver caching. -->
228 <uses-permission android:name="android.permission.CACHE_CONTENT" />
229
Zimuzo0d70a6a2019-05-14 18:51:32 +0100230 <!-- Permission required to test ExplicitHealthCheckServiceImpl. -->
231 <uses-permission android:name="android.permission.BIND_EXPLICIT_HEALTH_CHECK_SERVICE" />
Kweku Adams4d345d72019-06-26 17:05:55 -0700232
Varun Shaha2482652019-05-17 17:28:50 -0700233 <!-- Permission required for CTS test - CrossProfileAppsHostSideTest -->
234 <uses-permission android:name="android.permission.INTERACT_ACROSS_PROFILES"/>
Zimuzo0d70a6a2019-05-14 18:51:32 +0100235
sqiandfdee632020-01-30 14:14:43 -0800236 <!-- permissions required for CTS test - PhoneStateListenerTest -->
237 <uses-permission android:name="android.permission.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH" />
238
Andrei Onea26559bc2020-01-15 19:09:52 +0000239 <!-- Permissions required for ganting and logging -->
240 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
241 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
242 <uses-permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"/>
243
Treehugger Robotfbd4a6f2020-05-11 23:50:19 +0000244 <!-- Permission required for CTS test - BatterySaverTest -->
245 <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE"/>
246
Tyler Gunnf701f7a2019-11-20 07:54:36 -0800247 <!-- Permission required for CTS test - UiModeManagerTest -->
Tyler Gunndaef6682019-09-30 15:12:24 -0700248 <uses-permission android:name="android.permission.ENTER_CAR_MODE_PRIORITIZED"/>
249
Hall Liub38ad5f2019-12-23 18:11:10 -0800250 <!-- Permission required for CTS test - SystemConfigTest -->
251 <uses-permission android:name="android.permission.READ_CARRIER_APP_INFO"/>
252
253 <!-- Permission required for CTS test - CarModeInCallServiceTest -->
Tyler Gunnf701f7a2019-11-20 07:54:36 -0800254 <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/>
255
Jordan Liu4c0e2a42019-12-04 12:09:56 -0800256 <!-- Permission requried for CTS test - CellBroadcastIntentsTest -->
257 <uses-permission android:name="android.permission.GRANT_RUNTIME_PERMISSIONS_TO_TELEPHONY_DEFAULTS"/>
258
markchiena2ce4592019-12-17 16:58:20 +0800259 <!-- Permission required for CTS test - TetheringManagerTest -->
260 <uses-permission android:name="android.permission.TETHER_PRIVILEGED"/>
261
Felka Chang71e3efe2019-11-20 14:11:13 +0800262 <!-- Permission required for CTS test - CtsOsTestCases -->
263 <uses-permission android:name="android.permission.MANAGE_CRATES"/>
264
Santos Cordonc4fd8e62019-12-18 13:01:05 +0000265 <!-- Allows setting brightness from the shell -->
266 <uses-permission android:name="android.permission.CONTROL_DISPLAY_BRIGHTNESS"/>
267
Varun Shah01f6f262020-01-07 16:33:22 -0800268 <!-- Permission required for CTS test - ShortcutManagerUsageTest -->
269 <uses-permission android:name="android.permission.ACCESS_SHORTCUTS"/>
270
Varun Shah0cbb6b62020-02-04 14:01:12 -0800271 <!-- Permissions required for CTS test - UsageStatsTest -->
272 <uses-permission android:name="android.permission.MANAGE_NOTIFICATIONS"/>
Yuliya Kamatkovafea62a52020-02-04 16:52:48 -0800273 <uses-permission android:name="android.permission.ACCESS_LOCUS_ID_USAGE_STATS"/>
274
Steven Ng38e58de2020-01-23 14:21:51 +0000275 <!-- Permissions required to test ambient display. -->
276 <uses-permission android:name="android.permission.READ_DREAM_STATE"/>
277 <uses-permission android:name="android.permission.WRITE_DREAM_STATE"/>
278
Robin Lee413dd362020-01-21 02:06:47 +0100279 <!-- Permission required for CTS test - CtsLightsManagerTest -->
280 <uses-permission android:name="android.permission.CONTROL_DEVICE_LIGHTS" />
281
Hai Zhang934fbdb2020-01-31 17:06:45 -0800282 <!-- Permission needed to test mainline permission module rollback -->
283 <uses-permission android:name="android.permission.UPGRADE_RUNTIME_PERMISSIONS" />
284
Roshan Pius75dbcff2020-03-02 13:04:17 -0800285 <!-- Permission needed to read wifi network credentials for CtsNetTestCases -->
286 <uses-permission android:name="android.permission.READ_WIFI_CREDENTIAL" />
287
Roshan Piusc551b332020-03-19 12:28:55 -0700288 <!-- Permission needed to use wifi usability API's for CtsNetTestCases -->
289 <uses-permission android:name="android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE" />
290
Tej Singh924910d2020-02-26 16:57:43 -0800291 <!-- Permission needed to test registering pull atom callbacks -->
292 <uses-permission android:name="android.permission.REGISTER_STATS_PULL_ATOM" />
293
Ruslan Tkhakokhov547978e2020-03-10 20:16:48 +0000294 <!-- Permission needed to modify settings overrideable by restore in CTS tests -->
295 <uses-permission android:name="android.permission.MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE" />
296
Eric Laurente23ed862020-03-18 11:58:58 -0700297 <!-- Permission required for testing system audio effect APIs. -->
298 <uses-permission android:name="android.permission.MODIFY_DEFAULT_AUDIO_EFFECTS"/>
299
shubangd7a32042020-03-20 06:32:58 -0700300 <!-- Permissions required for CTS test - TunerTest -->
301 <uses-permission android:name="android.permission.ACCESS_TV_DESCRAMBLER" />
302 <uses-permission android:name="android.permission.ACCESS_TV_TUNER" />
303 <uses-permission android:name="android.permission.TUNER_RESOURCE_ACCESS" />
304
Eugene Susla64c88c02020-05-07 15:31:23 -0700305 <!-- Permissions required for CTS test - AutoRevokeTest -->
306 <uses-permission android:name="android.permission.WHITELIST_AUTO_REVOKE_PERMISSIONS" />
307
Hai Zhanga4b344c2020-05-06 18:29:47 -0700308 <!-- Permissions needed to test shared libraries -->
309 <uses-permission android:name="android.permission.ACCESS_SHARED_LIBRARIES" />
310
Amy Zhang5f8498b2020-05-02 01:17:26 -0700311 <!-- Permissions required for CTS test - TVInputManagerTest -->
312 <uses-permission android:name="android.permission.TV_INPUT_HARDWARE" />
313
Wei Wang96f76362020-05-21 20:50:47 -0700314 <!-- Permission needed for CTS test - PrivilegedLocationPermissionTest -->
315 <uses-permission android:name="android.permission.LOCATION_HARDWARE" />
316
Sung Min Leea90b1fc2020-06-02 21:24:59 -0700317 <!-- Permissions required for GTS test - GtsDialerAudioTestCases -->
318 <uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" />
319
Joshua Duongf2e03b32020-04-27 13:34:27 -0700320 <!-- Permissions required for CTS test - AdbManagerTest -->
321 <uses-permission android:name="android.permission.MANAGE_DEBUGGING" />
322
Jeff Sharkeyf9fc6d62015-11-08 16:46:05 -0800323 <application android:label="@string/app_label"
Abhijeet Kaur8549ccf2019-05-22 18:47:49 +0100324 android:theme="@android:style/Theme.DeviceDefault.DayNight"
325 android:defaultToDeviceProtectedStorage="true"
326 android:directBootAware="true">
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800327 <provider
KOUSHIK PANUGANTIe92135a62018-04-23 17:31:10 -0700328 android:name="androidx.core.content.FileProvider"
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800329 android:authorities="com.android.shell"
330 android:grantUriPermissions="true"
331 android:exported="false">
332 <meta-data
333 android:name="android.support.FILE_PROVIDER_PATHS"
334 android:resource="@xml/file_provider_paths" />
335 </provider>
336
Ryo Hashimotodd980342015-03-17 19:56:42 +0900337 <provider
338 android:name=".BugreportStorageProvider"
339 android:authorities="com.android.shell.documents"
340 android:grantUriPermissions="true"
341 android:exported="true"
342 android:permission="android.permission.MANAGE_DOCUMENTS"
343 android:enabled="false">
344 <intent-filter>
345 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
346 </intent-filter>
347 </provider>
348
Kweku Adams4d345d72019-06-26 17:05:55 -0700349 <provider android:name=".HeapDumpProvider"
350 android:authorities="com.android.shell.heapdump"
351 android:grantUriPermissions="true"
352 android:exported="true" />
353
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800354 <activity
355 android:name=".BugreportWarningActivity"
Abhijeet Kaur43bbe8a2019-09-26 14:19:32 +0100356 android:theme="@*android:style/Theme.DeviceDefault.Dialog.Alert.DayNight"
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800357 android:finishOnCloseSystemDialogs="true"
358 android:excludeFromRecents="true"
359 android:exported="false" />
360
Kweku Adams4d345d72019-06-26 17:05:55 -0700361 <activity android:name=".HeapDumpActivity"
362 android:theme="@*android:style/Theme.Translucent.NoTitleBar"
363 android:label="@*android:string/dump_heap_title"
364 android:finishOnCloseSystemDialogs="true"
365 android:noHistory="true"
366 android:excludeFromRecents="true"
367 android:exported="false" />
368
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800369 <receiver
Abhijeet Kaur767c8bb2019-02-11 11:59:43 +0000370 android:name=".BugreportRequestedReceiver"
Ashwini Oruganti02f8c0f2020-05-29 12:43:49 -0700371 android:exported="true"
Abhijeet Kaur767c8bb2019-02-11 11:59:43 +0000372 android:permission="android.permission.TRIGGER_SHELL_BUGREPORT">
373 <intent-filter>
374 <action android:name="com.android.internal.intent.action.BUGREPORT_REQUESTED" />
375 </intent-filter>
376 </receiver>
377
Kweku Adams4d345d72019-06-26 17:05:55 -0700378 <receiver
379 android:name=".HeapDumpReceiver"
Ashwini Oruganti02f8c0f2020-05-29 12:43:49 -0700380 android:exported="true"
Kweku Adams4d345d72019-06-26 17:05:55 -0700381 android:permission="android.permission.DUMP">
382 <intent-filter>
383 <action android:name="android.intent.action.BOOT_COMPLETED" />
384 <action android:name="com.android.internal.intent.action.HEAP_DUMP_FINISHED" />
385 <action android:name="com.android.shell.action.DELETE_HEAP_DUMP" />
386 </intent-filter>
387 </receiver>
388
Felipe Lemeb9238b32015-11-24 17:31:47 -0800389 <service
390 android:name=".BugreportProgressService"
391 android:exported="false"/>
Dianne Hackborn514074f2013-02-11 10:52:46 -0800392 </application>
393</manifest>