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 17<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.android.apps.tag" 19 android:versionCode="101" 20 android:versionName="1.1" 21> 22 23 <uses-permission android:name="android.permission.CALL_PHONE" /> 24 <uses-permission android:name="android.permission.NFC" /> 25 <uses-permission android:name="android.permission.READ_CONTACTS"/> 26 <uses-permission android:name="android.permission.WAKE_LOCK" /> 27 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 28 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> 29 30 <uses-feature android:name="android.hardware.nfc" required="true" /> 31 32 <application 33 android:icon="@drawable/ic_launcher_nfc" 34 android:label="@string/app_name" 35 > 36 <activity android:name="TagViewer" 37 android:label="@string/title_scanned_tag" 38 android:launchMode="singleTop" 39 android:priority="-10" 40 android:exported="true" 41 android:permission="android.permission.NFC" 42 > 43 <!-- Offer to display anything with NDEF data --> 44 <intent-filter> 45 <action android:name="android.nfc.action.TECH_DISCOVERED"/> 46 </intent-filter> 47 48 <meta-data android:name="android.nfc.action.TECH_DISCOVERED" 49 android:resource="@xml/filter_nfc" 50 /> 51 52 <intent-filter> 53 <action android:name="android.intent.action.VIEW"/> 54 <data android:mimeType="vnd.android.cursor.item/ndef_msg"/> 55 <category android:name="android.intent.category.DEFAULT"/> 56 </intent-filter> 57 </activity> 58 <!-- Declare file provider to convert file:/// to content:// for file preview --> 59 <provider 60 android:name="androidx.core.content.FileProvider" 61 android:authorities="com.android.apps.tag.provider" 62 android:exported="false" 63 android:grantUriPermissions="true"> 64 <meta-data 65 android:name="android.support.FILE_PROVIDER_PATHS" 66 android:resource="@xml/provider_paths"/> 67 </provider> 68 </application> 69</manifest> 70