OSDN Git Service

Legacy foreground apps should continue getting scan results
[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     <uses-permission android:name="android.permission.REAL_GET_TASKS" />
64
65     <!-- For PBAP Owner Vcard Info -->
66     <uses-permission android:name="android.permission.READ_PROFILE"/>
67     <application
68         android:name=".btservice.AdapterApp"
69         android:icon="@mipmap/bt_share"
70         android:persistent="false"
71         android:label="@string/app_name"
72         android:supportsRtl="true"
73         android:usesCleartextTraffic="false">
74         <uses-library android:name="javax.obex" />
75         <provider android:name=".opp.BluetoothOppProvider"
76             android:authorities="com.android.bluetooth.opp"
77             android:exported="true"
78             android:process="@string/process">
79             <path-permission
80                     android:pathPrefix="/btopp"
81                     android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" />
82         </provider>
83         <service
84             android:process="@string/process"
85             android:name = ".btservice.AdapterService">
86             <intent-filter>
87                 <action android:name="android.bluetooth.IBluetooth" />
88             </intent-filter>
89         </service>
90         <service
91             android:process="@string/process"
92             android:name=".opp.BluetoothOppService"
93             android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"
94             android:enabled="@bool/profile_supported_opp"/>
95         <receiver
96             android:process="@string/process"
97             android:exported="true"
98             android:name=".opp.BluetoothOppReceiver"
99             android:enabled="@bool/profile_supported_opp">
100             <intent-filter>
101                 <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
102                 <!--action android:name="android.intent.action.BOOT_COMPLETED" /-->
103                 <action android:name="android.btopp.intent.action.OPEN_RECEIVED_FILES" />
104             </intent-filter>
105         </receiver>
106          <receiver
107             android:process="@string/process"
108             android:name=".opp.BluetoothOppHandoverReceiver"
109             android:permission="com.android.permission.WHITELIST_BLUETOOTH_DEVICE">
110             <intent-filter>
111                 <action android:name="android.btopp.intent.action.WHITELIST_DEVICE" />
112                 <action android:name="android.btopp.intent.action.STOP_HANDOVER_TRANSFER" />
113             </intent-filter>
114             <intent-filter>
115                 <action android:name="android.nfc.handover.intent.action.HANDOVER_SEND" />
116                 <category android:name="android.intent.category.DEFAULT" />
117                 <data android:mimeType="*/*" />
118             </intent-filter>
119             <intent-filter>
120                 <action android:name="android.nfc.handover.intent.action.HANDOVER_SEND_MULTIPLE" />
121                 <category android:name="android.intent.category.DEFAULT" />
122                 <data android:mimeType="*/*" />
123             </intent-filter>
124         </receiver>
125         <activity android:name=".opp.BluetoothOppLauncherActivity"
126             android:process="@string/process"
127             android:theme="@android:style/Theme.Material.Light.Dialog"
128             android:label="@string/bt_share_picker_label"
129             android:enabled="@bool/profile_supported_opp">
130             <intent-filter>
131                 <action android:name="android.intent.action.SEND" />
132                 <category android:name="android.intent.category.DEFAULT" />
133                 <data android:mimeType="image/*" />
134                 <data android:mimeType="video/*" />
135                 <data android:mimeType="audio/*" />
136                 <data android:mimeType="text/x-vcard" />
137                 <data android:mimeType="text/plain" />
138                 <data android:mimeType="text/html" />
139                 <data android:mimeType="text/xml" />
140                 <data android:mimeType="application/zip" />
141                 <data android:mimeType="application/vnd.ms-excel" />
142                 <data android:mimeType="application/msword" />
143                 <data android:mimeType="application/vnd.ms-powerpoint" />
144                 <data android:mimeType="application/pdf" />
145                 <data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
146                 <data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
147                 <data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
148                 <data android:mimeType="application/x-hwp" />
149             </intent-filter>
150             <intent-filter>
151                 <action android:name="android.intent.action.SEND_MULTIPLE" />
152                 <category android:name="android.intent.category.DEFAULT" />
153                 <data android:mimeType="image/*" />
154                 <data android:mimeType="video/*" />
155                 <data android:mimeType="x-mixmedia/*" />
156                 <data android:mimeType="text/x-vcard" />
157             </intent-filter>
158             <intent-filter>
159                 <action android:name="android.btopp.intent.action.OPEN" />
160                 <category android:name="android.intent.category.DEFAULT" />
161                 <data android:mimeType="vnd.android.cursor.item/vnd.android.btopp" />
162             </intent-filter>
163         </activity>
164         <activity android:name=".opp.BluetoothOppBtEnableActivity"
165                   android:process="@string/process"
166                   android:excludeFromRecents="true"
167                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
168                   android:enabled="@bool/profile_supported_opp">
169         </activity>
170         <activity android:name=".opp.BluetoothOppBtErrorActivity"
171                   android:process="@string/process"
172                   android:excludeFromRecents="true"
173                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert">
174         </activity>
175         <activity android:name=".opp.BluetoothOppBtEnablingActivity"
176                   android:process="@string/process"
177                   android:excludeFromRecents="true"
178                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
179                   android:enabled="@bool/profile_supported_opp">
180         </activity>
181         <activity android:name=".opp.BluetoothOppIncomingFileConfirmActivity"
182                   android:process="@string/process"
183                   android:excludeFromRecents="true"
184                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
185                   android:enabled="@bool/profile_supported_opp">
186         </activity>
187         <activity android:name=".opp.BluetoothOppTransferActivity"
188                   android:process="@string/process"
189                   android:excludeFromRecents="true"
190                   android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
191                   android:enabled="@bool/profile_supported_opp">
192         </activity>
193         <activity android:name=".opp.BluetoothOppTransferHistory"
194                   android:process="@string/process"
195                   android:label=""
196                   android:excludeFromRecents="true"
197                   android:configChanges="orientation|keyboardHidden"
198                   android:enabled="@bool/profile_supported_opp">
199         </activity>
200         <activity android:name=".pbap.BluetoothPbapActivity"
201             android:process="@string/process"
202             android:excludeFromRecents="true"
203             android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
204             android:enabled="@bool/profile_supported_pbap">
205             <intent-filter>
206                 <category android:name="android.intent.category.DEFAULT" />
207             </intent-filter>
208         </activity>
209         <service
210             android:process="@string/process"
211             android:name=".pbap.BluetoothPbapService"
212             android:enabled="@bool/profile_supported_pbap" >
213             <intent-filter>
214                 <action android:name="android.bluetooth.IBluetoothPbap" />
215             </intent-filter>
216         </service>
217         <receiver
218             android:process="@string/process"
219             android:exported="true"
220             android:name=".pbap.BluetoothPbapReceiver"
221             android:enabled="@bool/profile_supported_pbap">
222             <intent-filter>
223                 <action android:name="android.bluetooth.adapter.action.STATE_CHANGED"/>
224                 <action android:name="android.bluetooth.device.action.CONNECTION_ACCESS_REPLY" />
225                 <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED" />
226                 <category android:name="android.intent.category.DEFAULT" />
227             </intent-filter>
228         </receiver>
229         <service
230             android:process="@string/process"
231             android:name=".map.BluetoothMapService"
232             android:enabled="@bool/profile_supported_map" >
233             <intent-filter>
234                 <action android:name="android.bluetooth.IBluetoothMap" />
235                 <action android:name="android.btmap.intent.action.SHOW_MAPS_SETTINGS" />
236                 <action android:name="com.android.bluetooth.map.USER_CONFIRM_TIMEOUT"/>
237             </intent-filter>
238         </service>
239          <activity android:name=".map.BluetoothMapSettings"
240                   android:process="@string/process"
241                   android:label="@string/bluetooth_map_settings_title"
242                   android:excludeFromRecents="true"
243                   android:configChanges="orientation|keyboardHidden"
244                   android:enabled="@bool/profile_supported_map">
245         </activity>
246         <provider android:name=".map.MmsFileProvider"
247                   android:authorities="com.android.bluetooth.map.MmsFileProvider"
248                   android:enabled="true"
249                   android:grantUriPermissions="true"
250                   android:exported="false">
251         </provider>
252         <service
253             android:process="@string/process"
254             android:name=".sap.SapService"
255             android:enabled="@bool/profile_supported_sap" >
256             <intent-filter>
257                 <action android:name="android.bluetooth.IBluetoothSap" />
258             </intent-filter>
259         </service>
260         <service
261             android:process="@string/process"
262             android:name = ".gatt.GattService"
263             android:enabled="@bool/profile_supported_gatt">
264             <intent-filter>
265                 <action android:name="android.bluetooth.IBluetoothGatt" />
266             </intent-filter>
267         </service>
268         <service
269             android:process="@string/process"
270             android:name = ".hfp.HeadsetService"
271             android:enabled="@bool/profile_supported_hs_hfp">
272             <intent-filter>
273                 <action android:name="android.bluetooth.IBluetoothHeadset" />
274             </intent-filter>
275         </service>
276         <service
277             android:process="@string/process"
278             android:name = ".a2dp.A2dpService"
279             android:enabled="@bool/profile_supported_a2dp">
280             <intent-filter>
281                 <action android:name="android.bluetooth.IBluetoothA2dp" />
282             </intent-filter>
283         </service>
284         <service
285             android:process="@string/process"
286             android:name = ".a2dp.A2dpSinkService"
287             android:enabled="@bool/profile_supported_a2dp_sink">
288             <intent-filter>
289                 <action android:name="android.bluetooth.IBluetoothA2dpSink" />
290             </intent-filter>
291         </service>
292         <service
293             android:process="@string/process"
294             android:name = ".avrcp.AvrcpControllerService"
295             android:enabled="@bool/profile_supported_avrcp_controller">
296             <intent-filter>
297                 <action android:name="android.bluetooth.IBluetoothAvrcpController" />
298             </intent-filter>
299         </service>
300         <service
301             android:process="@string/process"
302             android:name = ".hid.HidService"
303             android:enabled="@bool/profile_supported_hid">
304             <intent-filter>
305                 <action android:name="android.bluetooth.IBluetoothInputDevice" />
306             </intent-filter>
307         </service>
308         <service
309             android:process="@string/process"
310             android:name = ".hdp.HealthService"
311             android:enabled="@bool/profile_supported_hdp">
312             <intent-filter>
313                 <action android:name="android.bluetooth.IBluetoothHealth" />
314             </intent-filter>
315         </service>
316         <service
317             android:process="@string/process"
318             android:name = ".pan.PanService"
319             android:enabled="@bool/profile_supported_pan">
320             <intent-filter>
321                 <action android:name="android.bluetooth.IBluetoothPan" />
322             </intent-filter>
323         </service>
324     <service
325             android:process="@string/process"
326             android:name = ".hfpclient.HeadsetClientService"
327             android:enabled="@bool/profile_supported_hfpclient">
328             <intent-filter>
329                 <action android:name="android.bluetooth.IBluetoothHeadsetClient" />
330             </intent-filter>
331         </service>
332     </application>
333 </manifest>