blob: b13a29245ab7ab43fca5d89b8c7c65f128518115 [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
57 <!-- The group that /cache belongs to, linked to the permission
58 set on the applications that can access /cache -->
59 <permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
60 <group gid="cache" />
61 </permission>
62
63 <!-- RW permissions to any system resources owned by group 'diag'.
64 This is for carrier and manufacture diagnostics tools that must be
65 installable from the framework. Be careful. -->
66 <permission name="android.permission.DIAGNOSTIC" >
67 <group gid="input" />
68 <group gid="diag" />
69 </permission>
70
71 <!-- ================================================================== -->
72 <!-- ================================================================== -->
73 <!-- ================================================================== -->
74
75 <!-- The following tags are assigning high-level permissions to specific
76 user IDs. These are used to allow specific core system users to
77 perform the given operations with the higher-level framework. For
78 example, we give a wide variety of permissions to the shell user
79 since that is the user the adb shell runs under and developers and
80 others should have a fairly open environment in which to
81 interact with the system. -->
82
83 <!-- System tool permissions granted to the shell. -->
84 <assign-permission name="android.permission.GET_TASKS" uid="shell" />
85 <assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" />
86 <assign-permission name="android.permission.REORDER_TASKS" uid="shell" />
87 <assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" />
88 <assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" />
89 <assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" />
90 <assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" />
91 <assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" />
92 <!-- Development tool permissions granted to the shell. -->
93 <assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" />
94 <assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" />
95 <assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" />
96 <assign-permission name="android.permission.DUMP" uid="shell" />
97 <assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" />
98 <!-- Internal permissions granted to the shell. -->
99 <assign-permission name="android.permission.FORCE_BACK" uid="shell" />
100 <assign-permission name="android.permission.BATTERY_STATS" uid="shell" />
101 <assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" />
102 <assign-permission name="android.permission.INJECT_EVENTS" uid="shell" />
103 <assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" />
104 <assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" />
105 <assign-permission name="android.permission.SET_ORIENTATION" uid="shell" />
106 <assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" />
107 <assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" />
108 <assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" />
109 <assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" />
110 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" />
111 <assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" />
112 <assign-permission name="android.permission.DEVICE_POWER" uid="shell" />
113
114 <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
115 <assign-permission name="android.permission.ACCESS_DRM" uid="media" />
116 <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
117
118 <!-- This is a list of all the libraries available for application
119 code to link against. -->
120
121 <library name="android.awt"
122 file="/system/framework/android.awt.jar" />
123 <library name="android.test.runner"
124 file="/system/framework/android.test.runner.jar" />
125 <library name="com.android.im.plugin"
126 file="/system/framework/com.android.im.plugin.jar"/>
127
128</permissions>