OSDN Git Service

Add ACCESS_COARSE_LOCATION to Bluetooth.
[android-x86/packages-apps-Bluetooth.git] / AndroidManifest.xml
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.ACCESS_COARSE_LOCATION" />
23     <uses-permission android:name="android.permission.INTERNET" />
24     <uses-permission android:name="android.permission.BLUETOOTH" />
25     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
26     <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
27     <uses-permission android:name="android.permission.BLUETOOTH_MAP" />
28     <uses-permission android:name="android.permission.WAKE_LOCK" />
29     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
30     <uses-permission android:name="android.permission.READ_CONTACTS" />
31     <!-- WRITE_CONTACTS is used for test cases only -->
32     <uses-permission android:name="android.permission.WRITE_CONTACTS" />
33     <uses-permission android:name="android.permission.READ_CALL_LOG" />
34     <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
35     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
36     <uses-permission android:name="android.permission.NFC_HANDOVER_STATUS" />
37     <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
38     <uses-permission android:name="android.permission.WRITE_APN_SETTINGS" />
39     <uses-permission android:name="android.permission.NET_ADMIN" />
40     <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
41     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
42     <uses-permission android:name="android.permission.NET_TUNNELING" />
43     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
44     <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
45     <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
46     <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
47     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
48     <uses-permission android:name="android.permission.BLUETOOTH_STACK" />
49     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
50     <uses-permission android:name="android.permission.MANAGE_USERS"/>
51     <uses-permission android:name="com.google.android.gallery3d.permission.GALLERY_PROVIDER"/>
52     <uses-permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER"/>
53     <uses-permission android:name="android.permission.RECEIVE_SMS" />
54     <uses-permission android:name="android.permission.SEND_SMS" />
55     <uses-permission android:name="android.permission.READ_SMS" />
56     <uses-permission android:name="android.permission.WRITE_SMS" />
57     <uses-permission android:name="android.permission.READ_CONTACTS" />
58     <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL" />
59     <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
60     <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
61     <uses-permission android:name="android.permission.VIBRATE" />
62     <uses-permission android:name="android.permission.DEVICE_POWER" />
63
64     <!-- For PBAP Owner Vcard Info -->
65     <uses-permission android:name="android.permission.READ_PROFILE"/>
66     <application
67         android:name=".btservice.AdapterApp"
68         android:icon="@mipmap/bt_share"
69         android:persistent="false"
70         android:label="@string/app_name"
71         android:supportsRtl="true"
72         android:usesCleartextTraffic="false">
73         <uses-library android:name="javax.obex" />
74         <provider android:name=".opp.BluetoothOppProvider"
75             android:authorities="com.android.bluetooth.opp"
76             android:exported="true"
77             android:process="@string/process">
78             <path-permission
79                     android:pathPrefix="/btopp"
80                     android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" />
81         </provider>
82         <service
83             android:process="@string/process"
84             android:name = ".btservice.AdapterService">
85             <intent-filter>
86                 <action android:name="android.bluetooth.IBluetooth" />
87             </intent-filter>
88         </service>
89         <service
90             android:process="@string/process"
91             android:name=".opp.BluetoothOppService"
92             android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"
93             android:enabled="@bool/profile_supported_opp"/>
94         <receiver
95             android:process="@string/process"
96             android:exported="true"
97             android:name=".opp.BluetoothOppReceiver"
98             android:enabled="@bool/profile_supported_opp">
99             <intent-filter>
100                 <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
101                 <!--action android:name="android.intent.action.BOOT_COMPLETED" /-->
102                 <action android:name="android.btopp.intent.action.OPEN_RECEIVED_FILES" />
103             </intent-filter>
104         </receiver>
105          <receiver
106             android:process="@string/process"
107             android:name=".opp.BluetoothOppHandoverReceiver"
108             android:permission="com.android.permission.WHITELIST_BLUETOOTH_DEVICE">
109             <intent-filter>
110                 <action android:name="android.btopp.intent.action.WHITELIST_DEVICE" />
111                 <action android:name="android.btopp.intent.action.STOP_HANDOVER_TRANSFER" />
112             </intent-filter>
113             <intent-filter>
114                 <action android:name="android.nfc.handover.intent.action.HANDOVER_SEND" />
115                 <category android:name="android.intent.category.DEFAULT" />
116                 <data android:mimeType="*/*" />
117             </intent-filter>
118             <intent-filter>
119                 <action android:name="android.nfc.handover.intent.action.HANDOVER_SEND_MULTIPLE" />
120                 <category android:name="android.intent.category.DEFAULT" />
121                 <data android:mimeType="*/*" />
122             </intent-filter>
123         </receiver>
124         <activity android:name=".opp.BluetoothOppLauncherActivity"
125             android:process="@string/process"
126             android:theme="@android:style/Theme.Material.Light.Dialog"
127             android:label="@string/bt_share_picker_label"
128             android:enabled="@bool/profile_supported_opp">
129             <intent-filter>
130                 <action android:name="android.intent.action.SEND" />
131                 <category android:name="android.intent.category.DEFAULT" />
132                 <data android:mimeType="image/*" />
133                 <data android:mimeType="video/*" />
134                 <data android:mimeType="audio/*" />
135                 <data android:mimeType="text/x-vcard" />
136                 <data android:mimeType="text/plain" />
137                 <data android:mimeType="text/html" />
138                 <data android:mimeType="text/xml" />
139                 <data android:mimeType="application/zip" />
140                 <data android:mimeType="application/vnd.ms-excel" />
141                 <data android:mimeType="application/msword" />
142                 <data android:mimeType="application/vnd.ms-powerpoint" />
143                 <data android:mimeType="application/pdf" />
144                 <data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
145                 <data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
146                 <data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
147                 <data android:mimeType="application/x-hwp" />
148             </intent-filter>
149             <intent-filter>
150                 <action android:name="android.intent.action.SEND_MULTIPLE" />
151                 <category android:name="android.intent.category.DEFAULT" />
152                 <data android:mimeType="image/*" />
153                 <data android:mimeType="video/*" />
154                 <data android:mimeType="x-mixmedia/*" />
155                 <data android:mimeType="text/x-vcard" />
156             </intent-filter>
157             <intent-filter>
158                 <action android:name="android.btopp.intent.action.OPEN" />
159                 <category android:name="android.intent.category.DEFAULT" />
160                 <data android:mimeType="vnd.android.cursor.item/vnd.android.btopp" />
161             </intent-filter>
162         </activity>
163         <activity android:name=".opp.BluetoothOppBtEnableActivity"
164                   android:process="@string/process"
165                   android:excludeFromRecents="true"
166                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
167                   android:enabled="@bool/profile_supported_opp">
168         </activity>
169         <activity android:name=".opp.BluetoothOppBtErrorActivity"
170                   android:process="@string/process"
171                   android:excludeFromRecents="true"
172                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert">
173         </activity>
174         <activity android:name=".opp.BluetoothOppBtEnablingActivity"
175                   android:process="@string/process"
176                   android:excludeFromRecents="true"
177                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
178                   android:enabled="@bool/profile_supported_opp">
179         </activity>
180         <activity android:name=".opp.BluetoothOppIncomingFileConfirmActivity"
181                   android:process="@string/process"
182                   android:excludeFromRecents="true"
183                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
184                   android:enabled="@bool/profile_supported_opp">
185         </activity>
186         <activity android:name=".opp.BluetoothOppTransferActivity"
187                   android:process="@string/process"
188                   android:excludeFromRecents="true"
189                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
190                   android:enabled="@bool/profile_supported_opp">
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.Material.Light.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                 <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED" />
225                 <category android:name="android.intent.category.DEFAULT" />
226             </intent-filter>
227         </receiver>
228         <service
229             android:process="@string/process"
230             android:name=".map.BluetoothMapService"
231             android:enabled="@bool/profile_supported_map" >
232             <intent-filter>
233                 <action android:name="android.bluetooth.IBluetoothMap" />
234                 <action android:name="android.btmap.intent.action.SHOW_MAPS_SETTINGS" />
235                 <action android:name="com.android.bluetooth.map.USER_CONFIRM_TIMEOUT"/>
236             </intent-filter>
237         </service>
238          <activity android:name=".map.BluetoothMapSettings"
239                   android:process="@string/process"
240                   android:label="@string/bluetooth_map_settings_title"
241                   android:excludeFromRecents="true"
242                   android:configChanges="orientation|keyboardHidden"
243                   android:enabled="@bool/profile_supported_map">
244         </activity>
245         <provider android:name=".map.MmsFileProvider"
246                   android:authorities="com.android.bluetooth.map.MmsFileProvider"
247                   android:enabled="true"
248                   android:grantUriPermissions="true"
249                   android:exported="false">
250         </provider>
251         <service
252             android:process="@string/process"
253             android:name=".sap.SapService"
254             android:enabled="@bool/profile_supported_sap" >
255             <intent-filter>
256                 <action android:name="android.bluetooth.IBluetoothSap" />
257             </intent-filter>
258         </service>
259         <service
260             android:process="@string/process"
261             android:name = ".gatt.GattService"
262             android:enabled="@bool/profile_supported_gatt">
263             <intent-filter>
264                 <action android:name="android.bluetooth.IBluetoothGatt" />
265             </intent-filter>
266         </service>
267         <service
268             android:process="@string/process"
269             android:name = ".hfp.HeadsetService"
270             android:enabled="@bool/profile_supported_hs_hfp">
271             <intent-filter>
272                 <action android:name="android.bluetooth.IBluetoothHeadset" />
273             </intent-filter>
274         </service>
275         <service
276             android:process="@string/process"
277             android:name = ".a2dp.A2dpService"
278             android:enabled="@bool/profile_supported_a2dp">
279             <intent-filter>
280                 <action android:name="android.bluetooth.IBluetoothA2dp" />
281             </intent-filter>
282         </service>
283         <service
284             android:process="@string/process"
285             android:name = ".a2dp.A2dpSinkService"
286             android:enabled="@bool/profile_supported_a2dp_sink">
287             <intent-filter>
288                 <action android:name="android.bluetooth.IBluetoothA2dpSink" />
289             </intent-filter>
290         </service>
291         <service
292             android:process="@string/process"
293             android:name = ".avrcp.AvrcpControllerService"
294             android:enabled="@bool/profile_supported_avrcp_controller">
295             <intent-filter>
296                 <action android:name="android.bluetooth.IBluetoothAvrcpController" />
297             </intent-filter>
298         </service>
299         <service
300             android:process="@string/process"
301             android:name = ".hid.HidService"
302             android:enabled="@bool/profile_supported_hid">
303             <intent-filter>
304                 <action android:name="android.bluetooth.IBluetoothInputDevice" />
305             </intent-filter>
306         </service>
307         <service
308             android:process="@string/process"
309             android:name = ".hdp.HealthService"
310             android:enabled="@bool/profile_supported_hdp">
311             <intent-filter>
312                 <action android:name="android.bluetooth.IBluetoothHealth" />
313             </intent-filter>
314         </service>
315         <service
316             android:process="@string/process"
317             android:name = ".pan.PanService"
318             android:enabled="@bool/profile_supported_pan">
319             <intent-filter>
320                 <action android:name="android.bluetooth.IBluetoothPan" />
321             </intent-filter>
322         </service>
323     <service
324             android:process="@string/process"
325             android:name = ".hfpclient.HeadsetClientService"
326             android:enabled="@bool/profile_supported_hfpclient">
327             <intent-filter>
328                 <action android:name="android.bluetooth.IBluetoothHeadsetClient" />
329             </intent-filter>
330         </service>
331     </application>
332 </manifest>