1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2016 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<!--
19This XML file declares which signature|privileged permissions should be granted to privileged
20applications that come with the platform
21-->
22<permissions>
23    <privapp-permissions package="android.ext.services">
24        <permission name="android.permission.PROVIDE_RESOLVER_RANKER_SERVICE" />
25        <permission name="android.permission.MONITOR_DEFAULT_SMS_PACKAGE" />
26        <permission name="android.permission.REQUEST_NOTIFICATION_ASSISTANT_SERVICE" />
27    </privapp-permissions>
28
29    <privapp-permissions package="com.android.apps.tag">
30        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
31    </privapp-permissions>
32
33    <privapp-permissions package="com.android.backupconfirm">
34        <permission name="android.permission.BACKUP"/>
35        <permission name="android.permission.CRYPT_KEEPER"/>
36    </privapp-permissions>
37
38    <privapp-permissions package="com.android.captiveportallogin">
39        <permission name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
40        <permission name="android.permission.NETWORK_BYPASS_PRIVATE_DNS"/>
41    </privapp-permissions>
42
43    <privapp-permissions package="com.android.cellbroadcastreceiver">
44        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
45        <permission name="android.permission.MANAGE_USERS"/>
46        <permission name="android.permission.MODIFY_PHONE_STATE"/>
47        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
48        <permission name="android.permission.RECEIVE_EMERGENCY_BROADCAST"/>
49        <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
50    </privapp-permissions>
51
52    <privapp-permissions package="com.android.externalstorage">
53        <permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
54        <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
55    </privapp-permissions>
56
57    <privapp-permissions package="com.android.location.fused">
58        <permission name="android.permission.INSTALL_LOCATION_PROVIDER"/>
59    </privapp-permissions>
60
61    <privapp-permissions package="com.android.managedprovisioning">
62        <permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
63        <permission name="android.permission.CHANGE_CONFIGURATION"/>
64        <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
65        <permission name="android.permission.CRYPT_KEEPER"/>
66        <permission name="android.permission.DELETE_PACKAGES"/>
67        <permission name="android.permission.INSTALL_PACKAGES"/>
68        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
69        <permission name="android.permission.MANAGE_DEVICE_ADMINS"/>
70        <permission name="android.permission.MANAGE_USERS"/>
71        <permission name="android.permission.MASTER_CLEAR"/>
72        <permission name="android.permission.NETWORK_MANAGED_PROVISIONING"/>
73        <permission name="android.permission.PERFORM_CDMA_PROVISIONING"/>
74        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
75        <permission name="android.permission.SET_TIME"/>
76        <permission name="android.permission.SET_TIME_ZONE"/>
77        <permission name="android.permission.SHUTDOWN"/>
78        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
79        <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
80    </privapp-permissions>
81
82    <privapp-permissions package="com.android.mms.service">
83        <permission name="android.permission.BIND_CARRIER_MESSAGING_SERVICE"/>
84        <permission name="android.permission.BIND_CARRIER_SERVICES"/>
85        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
86    </privapp-permissions>
87
88    <privapp-permissions package="com.android.mtp">
89        <permission name="android.permission.MANAGE_USB"/>
90    </privapp-permissions>
91
92    <privapp-permissions package="com.android.musicfx">
93        <permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
94    </privapp-permissions>
95
96    <privapp-permissions package="com.android.networkrecommendation">
97        <permission name="android.permission.SCORE_NETWORKS"/>
98        <permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
99        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
100    </privapp-permissions>
101
102    <privapp-permissions package="com.android.packageinstaller">
103        <permission name="android.permission.DELETE_PACKAGES"/>
104        <permission name="android.permission.INSTALL_PACKAGES"/>
105        <permission name="android.permission.USE_RESERVED_DISK"/>
106        <permission name="android.permission.MANAGE_USERS"/>
107        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
108        <permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
109        <permission name="android.permission.PACKAGE_USAGE_STATS"/>
110    </privapp-permissions>
111
112    <privapp-permissions package="com.android.permissioncontroller">
113        <permission name="android.permission.CLEAR_APP_CACHE"/>
114        <permission name="android.permission.MANAGE_USERS"/>
115        <permission name="android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS"/>
116        <permission name="android.permission.GET_APP_OPS_STATS"/>
117        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
118        <permission name="android.permission.REQUEST_INCIDENT_REPORT_APPROVAL"/>
119        <permission name="android.permission.APPROVE_INCIDENT_REPORTS"/>
120        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
121        <permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
122    </privapp-permissions>
123
124    <privapp-permissions package="com.android.phone">
125        <permission name="android.permission.ACCESS_IMS_CALL_SERVICE"/>
126        <permission name="android.permission.BIND_CARRIER_MESSAGING_SERVICE"/>
127        <permission name="android.permission.BIND_CARRIER_SERVICES"/>
128        <permission name="android.permission.BIND_IMS_SERVICE"/>
129        <permission name="android.permission.BIND_TELEPHONY_DATA_SERVICE"/>
130        <permission name="android.permission.BIND_VISUAL_VOICEMAIL_SERVICE"/>
131        <permission name="android.permission.CALL_PRIVILEGED"/>
132        <permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
133        <permission name="android.permission.CHANGE_CONFIGURATION"/>
134        <permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>
135        <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
136        <permission name="android.permission.CONTROL_INCALL_EXPERIENCE"/>
137        <permission name="android.permission.DUMP"/>
138        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
139        <permission name="android.permission.LOCAL_MAC_ADDRESS"/>
140        <permission name="android.permission.MANAGE_USERS"/>
141        <permission name="android.permission.MODIFY_PHONE_STATE"/>
142        <permission name="android.permission.PACKAGE_USAGE_STATS"/>
143        <permission name="android.permission.PERFORM_CDMA_PROVISIONING"/>
144        <permission name="android.permission.READ_NETWORK_USAGE_HISTORY"/>
145        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
146        <permission name="android.permission.READ_SEARCH_INDEXABLES"/>
147        <permission name="android.permission.REBOOT"/>
148        <permission name="android.permission.REGISTER_CALL_PROVIDER"/>
149        <permission name="android.permission.REGISTER_SIM_SUBSCRIPTION"/>
150        <permission name="android.permission.SEND_RESPOND_VIA_MESSAGE"/>
151        <permission name="android.permission.SET_TIME"/>
152        <permission name="android.permission.SET_TIME_ZONE"/>
153        <permission name="android.permission.SHUTDOWN"/>
154        <permission name="android.permission.STATUS_BAR"/>
155        <permission name="android.permission.STOP_APP_SWITCHES"/>
156        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
157        <permission name="android.permission.UPDATE_DEVICE_STATS"/>
158        <permission name="android.permission.UPDATE_LOCK"/>
159        <permission name="android.permission.WRITE_APN_SETTINGS"/>
160        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
161        <permission name="android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS"/>
162        <permission name="android.permission.READ_PRECISE_PHONE_STATE"/>
163        <permission name="com.android.voicemail.permission.READ_VOICEMAIL"/>
164        <permission name="com.android.voicemail.permission.WRITE_VOICEMAIL"/>
165    </privapp-permissions>
166
167    <privapp-permissions package="com.android.providers.calendar">
168        <permission name="android.permission.GET_ACCOUNTS_PRIVILEGED"/>
169        <permission name="android.permission.INTERACT_ACROSS_USERS" />
170        <permission name="android.permission.MANAGE_USERS" />
171        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
172        <permission name="android.permission.USE_RESERVED_DISK"/>
173    </privapp-permissions>
174
175    <privapp-permissions package="com.android.providers.contacts">
176        <permission name="android.permission.BIND_DIRECTORY_SEARCH"/>
177        <permission name="android.permission.GET_ACCOUNTS_PRIVILEGED"/>
178        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
179        <permission name="android.permission.MANAGE_USERS"/>
180        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
181        <permission name="android.permission.USE_RESERVED_DISK"/>
182    </privapp-permissions>
183
184    <privapp-permissions package="com.android.providers.downloads">
185        <permission name="android.permission.ACCESS_CACHE_FILESYSTEM"/>
186        <permission name="android.permission.CLEAR_APP_CACHE"/>
187        <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
188        <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
189        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
190        <permission name="android.permission.UPDATE_DEVICE_STATS"/>
191    </privapp-permissions>
192
193    <privapp-permissions package="com.android.providers.media">
194        <permission name="android.permission.ACCESS_MTP"/>
195        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
196        <permission name="android.permission.MANAGE_USERS"/>
197        <permission name="android.permission.USE_RESERVED_DISK"/>
198        <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
199        <permission name="android.permission.WATCH_APPOPS"/>
200        <permission name="android.permission.UPDATE_DEVICE_STATS"/>
201    </privapp-permissions>
202
203    <privapp-permissions package="com.android.providers.telephony">
204        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
205        <permission name="android.permission.MODIFY_PHONE_STATE"/>
206        <permission name="android.permission.USE_RESERVED_DISK"/>
207    </privapp-permissions>
208
209    <privapp-permissions package="com.android.networkstack">
210        <permission name="android.permission.ACCESS_NETWORK_CONDITIONS"/>
211        <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
212        <permission name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
213        <permission name="android.permission.CONTROL_VPN"/>
214        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
215        <permission name="android.permission.LOCAL_MAC_ADDRESS"/>
216        <permission name="android.permission.MANAGE_SUBSCRIPTION_PLANS"/>
217        <permission name="android.permission.MANAGE_USB"/>
218        <permission name="android.permission.NETWORK_BYPASS_PRIVATE_DNS"/>
219        <permission name="android.permission.PACKET_KEEPALIVE_OFFLOAD"/>
220        <permission name="android.permission.READ_NETWORK_USAGE_HISTORY"/>
221        <permission name="android.permission.READ_PRECISE_PHONE_STATE"/>
222        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
223        <permission name="android.permission.READ_WIFI_CREDENTIAL"/>
224        <permission name="android.permission.RECEIVE_DATA_ACTIVITY_CHANGE"/>
225        <permission name="android.permission.TETHER_PRIVILEGED"/>
226        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
227    </privapp-permissions>
228
229    <privapp-permissions package="com.android.server.telecom">
230        <permission name="android.permission.BIND_CONNECTION_SERVICE"/>
231        <permission name="android.permission.BIND_INCALL_SERVICE"/>
232        <permission name="android.permission.CALL_PRIVILEGED"/>
233        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
234        <permission name="android.permission.MANAGE_USERS"/>
235        <permission name="android.permission.MANAGE_ROLE_HOLDERS"/>
236        <permission name="android.permission.MODIFY_AUDIO_ROUTING" />
237        <permission name="android.permission.MODIFY_PHONE_STATE"/>
238        <permission name="android.permission.STOP_APP_SWITCHES"/>
239        <permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
240    </privapp-permissions>
241
242    <privapp-permissions package="com.android.sharedstoragebackup">
243        <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
244    </privapp-permissions>
245
246    <privapp-permissions package="com.android.shell">
247        <permission name="android.permission.ACCESS_LOWPAN_STATE"/>
248        <permission name="android.permission.BACKUP"/>
249        <permission name="android.permission.BATTERY_STATS"/>
250        <permission name="android.permission.BIND_APPWIDGET"/>
251        <permission name="android.permission.CHANGE_APP_IDLE_STATE"/>
252        <permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
253        <permission name="android.permission.CHANGE_CONFIGURATION"/>
254        <permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" />
255        <permission name="android.permission.CHANGE_LOWPAN_STATE"/>
256        <permission name="android.permission.CHANGE_OVERLAY_PACKAGES"/>
257        <permission name="android.permission.CLEAR_APP_CACHE"/>
258        <permission name="android.permission.ACCESS_INSTANT_APPS" />
259        <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
260        <permission name="android.permission.DELETE_CACHE_FILES"/>
261        <permission name="android.permission.DELETE_PACKAGES"/>
262        <permission name="android.permission.DUMP"/>
263        <permission name="android.permission.ACTIVITY_EMBEDDING"/>
264        <permission name="android.permission.FORCE_STOP_PACKAGES"/>
265        <permission name="android.permission.GET_APP_OPS_STATS"/>
266        <permission name="android.permission.INSTALL_DYNAMIC_SYSTEM"/>
267        <permission name="android.permission.INSTALL_LOCATION_PROVIDER"/>
268        <permission name="android.permission.INSTALL_PACKAGES"/>
269        <!-- Needed for test only -->
270        <permission name="android.permission.INTERACT_ACROSS_PROFILES"/>
271        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
272        <permission name="android.permission.LOCAL_MAC_ADDRESS"/>
273        <permission name="android.permission.MANAGE_ACCESSIBILITY"/>
274        <permission name="android.permission.MANAGE_DEVICE_ADMINS"/>
275        <permission name="android.permission.MANAGE_USB"/>
276        <permission name="android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS"/>
277        <permission name="android.permission.MODIFY_PHONE_STATE"/>
278        <permission name="android.permission.MOUNT_FORMAT_FILESYSTEMS"/>
279        <permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
280        <permission name="android.permission.MOVE_PACKAGE"/>
281        <permission name="android.permission.OBSERVE_APP_USAGE"/>
282        <permission name="android.permission.NETWORK_SCAN"/>
283        <permission name="android.permission.PACKAGE_USAGE_STATS" />
284        <!-- Needed for test only -->
285        <permission name="android.permission.PACKET_KEEPALIVE_OFFLOAD" />
286        <permission name="android.permission.POWER_SAVER" />
287        <permission name="android.permission.READ_FRAME_BUFFER"/>
288        <permission name="android.permission.READ_LOWPAN_CREDENTIAL"/>
289        <!-- Needed for test only -->
290        <permission name="android.permission.READ_PRECISE_PHONE_STATE" />
291        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
292        <permission name="android.permission.REAL_GET_TASKS"/>
293        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
294        <permission name="android.permission.REGISTER_CALL_PROVIDER"/>
295        <permission name="android.permission.REGISTER_CONNECTION_MANAGER"/>
296        <permission name="android.permission.REGISTER_SIM_SUBSCRIPTION"/>
297        <permission name="android.permission.RETRIEVE_WINDOW_CONTENT"/>
298        <permission name="android.permission.SET_ALWAYS_FINISH"/>
299        <permission name="android.permission.SET_ANIMATION_SCALE"/>
300        <permission name="android.permission.SET_DEBUG_APP"/>
301        <permission name="android.permission.SET_PROCESS_LIMIT"/>
302        <permission name="android.permission.SET_TIME"/>
303        <permission name="android.permission.SET_TIME_ZONE"/>
304        <permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES"/>
305        <permission name="android.permission.STATUS_BAR"/>
306        <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
307        <permission name="android.permission.START_TASKS_FROM_RECENTS" />
308        <permission name="android.permission.STOP_APP_SWITCHES"/>
309        <permission name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
310        <permission name="android.permission.SUSPEND_APPS" />
311        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
312        <permission name="android.permission.USE_RESERVED_DISK"/>
313        <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
314        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
315        <permission name="android.permission.STATUS_BAR_SERVICE"/>
316        <permission name="android.permission.REQUEST_INCIDENT_REPORT_APPROVAL"/>
317        <permission name="android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS"/>
318        <permission name="android.permission.SET_WALLPAPER" />
319        <permission name="android.permission.SET_WALLPAPER_COMPONENT" />
320        <permission name="android.permission.REQUEST_NOTIFICATION_ASSISTANT_SERVICE" />
321        <!-- Permission required to test ExplicitHealthCheckServiceImpl. -->
322        <permission name="android.permission.BIND_EXPLICIT_HEALTH_CHECK_SERVICE"/>
323    </privapp-permissions>
324
325    <privapp-permissions package="com.android.statementservice">
326        <permission name="android.permission.INTENT_FILTER_VERIFICATION_AGENT"/>
327    </privapp-permissions>
328
329    <privapp-permissions package="com.android.tv">
330        <permission name="android.permission.CHANGE_HDMI_CEC_ACTIVE_SOURCE"/>
331        <permission name="android.permission.DVB_DEVICE"/>
332        <permission name="android.permission.GLOBAL_SEARCH"/>
333        <permission name="android.permission.HDMI_CEC"/>
334        <permission name="android.permission.MODIFY_PARENTAL_CONTROLS"/>
335        <permission name="android.permission.READ_CONTENT_RATING_SYSTEMS"/>
336        <permission name="com.android.providers.tv.permission.ACCESS_ALL_EPG_DATA"/>
337        <permission name="com.android.providers.tv.permission.ACCESS_WATCHED_PROGRAMS"/>
338    </privapp-permissions>
339
340    <privapp-permissions package="com.android.vpndialogs">
341        <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
342        <permission name="android.permission.CONTROL_VPN"/>
343    </privapp-permissions>
344
345    <privapp-permissions package="com.android.dynsystem">
346        <permission name="android.permission.REBOOT"/>
347        <permission name="android.permission.MANAGE_DYNAMIC_SYSTEM"/>
348    </privapp-permissions>
349
350</permissions>
351