blob: d412d7c5aa33bc9b60f758c06ac8f997744c960c [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
Chien-Yu Chen75cade02016-01-11 10:56:21 -08007
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08008 http://www.apache.org/licenses/LICENSE-2.0
Chien-Yu Chen75cade02016-01-11 10:56:21 -08009
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080010 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" />
Pavlin Radoslavov70166252015-11-23 17:13:25 -080047 <group gid="wakelock" />
Matthew Xiefca9d632012-10-04 12:25:28 -070048 </permission>
49
fredc0f420372012-04-12 00:02:00 -070050 <permission name="android.permission.NET_TUNNELING" >
51 <group gid="vpn" />
52 </permission>
53
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080054 <permission name="android.permission.INTERNET" >
55 <group gid="inet" />
56 </permission>
57
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080058 <permission name="android.permission.READ_LOGS" >
59 <group gid="log" />
60 </permission>
61
Mike Lockwood1e23db42011-04-22 07:05:21 -070062 <permission name="android.permission.WRITE_MEDIA_STORAGE" >
63 <group gid="media_rw" />
Jeff Sharkey32e80d72015-07-06 09:45:55 -070064 <group gid="sdcard_rw" />
Mike Lockwood1e23db42011-04-22 07:05:21 -070065 </permission>
66
Mike Lockwood10bc1112011-01-10 08:24:08 -050067 <permission name="android.permission.ACCESS_MTP" >
68 <group gid="mtp" />
69 </permission>
70
Ramesh Sudini0e7b5a02011-03-28 09:18:31 -050071 <permission name="android.permission.NET_ADMIN" >
72 <group gid="net_admin" />
73 </permission>
74
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080075 <!-- The group that /cache belongs to, linked to the permission
76 set on the applications that can access /cache -->
77 <permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
78 <group gid="cache" />
79 </permission>
80
81 <!-- RW permissions to any system resources owned by group 'diag'.
82 This is for carrier and manufacture diagnostics tools that must be
83 installable from the framework. Be careful. -->
84 <permission name="android.permission.DIAGNOSTIC" >
85 <group gid="input" />
86 <group gid="diag" />
87 </permission>
88
Jeff Sharkey9e18fd12011-05-02 17:51:29 -070089 <!-- Group that can read detailed network usage statistics -->
90 <permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
91 <group gid="net_bw_stats" />
92 </permission>
93
94 <!-- Group that can modify how network statistics are accounted -->
95 <permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
96 <group gid="net_bw_acct" />
97 </permission>
98
Doug Zongkerb616f0c2013-01-29 09:05:21 -080099 <permission name="android.permission.LOOP_RADIO" >
100 <group gid="loop_radio" />
101 </permission>
102
Jeff Sharkey270e1f42014-10-01 16:02:05 -0700103 <!-- Hotword training apps sometimes need a GID to talk with low-level
104 hardware; give them audio for now until full HAL support is added. -->
105 <permission name="android.permission.MANAGE_VOICE_KEYPHRASES">
106 <group gid="audio" />
107 </permission>
108
Benson Huang981258e2014-09-23 10:57:40 +0800109 <permission name="android.permission.ACCESS_FM_RADIO" >
Andy Hunged0ea402015-10-30 14:11:46 -0700110 <!-- /dev/fm is gid media, not audio -->
Benson Huang981258e2014-09-23 10:57:40 +0800111 <group gid="media" />
112 </permission>
113
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800114 <!-- ================================================================== -->
115 <!-- ================================================================== -->
116 <!-- ================================================================== -->
117
118 <!-- The following tags are assigning high-level permissions to specific
119 user IDs. These are used to allow specific core system users to
120 perform the given operations with the higher-level framework. For
121 example, we give a wide variety of permissions to the shell user
122 since that is the user the adb shell runs under and developers and
123 others should have a fairly open environment in which to
124 interact with the system. -->
125
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800126 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800127 <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" />
Marco Nelissend983ba52013-10-03 08:49:36 -0700129 <assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
Eino-Ville Talvala788717c2013-02-15 18:30:15 -0800130 <assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
Chong Zhang8e4f4b32015-12-02 12:18:52 -0800131 <assign-permission name="android.permission.GET_PROCESS_STATE_AND_OOM_SCORE" uid="media" />
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800132
Andy Hunged0ea402015-10-30 14:11:46 -0700133 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="audioserver" />
134 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="audioserver" />
135 <assign-permission name="android.permission.WAKE_LOCK" uid="audioserver" />
136 <assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="audioserver" />
137 <assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="audioserver" />
138
Chien-Yu Chen75cade02016-01-11 10:56:21 -0800139 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="cameraserver" />
140 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="cameraserver" />
141 <assign-permission name="android.permission.WAKE_LOCK" uid="cameraserver" />
142 <assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="cameraserver" />
143 <assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="cameraserver" />
144
Mathias Agopian627e7b52009-05-21 19:21:59 -0700145 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
146
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800147 <!-- This is a list of all the libraries available for application
148 code to link against. -->
149
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800150 <library name="android.test.runner"
151 file="/system/framework/android.test.runner.jar" />
Tao Liejun05ff98bb2009-07-13 15:57:11 -0700152 <library name="javax.obex"
Narayan Kamath1ed78fb2015-01-20 13:44:23 +0000153 file="/system/framework/javax.obex.jar" />
154 <library name="org.apache.http.legacy"
155 file="/system/framework/org.apache.http.legacy.jar" />
156
Dianne Hackbornbe7c50e2014-06-30 14:43:28 -0700157 <!-- These are the standard packages that are white-listed to always have internet
158 access while in power save mode, even if they aren't in the foreground. -->
Dianne Hackborn4a503b12015-08-06 22:19:06 -0700159 <allow-in-power-save-except-idle package="com.android.providers.downloads" />
Dianne Hackbornbe7c50e2014-06-30 14:43:28 -0700160
Xiaohui Chen9c990c12015-11-23 12:03:08 -0800161 <!-- These are the packages that are white-listed to be able to run as system user -->
162 <system-user-whitelisted-app package="com.android.settings" />
163
Fyodor Kupolov7db5af12015-07-31 16:50:27 -0700164 <!-- These are the packages that shouldn't run as system user -->
165 <system-user-blacklisted-app package="com.android.wallpaper.livepicker" />
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800166</permissions>