1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright 2020 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19     package="android.quickaccesswallet.cts"
20     android:targetSandboxVersion="2">
21
22    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
23    <!-- Required for HostApduService -->
24    <uses-permission android:name="android.permission.NFC"/>
25    <!-- Required to test QuickAccessWalletClient feature availability -->
26    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
27
28    <application android:testOnly="true">
29        <uses-library android:name="android.test.runner"/>
30        <activity android:name="android.quickaccesswallet.QuickAccessWalletActivity"
31             android:exported="true">
32            <intent-filter>
33                <action android:name="android.intent.action.MAIN"/>
34                <category android:name="android.intent.category.LAUNCHER"/>
35            </intent-filter>
36        </activity>
37
38        <activity android:name="android.quickaccesswallet.QuickAccessWalletSettingsActivity"
39             android:exported="true">
40            <intent-filter>
41                <action android:name="android.service.quickaccesswallet.action.VIEW_WALLET_SETTINGS"/>
42                <category android:name="android.intent.category.DEFAULT"/>
43            </intent-filter>
44        </activity>
45
46        <service android:name="android.quickaccesswallet.TestHostApduService"
47             android:exported="true"
48             android:permission="android.permission.BIND_NFC_SERVICE"
49             android:label="@string/app_name">
50            <intent-filter>
51                <action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE"/>
52                <category android:name="android.intent.category.DEFAULT"/>
53            </intent-filter>
54            <meta-data android:name="android.nfc.cardemulation.host_apdu_service"
55                 android:resource="@xml/hce_aids"/>
56        </service>
57
58        <service android:name="android.quickaccesswallet.TestQuickAccessWalletService"
59             android:enabled="true"
60             android:label="@string/app_name"
61             android:icon="@drawable/android"
62             android:permission="android.permission.BIND_QUICK_ACCESS_WALLET_SERVICE"
63             android:exported="true">
64            <intent-filter>
65                <action android:name="android.service.quickaccesswallet.QuickAccessWalletService"/>
66                <category android:name="android.intent.category.DEFAULT"/>
67            </intent-filter>
68            <meta-data android:name="android.quickaccesswallet"
69                 android:resource="@xml/quickaccesswallet_configuration"/>;
70        </service>
71
72        <service android:name="android.quickaccesswallet.NoPermissionQuickAccessWalletService"
73             android:enabled="false"
74             android:label="@string/app_name"
75             android:icon="@drawable/android"
76             android:exported="true">
77            <intent-filter>
78                <action android:name="android.service.quickaccesswallet.QuickAccessWalletService"/>
79                <category android:name="android.intent.category.DEFAULT"/>
80            </intent-filter>
81            <meta-data android:name="android.quickaccesswallet"
82                 android:resource="@xml/quickaccesswallet_configuration"/>;
83        </service>
84    </application>
85
86    <!--  self-instrumenting test package. -->
87    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
88         android:label="Quick Access Wallet tests"
89         android:targetPackage="android.quickaccesswallet.cts">
90    </instrumentation>
91</manifest>
92