1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (c) 2017 Google Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20    package="com.android.companiondevicemanager">
21
22    <permission
23        android:name="com.android.companiondevicemanager.permission.BIND"
24        android:protectionLevel="signature" />
25
26    <uses-permission android:name="android.permission.BLUETOOTH"/>
27    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
28    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
29    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
30    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
31    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
32    <uses-permission android:name="android.permission.RADIO_SCAN_WITHOUT_LOCATION"/>
33    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
34
35    <application
36        android:allowClearUserData="true"
37        android:label="@string/app_label"
38        android:allowBackup="false"
39        android:forceQueryable="true"
40        android:supportsRtl="true">
41
42        <service
43            android:name=".DeviceDiscoveryService"
44            android:permission="android.permission.BIND_COMPANION_DEVICE_MANAGER_SERVICE"
45            android:exported="true">
46        </service>
47
48        <activity
49            android:name=".DeviceChooserActivity"
50            android:theme="@style/ChooserActivity"
51            android:permission="android.permission.BIND_COMPANION_DEVICE_MANAGER_SERVICE">
52            <!--TODO include url scheme filter similar to PrintSpooler -->
53            <intent-filter>
54                <action android:name="android.companiondevice.START_DISCOVERY" />
55                <category android:name="android.intent.category.DEFAULT" />
56            </intent-filter>
57        </activity>
58
59    </application>
60
61</manifest>
62