1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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<manifest xmlns:android="http://schemas.android.com/apk/res/android"
17        package="com.android.nfc"
18        android:sharedUserId="android.uid.nfc"
19        android:sharedUserLabel="@string/nfcUserLabel"
20>
21    <uses-permission android:name="android.permission.BLUETOOTH" />
22    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
23    <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
24    <uses-permission android:name="android.permission.NFC" />
25    <uses-permission android:name="android.permission.BIND_NFC_SERVICE" />
26    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
27    <uses-permission android:name="android.permission.STATUS_BAR" />
28    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
29    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
30    <uses-permission android:name="android.permission.WAKE_LOCK" />
31    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
32    <uses-permission android:name="android.permission.MASTER_CLEAR" />
33    <uses-permission android:name="android.permission.REAL_GET_TASKS" />
34    <uses-permission android:name="android.permission.READ_PROFILE" />
35    <uses-permission android:name="android.permission.READ_CONTACTS" />
36    <uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
37    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
38    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
39    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
40    <uses-permission android:name="android.permission.VIBRATE" />
41    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
42    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
43    <uses-permission android:name="android.permission.INTERNET" />
44    <uses-permission android:name="android.permission.MANAGE_USERS" />
45    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
46    <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" />
47    <uses-permission android:name="android.permission.NFC_HANDOVER_STATUS" />
48    <uses-permission android:name="android.permission.LOCAL_MAC_ADDRESS" />
49    <uses-permission android:name="com.android.permission.WHITELIST_BLUETOOTH_DEVICE" />
50    <uses-permission android:name="android.permission.DISPATCH_NFC_MESSAGE" />
51    <uses-permission android:name="android.permission.OVERRIDE_WIFI_CONFIG" />
52    <uses-permission android:name="android.permission.DEVICE_POWER" />
53    <uses-permission android:name="android.permission.ACCESS_VR_MANAGER"/>
54    <uses-permission android:name="android.permission.USER_ACTIVITY" />
55    <uses-permission android:name="android.permission.BIND_RESOLVER_RANKER_SERVICE" />
56    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
57    <uses-permission android:name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
58    <uses-permission android:name="android.permission.NETWORK_SETTINGS" />
59    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
60    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
61
62    <application android:name=".NfcApplication"
63                 android:icon="@drawable/icon"
64                 android:label="@string/app_name"
65                 android:theme="@android:style/Theme.Material.Light"
66                 android:persistent="true"
67                 android:persistentWhenFeatureAvailable="android.hardware.nfc.any"
68                 android:backupAgent="com.android.nfc.NfcBackupAgent"
69                 android:killAfterRestore="false"
70                 android:usesCleartextTraffic="false"
71                 android:supportsRtl="true"
72                 android:hardwareAccelerated="false"
73    >
74        <meta-data android:name="com.google.android.backup.api_key"
75            android:value="AEdPqrEAAAAIbiKKs0wlimxeJ9y8iRIaBOH6aeb2IurmZyBHvg" />
76
77        <provider android:name="androidx.core.content.FileProvider"
78            android:authorities="com.google.android.nfc.fileprovider"
79            android:grantUriPermissions="true"
80            android:exported="false">
81            <meta-data
82                android:name="android.support.FILE_PROVIDER_PATHS"
83                android:resource="@xml/file_paths" />
84        </provider>
85
86        <activity android:name=".TechListChooserActivity"
87            android:theme="@*android:style/Theme.Dialog.Alert"
88            android:finishOnCloseSystemDialogs="true"
89            android:excludeFromRecents="true"
90            android:multiprocess="true"
91        />
92
93        <activity android:name=".cardemulation.AppChooserActivity"
94            android:finishOnCloseSystemDialogs="true"
95            android:excludeFromRecents="true"
96            android:clearTaskOnLaunch="true"
97            android:multiprocess="true"
98        />
99
100        <activity android:name=".cardemulation.TapAgainDialog"
101            android:finishOnCloseSystemDialogs="true"
102            android:excludeFromRecents="true"
103            android:clearTaskOnLaunch="true"
104            android:multiprocess="true"
105        />
106        <activity android:name=".NfcRootActivity"
107            android:theme="@*android:style/Theme.Translucent.NoTitleBar"
108            android:excludeFromRecents="true"
109            android:noHistory="true"
110        />
111        <activity android:name=".handover.ConfirmConnectActivity"
112            android:finishOnCloseSystemDialogs="true"
113            android:excludeFromRecents="true"
114            android:theme="@android:style/Theme.Translucent.NoTitleBar"
115            android:noHistory="true"
116            android:configChanges="orientation|keyboardHidden|screenSize"
117        />
118
119        <activity android:name=".NfcBlockedNotification"
120            android:finishOnCloseSystemDialogs="true"
121            android:excludeFromRecents="true"
122            android:theme="@android:style/Theme.Translucent.NoTitleBar"
123            android:noHistory="true"
124            android:configChanges="orientation|keyboardHidden|screenSize"
125        />
126
127        <activity android:name=".BeamShareActivity"
128            android:finishOnCloseSystemDialogs="true"
129            android:theme="@android:style/Theme.Translucent"
130            android:label="@string/android_beam"
131            android:noHistory="true"
132            android:exported="true"
133            android:excludeFromRecents="true">
134            <intent-filter>
135                <action android:name="android.intent.action.SEND" />
136                <category android:name="android.intent.category.DEFAULT" />
137                <data android:mimeType="*/*" />
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="*/*" />
143            </intent-filter>
144        </activity>
145        <activity android:name=".ConfirmConnectToWifiNetworkActivity"
146            android:finishOnCloseSystemDialogs="true"
147            android:excludeFromRecents="true"
148            android:theme="@android:style/Theme.Translucent.NoTitleBar"
149            android:noHistory="true"
150        />
151
152        <service android:name=".beam.BeamSendService"
153            android:process=":beam"
154        />
155        <service android:name=".beam.BeamReceiveService"
156            android:process=":beam"
157        />
158
159        <receiver android:name=".NfcBootCompletedReceiver"
160            android:exported="true">
161            <intent-filter>
162                <action android:name="android.intent.action.BOOT_COMPLETED" />
163            </intent-filter>
164        </receiver>
165
166        <service android:name=".handover.PeripheralHandoverService"
167        />
168    </application>
169</manifest>
170