1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
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
21 Be VERY careful when editing this file! Mistakes made here can open
26 <!-- ================================================================== -->
27 <!-- ================================================================== -->
28 <!-- ================================================================== -->
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. -->
37 <permission name="android.permission.BLUETOOTH_ADMIN" >
38 <group gid="net_bt_admin" />
41 <permission name="android.permission.BLUETOOTH" >
42 <group gid="net_bt" />
45 <permission name="android.permission.BLUETOOTH_STACK" >
46 <group gid="net_bt_stack" />
49 <permission name="android.permission.NET_TUNNELING" >
53 <permission name="android.permission.INTERNET" >
57 <permission name="android.permission.CAMERA" >
58 <group gid="camera" />
61 <permission name="android.permission.READ_LOGS" >
65 <permission name="android.permission.READ_EXTERNAL_STORAGE" >
66 <group gid="sdcard_r" />
69 <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
70 <group gid="sdcard_rw" />
73 <permission name="android.permission.WRITE_MEDIA_STORAGE" >
74 <group gid="media_rw" />
77 <permission name="android.permission.ACCESS_MTP" >
81 <permission name="android.permission.NET_ADMIN" >
82 <group gid="net_admin" />
85 <!-- The group that /cache belongs to, linked to the permission
86 set on the applications that can access /cache -->
87 <permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
91 <!-- RW permissions to any system resources owned by group 'diag'.
92 This is for carrier and manufacture diagnostics tools that must be
93 installable from the framework. Be careful. -->
94 <permission name="android.permission.DIAGNOSTIC" >
99 <!-- Group that can read detailed network usage statistics -->
100 <permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
101 <group gid="net_bw_stats" />
104 <!-- Group that can modify how network statistics are accounted -->
105 <permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
106 <group gid="net_bw_acct" />
109 <!-- ================================================================== -->
110 <!-- ================================================================== -->
111 <!-- ================================================================== -->
113 <!-- The following tags are assigning high-level permissions to specific
114 user IDs. These are used to allow specific core system users to
115 perform the given operations with the higher-level framework. For
116 example, we give a wide variety of permissions to the shell user
117 since that is the user the adb shell runs under and developers and
118 others should have a fairly open environment in which to
119 interact with the system. -->
121 <!-- Standard permissions granted to the shell. -->
122 <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" />
123 <assign-permission name="android.permission.SEND_SMS" uid="shell" />
124 <assign-permission name="android.permission.CALL_PHONE" uid="shell" />
125 <assign-permission name="android.permission.READ_CONTACTS" uid="shell" />
126 <assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" />
127 <assign-permission name="android.permission.READ_CALENDAR" uid="shell" />
128 <assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" />
129 <assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" />
130 <assign-permission name="android.permission.WRITE_USER_DICTIONARY" uid="shell" />
131 <assign-permission name="android.permission.ACCESS_FINE_LOCATION" uid="shell" />
132 <assign-permission name="android.permission.ACCESS_COARSE_LOCATION" uid="shell" />
133 <assign-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" uid="shell" />
134 <assign-permission name="android.permission.ACCESS_NETWORK_STATE" uid="shell" />
135 <assign-permission name="android.permission.ACCESS_WIFI_STATE" uid="shell" />
136 <assign-permission name="android.permission.BLUETOOTH" uid="shell" />
137 <assign-permission name="android.permission.EXPAND_STATUS_BAR" uid="shell" />
138 <!-- System tool permissions granted to the shell. -->
139 <assign-permission name="android.permission.GET_TASKS" uid="shell" />
140 <assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" />
141 <assign-permission name="android.permission.REORDER_TASKS" uid="shell" />
142 <assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" />
143 <assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" />
144 <assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" />
145 <assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" />
146 <assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" />
147 <!-- Development tool permissions granted to the shell. -->
148 <assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" />
149 <assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" />
150 <assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" />
151 <assign-permission name="android.permission.DUMP" uid="shell" />
152 <assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" />
153 <assign-permission name="android.permission.KILL_BACKGROUND_PROCESSES" uid="shell" />
154 <!-- Internal permissions granted to the shell. -->
155 <assign-permission name="android.permission.FORCE_BACK" uid="shell" />
156 <assign-permission name="android.permission.BATTERY_STATS" uid="shell" />
157 <assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" />
158 <assign-permission name="android.permission.INJECT_EVENTS" uid="shell" />
159 <assign-permission name="android.permission.RETRIEVE_WINDOW_CONTENT" uid="shell" />
160 <assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" />
161 <assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" />
162 <assign-permission name="android.permission.SET_ORIENTATION" uid="shell" />
163 <assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" />
164 <assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" />
165 <assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" />
166 <assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" />
167 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" />
168 <assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" />
169 <assign-permission name="android.permission.DEVICE_POWER" uid="shell" />
170 <assign-permission name="android.permission.INSTALL_LOCATION_PROVIDER" uid="shell" />
171 <assign-permission name="android.permission.BACKUP" uid="shell" />
172 <assign-permission name="android.permission.FORCE_STOP_PACKAGES" uid="shell" />
173 <assign-permission name="android.permission.STOP_APP_SWITCHES" uid="shell" />
174 <assign-permission name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" uid="shell" />
175 <assign-permission name="android.permission.GRANT_REVOKE_PERMISSIONS" uid="shell" />
176 <assign-permission name="android.permission.SET_KEYBOARD_LAYOUT" uid="shell" />
177 <assign-permission name="android.permission.GET_DETAILED_TASKS" uid="shell" />
178 <assign-permission name="android.permission.SET_SCREEN_COMPATIBILITY" uid="shell" />
179 <assign-permission name="android.permission.READ_EXTERNAL_STORAGE" uid="shell" />
180 <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" />
181 <assign-permission name="android.permission.INTERACT_ACROSS_USERS" uid="shell" />
182 <assign-permission name="android.permission.INTERACT_ACROSS_USERS_FULL" uid="shell" />
183 <assign-permission name="android.permission.MANAGE_USERS" uid="shell" />
184 <assign-permission name="android.permission.BLUETOOTH_STACK" uid="shell" />
186 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
187 <assign-permission name="android.permission.ACCESS_DRM" uid="media" />
188 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
189 <assign-permission name="android.permission.WAKE_LOCK" uid="media" />
191 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
193 <!-- This is a list of all the libraries available for application
194 code to link against. -->
196 <library name="android.test.runner"
197 file="/system/framework/android.test.runner.jar" />
198 <library name="javax.obex"
199 file="/system/framework/javax.obex.jar"/>