blob: 12899714aecff8aac46745551f0fca4b3b998d5a [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
Matthew Xiefca9d632012-10-04 12:25:28 -070045 <permission name="android.permission.BLUETOOTH_STACK" >
46 <group gid="net_bt_stack" />
47 </permission>
48
fredc0f420372012-04-12 00:02:00 -070049 <permission name="android.permission.NET_TUNNELING" >
50 <group gid="vpn" />
51 </permission>
52
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080053 <permission name="android.permission.INTERNET" >
54 <group gid="inet" />
55 </permission>
56
57 <permission name="android.permission.CAMERA" >
58 <group gid="camera" />
59 </permission>
60
61 <permission name="android.permission.READ_LOGS" >
62 <group gid="log" />
63 </permission>
64
Dianne Hackborn79245122012-03-12 10:51:26 -070065 <permission name="android.permission.READ_EXTERNAL_STORAGE" >
66 <group gid="sdcard_r" />
67 </permission>
68
San Mehat5a3a77d2009-06-01 09:25:28 -070069 <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
San Mehat29b57e62009-04-23 09:18:32 -070070 <group gid="sdcard_rw" />
71 </permission>
72
Mike Lockwood1e23db42011-04-22 07:05:21 -070073 <permission name="android.permission.WRITE_MEDIA_STORAGE" >
74 <group gid="media_rw" />
75 </permission>
76
Mike Lockwood10bc1112011-01-10 08:24:08 -050077 <permission name="android.permission.ACCESS_MTP" >
78 <group gid="mtp" />
79 </permission>
80
Ramesh Sudini0e7b5a02011-03-28 09:18:31 -050081 <permission name="android.permission.NET_ADMIN" >
82 <group gid="net_admin" />
83 </permission>
84
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080085 <!-- 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" >
88 <group gid="cache" />
89 </permission>
90
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" >
95 <group gid="input" />
96 <group gid="diag" />
97 </permission>
98
Jeff Sharkey9e18fd12011-05-02 17:51:29 -070099 <!-- Group that can read detailed network usage statistics -->
100 <permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
101 <group gid="net_bw_stats" />
102 </permission>
103
104 <!-- Group that can modify how network statistics are accounted -->
105 <permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
106 <group gid="net_bw_acct" />
107 </permission>
108
Doug Zongkerb616f0c2013-01-29 09:05:21 -0800109 <permission name="android.permission.LOOP_RADIO" >
110 <group gid="loop_radio" />
111 </permission>
112
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800113 <!-- ================================================================== -->
114 <!-- ================================================================== -->
115 <!-- ================================================================== -->
116
117 <!-- The following tags are assigning high-level permissions to specific
118 user IDs. These are used to allow specific core system users to
119 perform the given operations with the higher-level framework. For
120 example, we give a wide variety of permissions to the shell user
121 since that is the user the adb shell runs under and developers and
122 others should have a fairly open environment in which to
123 interact with the system. -->
124
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800125 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
126 <assign-permission name="android.permission.ACCESS_DRM" uid="media" />
127 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
Eric Laurent6dbdc402011-07-22 09:04:31 -0700128 <assign-permission name="android.permission.WAKE_LOCK" uid="media" />
Eino-Ville Talvala788717c2013-02-15 18:30:15 -0800129 <assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800130
Mathias Agopian627e7b52009-05-21 19:21:59 -0700131 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
132
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800133 <!-- This is a list of all the libraries available for application
134 code to link against. -->
135
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800136 <library name="android.test.runner"
137 file="/system/framework/android.test.runner.jar" />
Tao Liejun05ff98bb2009-07-13 15:57:11 -0700138 <library name="javax.obex"
139 file="/system/framework/javax.obex.jar"/>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800140
141</permissions>