The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2008 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <!-- This file is used to define the mappings between lower-level system |
| 18 | user and group IDs and the higher-level permission names managed |
| 19 | by the platform. |
| 20 | |
| 21 | Be VERY careful when editing this file! Mistakes made here can open |
| 22 | big security holes. |
| 23 | --> |
| 24 | <permissions> |
| 25 | |
| 26 | <!-- ================================================================== --> |
| 27 | <!-- ================================================================== --> |
| 28 | <!-- ================================================================== --> |
| 29 | |
| 30 | <!-- The following tags are associating low-level group IDs with |
| 31 | permission names. By specifying such a mapping, you are saying |
| 32 | that any application process granted the given permission will |
| 33 | also be running with the given group ID attached to its process, |
| 34 | so it can perform any filesystem (read, write, execute) operations |
| 35 | allowed for that group. --> |
| 36 | |
| 37 | <permission name="android.permission.BLUETOOTH_ADMIN" > |
| 38 | <group gid="net_bt_admin" /> |
| 39 | </permission> |
| 40 | |
| 41 | <permission name="android.permission.BLUETOOTH" > |
| 42 | <group gid="net_bt" /> |
| 43 | </permission> |
| 44 | |
fredc | 0f42037 | 2012-04-12 00:02:00 -0700 | [diff] [blame] | 45 | <permission name="android.permission.NET_TUNNELING" > |
| 46 | <group gid="vpn" /> |
| 47 | </permission> |
| 48 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 49 | <permission name="android.permission.INTERNET" > |
| 50 | <group gid="inet" /> |
| 51 | </permission> |
| 52 | |
| 53 | <permission name="android.permission.CAMERA" > |
| 54 | <group gid="camera" /> |
| 55 | </permission> |
| 56 | |
| 57 | <permission name="android.permission.READ_LOGS" > |
| 58 | <group gid="log" /> |
| 59 | </permission> |
| 60 | |
Dianne Hackborn | 7924512 | 2012-03-12 10:51:26 -0700 | [diff] [blame] | 61 | <permission name="android.permission.READ_EXTERNAL_STORAGE" > |
| 62 | <group gid="sdcard_r" /> |
| 63 | </permission> |
| 64 | |
San Mehat | 5a3a77d | 2009-06-01 09:25:28 -0700 | [diff] [blame] | 65 | <permission name="android.permission.WRITE_EXTERNAL_STORAGE" > |
San Mehat | 29b57e6 | 2009-04-23 09:18:32 -0700 | [diff] [blame] | 66 | <group gid="sdcard_rw" /> |
| 67 | </permission> |
| 68 | |
Mike Lockwood | 1e23db4 | 2011-04-22 07:05:21 -0700 | [diff] [blame] | 69 | <permission name="android.permission.WRITE_MEDIA_STORAGE" > |
| 70 | <group gid="media_rw" /> |
| 71 | </permission> |
| 72 | |
Mike Lockwood | 10bc111 | 2011-01-10 08:24:08 -0500 | [diff] [blame] | 73 | <permission name="android.permission.ACCESS_MTP" > |
| 74 | <group gid="mtp" /> |
| 75 | </permission> |
| 76 | |
Ramesh Sudini | 0e7b5a0 | 2011-03-28 09:18:31 -0500 | [diff] [blame] | 77 | <permission name="android.permission.NET_ADMIN" > |
| 78 | <group gid="net_admin" /> |
| 79 | </permission> |
| 80 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 81 | <!-- The group that /cache belongs to, linked to the permission |
| 82 | set on the applications that can access /cache --> |
| 83 | <permission name="android.permission.ACCESS_CACHE_FILESYSTEM" > |
| 84 | <group gid="cache" /> |
| 85 | </permission> |
| 86 | |
| 87 | <!-- RW permissions to any system resources owned by group 'diag'. |
| 88 | This is for carrier and manufacture diagnostics tools that must be |
| 89 | installable from the framework. Be careful. --> |
| 90 | <permission name="android.permission.DIAGNOSTIC" > |
| 91 | <group gid="input" /> |
| 92 | <group gid="diag" /> |
| 93 | </permission> |
| 94 | |
Jeff Sharkey | 9e18fd1 | 2011-05-02 17:51:29 -0700 | [diff] [blame] | 95 | <!-- Group that can read detailed network usage statistics --> |
| 96 | <permission name="android.permission.READ_NETWORK_USAGE_HISTORY"> |
| 97 | <group gid="net_bw_stats" /> |
| 98 | </permission> |
| 99 | |
| 100 | <!-- Group that can modify how network statistics are accounted --> |
| 101 | <permission name="android.permission.MODIFY_NETWORK_ACCOUNTING"> |
| 102 | <group gid="net_bw_acct" /> |
| 103 | </permission> |
| 104 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 105 | <!-- ================================================================== --> |
| 106 | <!-- ================================================================== --> |
| 107 | <!-- ================================================================== --> |
| 108 | |
| 109 | <!-- The following tags are assigning high-level permissions to specific |
| 110 | user IDs. These are used to allow specific core system users to |
| 111 | perform the given operations with the higher-level framework. For |
| 112 | example, we give a wide variety of permissions to the shell user |
| 113 | since that is the user the adb shell runs under and developers and |
| 114 | others should have a fairly open environment in which to |
| 115 | interact with the system. --> |
| 116 | |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 117 | <!-- Standard permissions granted to the shell. --> |
San Mehat | 5a3a77d | 2009-06-01 09:25:28 -0700 | [diff] [blame] | 118 | <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" /> |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 119 | <assign-permission name="android.permission.SEND_SMS" uid="shell" /> |
| 120 | <assign-permission name="android.permission.CALL_PHONE" uid="shell" /> |
| 121 | <assign-permission name="android.permission.READ_CONTACTS" uid="shell" /> |
| 122 | <assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" /> |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 123 | <assign-permission name="android.permission.READ_CALENDAR" uid="shell" /> |
| 124 | <assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" /> |
| 125 | <assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" /> |
| 126 | <assign-permission name="android.permission.WRITE_USER_DICTIONARY" uid="shell" /> |
| 127 | <assign-permission name="android.permission.ACCESS_FINE_LOCATION" uid="shell" /> |
| 128 | <assign-permission name="android.permission.ACCESS_COARSE_LOCATION" uid="shell" /> |
| 129 | <assign-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" uid="shell" /> |
| 130 | <assign-permission name="android.permission.ACCESS_NETWORK_STATE" uid="shell" /> |
| 131 | <assign-permission name="android.permission.ACCESS_WIFI_STATE" uid="shell" /> |
| 132 | <assign-permission name="android.permission.BLUETOOTH" uid="shell" /> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 133 | <!-- System tool permissions granted to the shell. --> |
| 134 | <assign-permission name="android.permission.GET_TASKS" uid="shell" /> |
| 135 | <assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" /> |
| 136 | <assign-permission name="android.permission.REORDER_TASKS" uid="shell" /> |
| 137 | <assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" /> |
| 138 | <assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" /> |
| 139 | <assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" /> |
| 140 | <assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" /> |
| 141 | <assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" /> |
| 142 | <!-- Development tool permissions granted to the shell. --> |
| 143 | <assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" /> |
| 144 | <assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" /> |
| 145 | <assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" /> |
| 146 | <assign-permission name="android.permission.DUMP" uid="shell" /> |
| 147 | <assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" /> |
Dianne Hackborn | 7aa6d31 | 2011-11-15 15:01:14 -0800 | [diff] [blame] | 148 | <assign-permission name="android.permission.KILL_BACKGROUND_PROCESSES" uid="shell" /> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 149 | <!-- Internal permissions granted to the shell. --> |
| 150 | <assign-permission name="android.permission.FORCE_BACK" uid="shell" /> |
| 151 | <assign-permission name="android.permission.BATTERY_STATS" uid="shell" /> |
| 152 | <assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" /> |
| 153 | <assign-permission name="android.permission.INJECT_EVENTS" uid="shell" /> |
Svetoslav Ganov | 8643aa0 | 2011-04-20 12:12:33 -0700 | [diff] [blame] | 154 | <assign-permission name="android.permission.RETRIEVE_WINDOW_CONTENT" uid="shell" /> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 155 | <assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" /> |
| 156 | <assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" /> |
| 157 | <assign-permission name="android.permission.SET_ORIENTATION" uid="shell" /> |
| 158 | <assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" /> |
| 159 | <assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" /> |
| 160 | <assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" /> |
| 161 | <assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" /> |
| 162 | <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" /> |
| 163 | <assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" /> |
| 164 | <assign-permission name="android.permission.DEVICE_POWER" uid="shell" /> |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 165 | <assign-permission name="android.permission.INSTALL_LOCATION_PROVIDER" uid="shell" /> |
Christopher Tate | de83ab9 | 2009-07-14 15:38:07 -0700 | [diff] [blame] | 166 | <assign-permission name="android.permission.BACKUP" uid="shell" /> |
Dianne Hackborn | fc8fa63 | 2011-08-17 16:20:47 -0700 | [diff] [blame] | 167 | <assign-permission name="android.permission.FORCE_STOP_PACKAGES" uid="shell" /> |
Dianne Hackborn | 2c84cfc | 2011-10-31 15:39:59 -0700 | [diff] [blame] | 168 | <assign-permission name="android.permission.STOP_APP_SWITCHES" uid="shell" /> |
Svetoslav Ganov | 25872aa | 2012-02-03 19:19:09 -0800 | [diff] [blame] | 169 | <assign-permission name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" uid="shell" /> |
Dianne Hackborn | 4d5f968 | 2012-07-23 10:16:34 -0700 | [diff] [blame] | 170 | <assign-permission name="android.permission.GRANT_REVOKE_PERMISSIONS" uid="shell" /> |
| 171 | <assign-permission name="android.permission.SET_KEYBOARD_LAYOUT" uid="shell" /> |
| 172 | <assign-permission name="android.permission.GET_DETAILED_TASKS" uid="shell" /> |
| 173 | <assign-permission name="android.permission.SET_SCREEN_COMPATIBILITY" uid="shell" /> |
| 174 | <assign-permission name="android.permission.READ_EXTERNAL_STORAGE" uid="shell" /> |
| 175 | <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" /> |
Dianne Hackborn | 786b440 | 2012-08-27 15:14:02 -0700 | [diff] [blame] | 176 | <assign-permission name="android.permission.INTERACT_ACROSS_USERS" uid="shell" /> |
| 177 | <assign-permission name="android.permission.INTERACT_ACROSS_USERS_FULL" uid="shell" /> |
| 178 | <assign-permission name="android.permission.MANAGE_USERS" uid="shell" /> |
| 179 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 180 | <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" /> |
| 181 | <assign-permission name="android.permission.ACCESS_DRM" uid="media" /> |
| 182 | <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" /> |
Eric Laurent | 6dbdc40 | 2011-07-22 09:04:31 -0700 | [diff] [blame] | 183 | <assign-permission name="android.permission.WAKE_LOCK" uid="media" /> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 184 | |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 185 | <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" /> |
| 186 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 187 | <!-- This is a list of all the libraries available for application |
| 188 | code to link against. --> |
| 189 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 190 | <library name="android.test.runner" |
| 191 | file="/system/framework/android.test.runner.jar" /> |
Tao Liejun | 05ff98bb | 2009-07-13 15:57:11 -0700 | [diff] [blame] | 192 | <library name="javax.obex" |
| 193 | file="/system/framework/javax.obex.jar"/> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 194 | |
| 195 | </permissions> |