1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<manifest
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tools="http://schemas.android.com/tools"
20    package="com.android.statementservice"
21    android:versionCode="1"
22    android:versionName="1.0">
23
24    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
25    <uses-permission android:name="android.permission.DOMAIN_VERIFICATION_AGENT"/>
26    <uses-permission android:name="android.permission.INTENT_FILTER_VERIFICATION_AGENT"/>
27    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
28    <uses-permission android:name="android.permission.INTERNET"/>
29    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
30    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
31    <uses-permission android:name="android.permission.UPDATE_DOMAIN_VERIFICATION_USER_SELECTION"/>
32
33    <application
34        android:label="@string/service_name"
35        android:allowBackup="false"
36        android:name=".StatementServiceApplication"
37        >
38
39        <receiver
40            android:name=".domain.BootCompletedReceiver"
41            android:exported="true">
42            <intent-filter>
43                <action android:name="android.intent.action.BOOT_COMPLETED"/>
44            </intent-filter>
45        </receiver>
46
47        <receiver
48            android:name=".domain.DomainVerificationReceiverV1"
49            android:permission="android.permission.BIND_INTENT_FILTER_VERIFIER"
50            android:exported="true"
51            >
52            <intent-filter android:priority="1">
53                <action android:name="android.intent.action.INTENT_FILTER_NEEDS_VERIFICATION"/>
54                <data android:mimeType="application/vnd.android.package-archive"/>
55            </intent-filter>
56        </receiver>
57
58        <!--
59            v2 receiver remains disabled assuming the device ships its own updated version.
60            If necessary, this can be enabled using shell.
61        -->
62        <receiver
63            android:name=".domain.DomainVerificationReceiverV2"
64            android:permission="android.permission.BIND_DOMAIN_VERIFICATION_AGENT"
65            android:directBootAware="true"
66            android:exported="true"
67            android:enabled="false"
68            >
69            <intent-filter android:priority="1">
70                <action android:name="android.intent.action.DOMAINS_NEED_VERIFICATION"/>
71            </intent-filter>
72        </receiver>
73    </application>
74
75</manifest>
76