1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2015 The Android Open Source Project 5 * 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 --> 19 <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. --> 26 <uses-permission android:name="android.permission.SEND_SMS" /> 27 <uses-permission android:name="android.permission.CALL_PHONE" /> 28 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 29 <uses-permission android:name="android.permission.READ_CONTACTS" /> 30 <uses-permission android:name="android.permission.WRITE_CONTACTS" /> 31 <uses-permission android:name="android.permission.READ_CALENDAR" /> 32 <uses-permission android:name="android.permission.WRITE_CALENDAR" /> 33 <uses-permission android:name="android.permission.READ_USER_DICTIONARY" /> 34 <uses-permission android:name="android.permission.WRITE_USER_DICTIONARY" /> 35 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 36 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 37 <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> 38 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 39 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 40 <uses-permission android:name="android.permission.BLUETOOTH" /> 41 <uses-permission android:name="android.permission.LOCAL_MAC_ADDRESS" /> 42 <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> 43 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 44 <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" /> 45 <uses-permission android:name="android.permission.MANAGE_USB" /> 46 <!-- System tool permissions granted to the shell. --> 47 <uses-permission android:name="android.permission.REAL_GET_TASKS" /> 48 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /> 49 <uses-permission android:name="android.permission.REORDER_TASKS" /> 50 <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> 51 <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" /> 52 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 53 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> 54 <uses-permission android:name="android.permission.BROADCAST_STICKY" /> 55 <!-- Development tool permissions granted to the shell. --> 56 <uses-permission android:name="android.permission.SET_DEBUG_APP" /> 57 <uses-permission android:name="android.permission.SET_PROCESS_LIMIT" /> 58 <uses-permission android:name="android.permission.SET_ALWAYS_FINISH" /> 59 <uses-permission android:name="android.permission.DUMP" /> 60 <uses-permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES" /> 61 <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /> 62 <!-- Internal permissions granted to the shell. --> 63 <uses-permission android:name="android.permission.FORCE_BACK" /> 64 <uses-permission android:name="android.permission.BATTERY_STATS" /> 65 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" /> 66 <uses-permission android:name="android.permission.INJECT_EVENTS" /> 67 <uses-permission android:name="android.permission.RETRIEVE_WINDOW_CONTENT" /> 68 <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" /> 69 <uses-permission android:name="android.permission.READ_INPUT_STATE" /> 70 <uses-permission android:name="android.permission.SET_ORIENTATION" /> 71 <uses-permission android:name="android.permission.INSTALL_PACKAGES" /> 72 <uses-permission android:name="android.permission.MOVE_PACKAGE" /> 73 <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" /> 74 <uses-permission android:name="android.permission.CLEAR_APP_CACHE" /> 75 <uses-permission android:name="android.permission.DELETE_CACHE_FILES" /> 76 <uses-permission android:name="android.permission.DELETE_PACKAGES" /> 77 <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" /> 78 <uses-permission android:name="android.permission.READ_FRAME_BUFFER" /> 79 <uses-permission android:name="android.permission.DEVICE_POWER" /> 80 <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" /> 81 <uses-permission android:name="android.permission.BACKUP" /> 82 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" /> 83 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" /> 84 <uses-permission android:name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" /> 85 <uses-permission android:name="android.permission.GRANT_RUNTIME_PERMISSIONS" /> 86 <uses-permission android:name="android.permission.REVOKE_RUNTIME_PERMISSIONS" /> 87 <uses-permission android:name="android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS" /> 88 <uses-permission android:name="android.permission.SET_KEYBOARD_LAYOUT" /> 89 <uses-permission android:name="android.permission.GET_DETAILED_TASKS" /> 90 <uses-permission android:name="android.permission.SET_SCREEN_COMPATIBILITY" /> 91 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 92 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 93 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" /> 94 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 95 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> 96 <uses-permission android:name="android.permission.CREATE_USERS" /> 97 <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" /> 98 <uses-permission android:name="android.permission.BLUETOOTH_STACK" /> 99 <uses-permission android:name="android.permission.GET_ACCOUNTS" /> 100 <uses-permission android:name="android.permission.RETRIEVE_WINDOW_TOKEN" /> 101 <uses-permission android:name="android.permission.FRAME_STATS" /> 102 <uses-permission android:name="android.permission.BIND_APPWIDGET" /> 103 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /> 104 <uses-permission android:name="android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS"/> 105 <uses-permission android:name="android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS" /> 106 <uses-permission android:name="android.permission.CHANGE_APP_IDLE_STATE" /> 107 <uses-permission android:name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" /> 108 <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> 109 <uses-permission android:name="android.permission.MOUNT_FORMAT_FILESYSTEMS" /> 110 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> 111 <uses-permission android:name="android.permission.REGISTER_CALL_PROVIDER" /> 112 <uses-permission android:name="android.permission.REGISTER_CONNECTION_MANAGER" /> 113 <uses-permission android:name="android.permission.REGISTER_SIM_SUBSCRIPTION" /> 114 <uses-permission android:name="android.permission.GET_APP_OPS_STATS" /> 115 <uses-permission android:name="android.permission.VIBRATE" /> 116 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" /> 117 <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" /> 118 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" /> 119 <uses-permission android:name="android.permission.MANAGE_AUTO_FILL" /> 120 <!-- Permission needed to rename bugreport notifications (so they're not shown as Shell) --> 121 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" /> 122 <!-- Permission needed to hold a wakelock in dumpstate.cpp (drop_root_user()) --> 123 <uses-permission android:name="android.permission.WAKE_LOCK" /> 124 <!-- Permission needed to enable/disable overlays --> 125 <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" /> 126 <!-- Permission needed to access privileged VR APIs --> 127 <uses-permission android:name="android.permission.RESTRICTED_VR_ACCESS" /> 128 129 <application android:label="@string/app_label" 130 android:defaultToDeviceProtectedStorage="true" 131 android:directBootAware="true"> 132 <provider 133 android:name="android.support.v4.content.FileProvider" 134 android:authorities="com.android.shell" 135 android:grantUriPermissions="true" 136 android:exported="false"> 137 <meta-data 138 android:name="android.support.FILE_PROVIDER_PATHS" 139 android:resource="@xml/file_provider_paths" /> 140 </provider> 141 142 <provider 143 android:name=".BugreportStorageProvider" 144 android:authorities="com.android.shell.documents" 145 android:grantUriPermissions="true" 146 android:exported="true" 147 android:permission="android.permission.MANAGE_DOCUMENTS" 148 android:enabled="false"> 149 <intent-filter> 150 <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> 151 </intent-filter> 152 </provider> 153 154 <activity 155 android:name=".BugreportWarningActivity" 156 android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" 157 android:finishOnCloseSystemDialogs="true" 158 android:excludeFromRecents="true" 159 android:exported="false" /> 160 161 <receiver 162 android:name=".BugreportReceiver" 163 android:permission="android.permission.DUMP"> 164 <intent-filter> 165 <action android:name="com.android.internal.intent.action.BUGREPORT_STARTED" /> 166 <action android:name="com.android.internal.intent.action.BUGREPORT_FINISHED" /> 167 </intent-filter> 168 </receiver> 169 170 <receiver 171 android:name=".RemoteBugreportReceiver" 172 android:permission="android.permission.DUMP"> 173 <intent-filter> 174 <action android:name="com.android.internal.intent.action.REMOTE_BUGREPORT_FINISHED" /> 175 </intent-filter> 176 </receiver> 177 178 <service 179 android:name=".BugreportProgressService" 180 android:exported="false"/> 181 </application> 182 </manifest> 183