blob: 692ea9d1d4a4a207008c993f611daf86d8c04e46 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001<?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
45 <permission name="android.permission.INTERNET" >
46 <group gid="inet" />
47 </permission>
48
49 <permission name="android.permission.CAMERA" >
50 <group gid="camera" />
51 </permission>
52
53 <permission name="android.permission.READ_LOGS" >
54 <group gid="log" />
55 </permission>
56
San Mehat5a3a77d2009-06-01 09:25:28 -070057 <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
San Mehat29b57e62009-04-23 09:18:32 -070058 <group gid="sdcard_rw" />
59 </permission>
60
Mike Lockwood10bc1112011-01-10 08:24:08 -050061 <permission name="android.permission.ACCESS_MTP" >
62 <group gid="mtp" />
63 </permission>
64
Ramesh Sudini0e7b5a02011-03-28 09:18:31 -050065 <permission name="android.permission.NET_ADMIN" >
66 <group gid="net_admin" />
67 </permission>
68
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080069 <!-- The group that /cache belongs to, linked to the permission
70 set on the applications that can access /cache -->
71 <permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
72 <group gid="cache" />
73 </permission>
74
75 <!-- RW permissions to any system resources owned by group 'diag'.
76 This is for carrier and manufacture diagnostics tools that must be
77 installable from the framework. Be careful. -->
78 <permission name="android.permission.DIAGNOSTIC" >
79 <group gid="input" />
80 <group gid="diag" />
81 </permission>
82
83 <!-- ================================================================== -->
84 <!-- ================================================================== -->
85 <!-- ================================================================== -->
86
87 <!-- The following tags are assigning high-level permissions to specific
88 user IDs. These are used to allow specific core system users to
89 perform the given operations with the higher-level framework. For
90 example, we give a wide variety of permissions to the shell user
91 since that is the user the adb shell runs under and developers and
92 others should have a fairly open environment in which to
93 interact with the system. -->
94
Dianne Hackborna96cbb42009-05-13 15:06:13 -070095 <!-- Standard permissions granted to the shell. -->
San Mehat5a3a77d2009-06-01 09:25:28 -070096 <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" />
Dianne Hackborna96cbb42009-05-13 15:06:13 -070097 <assign-permission name="android.permission.SEND_SMS" uid="shell" />
98 <assign-permission name="android.permission.CALL_PHONE" uid="shell" />
99 <assign-permission name="android.permission.READ_CONTACTS" uid="shell" />
100 <assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" />
Dianne Hackborna96cbb42009-05-13 15:06:13 -0700101 <assign-permission name="android.permission.READ_CALENDAR" uid="shell" />
102 <assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" />
103 <assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" />
104 <assign-permission name="android.permission.WRITE_USER_DICTIONARY" uid="shell" />
105 <assign-permission name="android.permission.ACCESS_FINE_LOCATION" uid="shell" />
106 <assign-permission name="android.permission.ACCESS_COARSE_LOCATION" uid="shell" />
107 <assign-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" uid="shell" />
108 <assign-permission name="android.permission.ACCESS_NETWORK_STATE" uid="shell" />
109 <assign-permission name="android.permission.ACCESS_WIFI_STATE" uid="shell" />
110 <assign-permission name="android.permission.BLUETOOTH" uid="shell" />
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800111 <!-- System tool permissions granted to the shell. -->
112 <assign-permission name="android.permission.GET_TASKS" uid="shell" />
113 <assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" />
114 <assign-permission name="android.permission.REORDER_TASKS" uid="shell" />
115 <assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" />
116 <assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" />
117 <assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" />
118 <assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" />
119 <assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" />
120 <!-- Development tool permissions granted to the shell. -->
121 <assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" />
122 <assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" />
123 <assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" />
124 <assign-permission name="android.permission.DUMP" uid="shell" />
125 <assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" />
126 <!-- Internal permissions granted to the shell. -->
127 <assign-permission name="android.permission.FORCE_BACK" uid="shell" />
128 <assign-permission name="android.permission.BATTERY_STATS" uid="shell" />
129 <assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" />
130 <assign-permission name="android.permission.INJECT_EVENTS" uid="shell" />
131 <assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" />
132 <assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" />
133 <assign-permission name="android.permission.SET_ORIENTATION" uid="shell" />
134 <assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" />
135 <assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" />
136 <assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" />
137 <assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" />
138 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" />
139 <assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" />
140 <assign-permission name="android.permission.DEVICE_POWER" uid="shell" />
Dianne Hackborna96cbb42009-05-13 15:06:13 -0700141 <assign-permission name="android.permission.INSTALL_LOCATION_PROVIDER" uid="shell" />
Christopher Tatede83ab92009-07-14 15:38:07 -0700142 <assign-permission name="android.permission.BACKUP" uid="shell" />
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800143
144 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
145 <assign-permission name="android.permission.ACCESS_DRM" uid="media" />
146 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
147
Mathias Agopian627e7b52009-05-21 19:21:59 -0700148 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
149
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800150 <!-- This is a list of all the libraries available for application
151 code to link against. -->
152
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800153 <library name="android.test.runner"
154 file="/system/framework/android.test.runner.jar" />
Tao Liejun05ff98bb2009-07-13 15:57:11 -0700155 <library name="javax.obex"
156 file="/system/framework/javax.obex.jar"/>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800157
158</permissions>