AndroidManifest.xml revision cfaffa85e4a5388f3591bb17f88fc7768676eae2
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3  package="com.android.bluetooth"
4  android:sharedUserId="android.uid.bluetooth">
5
6    <original-package android:name="com.android.bluetooth" />
7
8    <!-- Allows access to the Bluetooth Share Manager -->
9    <permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE"
10        android:label="@string/permlab_bluetoothShareManager"
11        android:description="@string/permdesc_bluetoothShareManager"
12        android:protectionLevel="signature" />
13
14    <!--  Allows temporarily whitelisting Bluetooth addresses for sharing -->
15    <permission android:name="com.android.permission.WHITELIST_BLUETOOTH_DEVICE"
16        android:label="@string/permlab_bluetoothWhitelist"
17        android:description="@string/permdesc_bluetoothWhitelist"
18        android:protectionLevel="signature" />
19
20    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
21    <uses-permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE" />
22    <uses-permission android:name="android.permission.INTERNET" />
23    <uses-permission android:name="android.permission.BLUETOOTH" />
24    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
25    <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
26    <uses-permission android:name="android.permission.WAKE_LOCK" />
27    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
28    <uses-permission android:name="android.permission.READ_CONTACTS" />
29    <uses-permission android:name="android.permission.READ_CALL_LOG" />
30    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
31    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
32    <uses-permission android:name="android.permission.NFC_HANDOVER_STATUS" />
33    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
34    <uses-permission android:name="android.permission.NET_ADMIN" />
35    <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
36    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
37    <uses-permission android:name="android.permission.NET_TUNNELING" />
38    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
39    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
40    <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
41    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
42    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
43    <uses-permission android:name="android.permission.BLUETOOTH_STACK" />
44    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
45    <uses-permission android:name="android.permission.MANAGE_USERS"/>
46    <uses-permission android:name="com.google.android.gallery3d.permission.GALLERY_PROVIDER"/>
47    <uses-permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER"/>
48    <uses-permission android:name="android.permission.MMS_SEND_OUTBOX_MSG"/>
49    <uses-permission android:name="android.permission.RECEIVE_SMS" />
50    <uses-permission android:name="android.permission.SEND_SMS" />
51    <uses-permission android:name="android.permission.READ_SMS" />
52    <uses-permission android:name="android.permission.WRITE_SMS" />
53    <uses-permission android:name="android.permission.READ_CONTACTS" />
54    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
55    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL" />
56
57    <!-- For PBAP Owner Vcard Info -->
58    <uses-permission android:name="android.permission.READ_PROFILE"/>
59    <application
60        android:name=".btservice.AdapterApp"
61        android:icon="@drawable/bt_share"
62        android:persistent="false"
63        android:label="@string/app_name">
64        <uses-library android:name="javax.obex" />
65        <provider android:name=".opp.BluetoothOppProvider"
66            android:authorities="com.android.bluetooth.opp"
67            android:exported="true"
68            android:process="@string/process">
69            <path-permission
70                    android:pathPrefix="/btopp"
71                    android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" />
72        </provider>
73        <service
74            android:process="@string/process"
75            android:name = ".btservice.AdapterService">
76            <intent-filter>
77                <action android:name="android.bluetooth.IBluetooth" />
78            </intent-filter>
79        </service>
80        <service
81            android:process="@string/process"
82            android:name=".opp.BluetoothOppService"
83            android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"
84            android:enabled="@bool/profile_supported_opp"/>
85        <receiver
86            android:process="@string/process"
87            android:exported="true"
88            android:name=".opp.BluetoothOppReceiver"
89            android:enabled="@bool/profile_supported_opp">
90            <intent-filter>
91                <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
92                <!--action android:name="android.intent.action.BOOT_COMPLETED" /-->
93                <action android:name="android.btopp.intent.action.OPEN_RECEIVED_FILES" />
94            </intent-filter>
95        </receiver>
96         <receiver
97            android:process="@string/process"
98            android:name=".opp.BluetoothOppHandoverReceiver"
99            android:permission="com.android.permission.WHITELIST_BLUETOOTH_DEVICE">
100            <intent-filter>
101                <action android:name="android.btopp.intent.action.WHITELIST_DEVICE" />
102                <action android:name="android.btopp.intent.action.STOP_HANDOVER_TRANSFER" />
103            </intent-filter>
104            <intent-filter>
105                <action android:name="android.nfc.handover.intent.action.HANDOVER_SEND" />
106                <category android:name="android.intent.category.DEFAULT" />
107                <data android:mimeType="*/*" />
108            </intent-filter>
109            <intent-filter>
110                <action android:name="android.nfc.handover.intent.action.HANDOVER_SEND_MULTIPLE" />
111                <category android:name="android.intent.category.DEFAULT" />
112                <data android:mimeType="*/*" />
113            </intent-filter>
114        </receiver>
115        <activity android:name=".opp.BluetoothOppLauncherActivity"
116            android:process="@string/process"
117            android:theme="@android:style/Theme.Holo.Dialog"
118            android:label="@string/bt_share_picker_label"
119            android:enabled="@bool/profile_supported_opp">
120            <intent-filter>
121                <action android:name="android.intent.action.SEND" />
122                <category android:name="android.intent.category.DEFAULT" />
123                <data android:mimeType="image/*" />
124                <data android:mimeType="video/*" />
125                <data android:mimeType="audio/*" />
126                <data android:mimeType="text/x-vcard" />
127                <data android:mimeType="text/plain" />
128                <data android:mimeType="text/html" />
129                <data android:mimeType="text/xml" />
130                <data android:mimeType="application/zip" />
131                <data android:mimeType="application/vnd.ms-excel" />
132                <data android:mimeType="application/msword" />
133                <data android:mimeType="application/vnd.ms-powerpoint" />
134                <data android:mimeType="application/pdf" />
135                <data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
136                <data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
137                <data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
138            </intent-filter>
139            <intent-filter>
140                <action android:name="android.intent.action.SEND_MULTIPLE" />
141                <category android:name="android.intent.category.DEFAULT" />
142                <data android:mimeType="image/*" />
143                <data android:mimeType="video/*" />
144                <data android:mimeType="x-mixmedia/*" />
145                <data android:mimeType="text/x-vcard" />
146            </intent-filter>
147            <intent-filter>
148                <action android:name="android.btopp.intent.action.OPEN" />
149                <category android:name="android.intent.category.DEFAULT" />
150                <data android:mimeType="vnd.android.cursor.item/vnd.android.btopp" />
151            </intent-filter>
152        </activity>
153        <activity android:name=".opp.BluetoothOppBtEnableActivity"
154                  android:process="@string/process"
155                  android:excludeFromRecents="true"
156                  android:theme="@*android:style/Theme.Holo.Dialog.Alert"
157                  android:enabled="@bool/profile_supported_opp">
158        </activity>
159        <activity android:name=".opp.BluetoothOppBtErrorActivity"
160                  android:process="@string/process"
161                  android:excludeFromRecents="true"
162                  android:theme="@*android:style/Theme.Holo.Dialog.Alert">
163        </activity>
164        <activity android:name=".opp.BluetoothOppBtEnablingActivity"
165                  android:process="@string/process"
166                  android:excludeFromRecents="true"
167                  android:theme="@*android:style/Theme.Holo.Dialog.Alert"
168                  android:enabled="@bool/profile_supported_opp">
169        </activity>
170        <activity android:name=".opp.BluetoothOppIncomingFileConfirmActivity"
171                  android:process="@string/process"
172                  android:excludeFromRecents="true"
173                  android:theme="@*android:style/Theme.Holo.Dialog.Alert"
174                  android:enabled="@bool/profile_supported_opp">
175        </activity>
176        <activity android:name=".opp.BluetoothOppTransferActivity"
177                  android:process="@string/process"
178                  android:excludeFromRecents="true"
179                  android:theme="@*android:style/Theme.Holo.Dialog.Alert"
180                  android:enabled="@bool/profile_supported_opp">
181        </activity>
182        <activity android:name=".opp.BluetoothOppLiveFolder"
183            android:process="@string/process"
184            android:icon="@drawable/ic_launcher_folder_bluetooth"
185            android:label="@string/btopp_live_folder"
186            android:enabled="@bool/profile_supported_opp">
187            <intent-filter>
188                <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
189                <category android:name="android.intent.category.DEFAULT" />
190            </intent-filter>
191        </activity>
192        <activity android:name=".opp.BluetoothOppTransferHistory"
193                  android:process="@string/process"
194                  android:label=""
195                  android:excludeFromRecents="true"
196                  android:configChanges="orientation|keyboardHidden"
197                  android:enabled="@bool/profile_supported_opp">
198        </activity>
199        <activity android:name=".pbap.BluetoothPbapActivity"
200            android:process="@string/process"
201            android:excludeFromRecents="true"
202            android:theme="@*android:style/Theme.Holo.Dialog.Alert"
203            android:enabled="@bool/profile_supported_pbap">
204            <intent-filter>
205                <category android:name="android.intent.category.DEFAULT" />
206            </intent-filter>
207        </activity>
208        <service
209            android:process="@string/process"
210            android:name=".pbap.BluetoothPbapService"
211            android:enabled="@bool/profile_supported_pbap" >
212            <intent-filter>
213                <action android:name="android.bluetooth.IBluetoothPbap" />
214            </intent-filter>
215        </service>
216        <receiver
217            android:process="@string/process"
218            android:exported="true"
219            android:name=".pbap.BluetoothPbapReceiver"
220            android:enabled="@bool/profile_supported_pbap">
221            <intent-filter>
222                <action android:name="android.bluetooth.adapter.action.STATE_CHANGED"/>
223                <action android:name="android.bluetooth.device.action.CONNECTION_ACCESS_REPLY" />
224                <category android:name="android.intent.category.DEFAULT" />
225            </intent-filter>
226        </receiver>
227        <service
228            android:process="@string/process"
229            android:name=".map.BluetoothMapService"
230            android:enabled="@bool/profile_supported_map" >
231            <intent-filter>
232                <action android:name="android.bluetooth.IBluetoothMap" />
233            </intent-filter>
234        </service>
235        <service
236            android:process="@string/process"
237            android:name = ".gatt.GattService"
238            android:enabled="@bool/profile_supported_gatt">
239            <intent-filter>
240                <action android:name="android.bluetooth.IBluetoothGatt" />
241            </intent-filter>
242        </service>
243        <service
244            android:process="@string/process"
245            android:name = ".hfp.HeadsetService"
246            android:enabled="@bool/profile_supported_hs_hfp">
247            <intent-filter>
248                <action android:name="android.bluetooth.IBluetoothHeadset" />
249            </intent-filter>
250        </service>
251        <service
252            android:process="@string/process"
253            android:name = ".a2dp.A2dpService"
254            android:enabled="@bool/profile_supported_a2dp">
255            <intent-filter>
256                <action android:name="android.bluetooth.IBluetoothA2dp" />
257            </intent-filter>
258        </service>
259        <service
260            android:process="@string/process"
261            android:name = ".hid.HidService"
262            android:enabled="@bool/profile_supported_hid">
263            <intent-filter>
264                <action android:name="android.bluetooth.IBluetoothInputDevice" />
265            </intent-filter>
266        </service>
267        <service
268            android:process="@string/process"
269            android:name = ".hdp.HealthService"
270            android:enabled="@bool/profile_supported_hdp">
271            <intent-filter>
272                <action android:name="android.bluetooth.IBluetoothHealth" />
273            </intent-filter>
274        </service>
275        <service
276            android:process="@string/process"
277            android:name = ".pan.PanService"
278            android:enabled="@bool/profile_supported_pan">
279            <intent-filter>
280                <action android:name="android.bluetooth.IBluetoothPan" />
281            </intent-filter>
282        </service>
283    </application>
284</manifest>
285