blob: c03268381367a101ab570d58b7d1061f1a8925bf [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
25 <!-- Standard permissions granted to the shell. -->
Dianne Hackborn514074f2013-02-11 10:52:46 -080026 <uses-permission android:name="android.permission.SEND_SMS" />
Eugene Susla93519852018-06-13 16:44:31 -070027 <uses-permission android:name="android.permission.READ_SMS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080028 <uses-permission android:name="android.permission.CALL_PHONE" />
Yorke Leeadb53b32015-06-03 14:15:42 -070029 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
chen xu6a942d482018-12-12 19:59:30 -080030 <uses-permission android:name="android.permission.READ_PRECISE_PHONE_STATE" />
Michael Groover1248e432018-10-08 09:39:24 -070031 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080032 <uses-permission android:name="android.permission.READ_CONTACTS" />
33 <uses-permission android:name="android.permission.WRITE_CONTACTS" />
34 <uses-permission android:name="android.permission.READ_CALENDAR" />
35 <uses-permission android:name="android.permission.WRITE_CALENDAR" />
36 <uses-permission android:name="android.permission.READ_USER_DICTIONARY" />
37 <uses-permission android:name="android.permission.WRITE_USER_DICTIONARY" />
38 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
39 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
40 <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
41 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
42 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
43 <uses-permission android:name="android.permission.BLUETOOTH" />
Alex Klyubin1991f572017-03-03 14:08:36 -080044 <uses-permission android:name="android.permission.LOCAL_MAC_ADDRESS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080045 <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
Tim Kilbournbba73a02015-09-01 14:21:09 -070046 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
Felipe Leme6a05eee2016-02-19 14:43:51 -080047 <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
Philip P. Moltmann30a2d632016-11-29 14:25:59 -080048 <uses-permission android:name="android.permission.MANAGE_USB" />
Jeff Sharkey4a539442018-01-05 17:09:52 -070049 <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
Dianne Hackborndd027b32018-01-19 17:44:46 -080050 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Dianne Hackborn514074f2013-02-11 10:52:46 -080051 <!-- System tool permissions granted to the shell. -->
Dianne Hackborn2d7576b2014-10-03 16:26:04 -070052 <uses-permission android:name="android.permission.REAL_GET_TASKS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080053 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
54 <uses-permission android:name="android.permission.REORDER_TASKS" />
Jeff Sharkey4ba69232018-12-08 14:43:03 -070055 <uses-permission android:name="android.permission.REMOVE_TASKS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080056 <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
57 <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" />
58 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
59 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
Stanislav Zholninbec88352019-01-16 14:30:35 +000060 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
61 <uses-permission android:name="android.permission.WRITE_DEVICE_CONFIG" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080062 <uses-permission android:name="android.permission.BROADCAST_STICKY" />
Phil Weaver1df928f2018-10-12 15:48:34 -070063 <uses-permission android:name="android.permission.MANAGE_ACCESSIBILITY" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080064 <!-- Development tool permissions granted to the shell. -->
65 <uses-permission android:name="android.permission.SET_DEBUG_APP" />
66 <uses-permission android:name="android.permission.SET_PROCESS_LIMIT" />
67 <uses-permission android:name="android.permission.SET_ALWAYS_FINISH" />
68 <uses-permission android:name="android.permission.DUMP" />
69 <uses-permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES" />
70 <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
71 <!-- Internal permissions granted to the shell. -->
72 <uses-permission android:name="android.permission.FORCE_BACK" />
73 <uses-permission android:name="android.permission.BATTERY_STATS" />
Sudheer Shanka93bfd052017-09-01 16:41:10 -070074 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080075 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
76 <uses-permission android:name="android.permission.INJECT_EVENTS" />
77 <uses-permission android:name="android.permission.RETRIEVE_WINDOW_CONTENT" />
78 <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" />
79 <uses-permission android:name="android.permission.READ_INPUT_STATE" />
80 <uses-permission android:name="android.permission.SET_ORIENTATION" />
81 <uses-permission android:name="android.permission.INSTALL_PACKAGES" />
Jeff Sharkeye515c642015-08-28 11:20:39 -070082 <uses-permission android:name="android.permission.MOVE_PACKAGE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080083 <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" />
Jeff Sharkeya4daf892017-04-09 21:37:56 -060084 <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080085 <uses-permission android:name="android.permission.DELETE_CACHE_FILES" />
86 <uses-permission android:name="android.permission.DELETE_PACKAGES" />
Richard Uhlerc739c8c2018-12-12 11:03:34 +000087 <uses-permission android:name="android.permission.MANAGE_ROLLBACKS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080088 <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />
89 <uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
90 <uses-permission android:name="android.permission.DEVICE_POWER" />
Salvador Martinez812ea752018-10-19 13:03:20 -070091 <uses-permission android:name="android.permission.POWER_SAVER" />
Dianne Hackborn514074f2013-02-11 10:52:46 -080092 <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" />
93 <uses-permission android:name="android.permission.BACKUP" />
94 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
95 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
96 <uses-permission android:name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" />
Svet Ganov7121e182015-07-13 22:38:12 -070097 <uses-permission android:name="android.permission.GRANT_RUNTIME_PERMISSIONS" />
98 <uses-permission android:name="android.permission.REVOKE_RUNTIME_PERMISSIONS" />
99 <uses-permission android:name="android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS" />
Dianne Hackborn514074f2013-02-11 10:52:46 -0800100 <uses-permission android:name="android.permission.SET_KEYBOARD_LAYOUT" />
101 <uses-permission android:name="android.permission.GET_DETAILED_TASKS" />
102 <uses-permission android:name="android.permission.SET_SCREEN_COMPATIBILITY" />
103 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
104 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Jeff Sharkey39da5532013-11-05 12:17:25 -0800105 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Dianne Hackborn514074f2013-02-11 10:52:46 -0800106 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
107 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Sudheer Shankaf5cea032016-06-08 17:13:24 -0700108 <uses-permission android:name="android.permission.CREATE_USERS" />
Esteban Talavera9c173882014-09-12 15:48:55 +0100109 <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" />
Robert Quattlebaumf7346712017-08-14 18:29:42 -0700110 <uses-permission android:name="android.permission.ACCESS_LOWPAN_STATE"/>
111 <uses-permission android:name="android.permission.CHANGE_LOWPAN_STATE"/>
112 <uses-permission android:name="android.permission.READ_LOWPAN_CREDENTIAL"/>
Dianne Hackborn514074f2013-02-11 10:52:46 -0800113 <uses-permission android:name="android.permission.BLUETOOTH_STACK" />
Ian Pedowitz358e51f2016-03-15 17:08:27 +0000114 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
Svetoslav1376d602014-03-13 11:17:26 -0700115 <uses-permission android:name="android.permission.RETRIEVE_WINDOW_TOKEN" />
Allen Hair59d2b432014-04-23 10:23:07 -0700116 <uses-permission android:name="android.permission.FRAME_STATS" />
Svet Ganovbe19c3a2014-07-21 23:46:05 -0700117 <uses-permission android:name="android.permission.BIND_APPWIDGET" />
Adam Lesinskib5cf61b2014-08-18 16:10:28 -0700118 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Svetoslav7e9c2152014-10-21 14:52:00 -0700119 <uses-permission android:name="android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS"/>
Svetoslav805b63e2015-04-09 17:28:54 -0700120 <uses-permission android:name="android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS" />
Amith Yamasanicf768722015-04-23 20:36:41 -0700121 <uses-permission android:name="android.permission.CHANGE_APP_IDLE_STATE" />
Christopher Tateec3a9f32017-03-21 17:43:47 -0700122 <uses-permission android:name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" />
Jeff Sharkey4c099d02015-05-15 13:45:00 -0700123 <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
124 <uses-permission android:name="android.permission.MOUNT_FORMAT_FILESYSTEMS" />
Yorke Leeadb53b32015-06-03 14:15:42 -0700125 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
126 <uses-permission android:name="android.permission.REGISTER_CALL_PROVIDER" />
127 <uses-permission android:name="android.permission.REGISTER_CONNECTION_MANAGER" />
128 <uses-permission android:name="android.permission.REGISTER_SIM_SUBSCRIPTION" />
Nicholas Sauer1344cb92015-08-25 08:47:50 -0700129 <uses-permission android:name="android.permission.GET_APP_OPS_STATS" />
Dianne Hackbornbf1b57d2018-03-07 12:42:47 -0800130 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES" />
Felipe Lemed1e0f122015-12-18 16:12:41 -0800131 <uses-permission android:name="android.permission.VIBRATE" />
Filip Gruszczynski1ca4e542015-12-22 09:22:34 -0800132 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />
Winson Chung58fb7492018-03-17 12:51:14 -0700133 <uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS" />
Michal Karpinski7b97a022018-12-14 15:17:29 +0000134 <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
Andrii Kulian02689a72017-07-06 14:28:59 -0700135 <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING" />
Felipe Leme6a05eee2016-02-19 14:43:51 -0800136 <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
Amith Yamasanibf125652016-05-13 11:13:16 -0700137 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
Felipe Leme5381aa42016-10-13 09:02:32 -0700138 <uses-permission android:name="android.permission.MANAGE_AUTO_FILL" />
Felipe Leme749b8892018-12-03 16:30:30 -0800139 <uses-permission android:name="android.permission.MANAGE_CONTENT_CAPTURE" />
Winson Chung3fb0f252019-01-08 17:41:55 -0800140 <uses-permission android:name="android.permission.MANAGE_CONTENT_SUGGESTIONS" />
Sunny Goyal54e91342018-11-14 11:59:02 -0800141 <uses-permission android:name="android.permission.MANAGE_APP_PREDICTIONS" />
Rebecca Silberstein2d935e12017-08-18 08:54:56 -0700142 <uses-permission android:name="android.permission.NETWORK_SETTINGS" />
143 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
mswest463f4c99d2018-02-01 10:13:10 -0800144 <uses-permission android:name="android.permission.SET_TIME" />
145 <uses-permission android:name="android.permission.SET_TIME_ZONE" />
Mathew Inwood5f1f29a2018-04-03 15:40:56 +0100146 <uses-permission android:name="android.permission.DISABLE_HIDDEN_API_CHECKS" />
Hai Zhangbc0df492018-11-19 17:27:47 -0800147 <uses-permission android:name="android.permission.MANAGE_ROLE_HOLDERS" />
Julia Reynolds87621942019-01-29 16:19:36 -0500148 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
Felipe Leme65a9c672016-04-18 16:15:00 -0700149 <!-- Permission needed to rename bugreport notifications (so they're not shown as Shell) -->
150 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
Wei Liu6e500012016-08-26 14:57:25 -0700151 <!-- Permission needed to hold a wakelock in dumpstate.cpp (drop_root_user()) -->
152 <uses-permission android:name="android.permission.WAKE_LOCK" />
MÃ¥rten Kongstad2e0d0f32016-06-02 09:35:31 +0200153 <!-- Permission needed to enable/disable overlays -->
154 <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
Karthik Ravi Shankarebc1b482017-03-26 02:56:44 -0700155 <!-- Permission needed to access privileged VR APIs -->
156 <uses-permission android:name="android.permission.RESTRICTED_VR_ACCESS" />
Svet Ganovd223db32017-12-22 09:43:48 -0800157 <uses-permission android:name="android.permission.MANAGE_BIND_INSTANT_SERVICE" />
Ben Gruver1ab3d6e2017-12-07 13:45:08 -0800158 <uses-permission android:name="android.permission.SET_HARMFUL_APP_WARNINGS" />
Svet Ganov8bd13952018-01-15 21:32:00 -0800159 <uses-permission android:name="android.permission.MANAGE_SENSORS" />
Svet Ganovc1006a32018-01-16 14:05:18 -0800160 <uses-permission android:name="android.permission.MANAGE_AUDIO_POLICY" />
Svet Ganov82f09bc2018-01-12 22:08:40 -0800161 <uses-permission android:name="android.permission.MANAGE_CAMERA" />
Philip P. Moltmann6c644e62018-07-18 15:41:24 -0700162 <!-- Permission needed to enable/disable Bluetooth/Wifi -->
163 <uses-permission android:name="android.permission.MANAGE_BLUETOOTH_WHEN_WIRELESS_CONSENT_REQUIRED" />
164 <uses-permission android:name="android.permission.MANAGE_WIFI_WHEN_WIRELESS_CONSENT_REQUIRED" />
Svetoslav Ganov2d20fb42018-02-08 15:52:10 -0800165 <uses-permission android:name="android.permission.WATCH_APPOPS" />
Svet Ganovc1006a32018-01-16 14:05:18 -0800166
Wale Ogunwale3d088812018-02-22 12:36:55 -0800167 <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
Suprabh Shukla349f9a12018-07-16 13:23:21 -0700168 <uses-permission android:name="android.permission.SUSPEND_APPS" />
Chad Brubakerbd175fe2018-10-01 10:38:54 -0700169 <uses-permission android:name="android.permission.READ_CLIPBOARD_IN_BACKGROUND" />
William Hestera96d3d32018-12-19 13:14:51 -0800170 <!-- Permission needed to wipe the device for Test Harness Mode -->
171 <uses-permission android:name="android.permission.ENABLE_TEST_HARNESS_MODE" />
Wale Ogunwale3d088812018-02-22 12:36:55 -0800172
Svet Ganov8455ba22019-01-02 13:05:56 -0800173 <uses-permission android:name="android.permission.MANAGE_APPOPS" />
174
Jeff Sharkeyf9fc6d62015-11-08 16:46:05 -0800175 <application android:label="@string/app_label"
Jeff Sharkey8a372a02016-03-16 16:25:45 -0600176 android:defaultToDeviceProtectedStorage="true"
177 android:directBootAware="true">
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800178 <provider
KOUSHIK PANUGANTIe92135a62018-04-23 17:31:10 -0700179 android:name="androidx.core.content.FileProvider"
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800180 android:authorities="com.android.shell"
181 android:grantUriPermissions="true"
182 android:exported="false">
183 <meta-data
184 android:name="android.support.FILE_PROVIDER_PATHS"
185 android:resource="@xml/file_provider_paths" />
186 </provider>
187
Ryo Hashimotodd980342015-03-17 19:56:42 +0900188 <provider
189 android:name=".BugreportStorageProvider"
190 android:authorities="com.android.shell.documents"
191 android:grantUriPermissions="true"
192 android:exported="true"
193 android:permission="android.permission.MANAGE_DOCUMENTS"
194 android:enabled="false">
195 <intent-filter>
196 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
197 </intent-filter>
198 </provider>
199
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800200 <activity
201 android:name=".BugreportWarningActivity"
Andrew Sapperstein59b56792016-07-18 17:19:15 -0700202 android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800203 android:finishOnCloseSystemDialogs="true"
204 android:excludeFromRecents="true"
205 android:exported="false" />
206
207 <receiver
208 android:name=".BugreportReceiver"
209 android:permission="android.permission.DUMP">
210 <intent-filter>
Felipe Leme92aaaa22017-02-15 16:08:39 -0800211 <action android:name="com.android.internal.intent.action.BUGREPORT_STARTED" />
212 <action android:name="com.android.internal.intent.action.BUGREPORT_FINISHED" />
Jeff Sharkey02ffba92013-03-08 16:13:15 -0800213 </intent-filter>
214 </receiver>
Felipe Lemeb9238b32015-11-24 17:31:47 -0800215
Michal Karpinski226940e2015-12-15 18:14:26 +0000216 <receiver
217 android:name=".RemoteBugreportReceiver"
218 android:permission="android.permission.DUMP">
219 <intent-filter>
Felipe Leme92aaaa22017-02-15 16:08:39 -0800220 <action android:name="com.android.internal.intent.action.REMOTE_BUGREPORT_FINISHED" />
Michal Karpinski226940e2015-12-15 18:14:26 +0000221 </intent-filter>
222 </receiver>
223
Felipe Lemeb9238b32015-11-24 17:31:47 -0800224 <service
225 android:name=".BugreportProgressService"
226 android:exported="false"/>
Dianne Hackborn514074f2013-02-11 10:52:46 -0800227 </application>
228</manifest>