1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2014 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.credentials.cts"
20          android:targetSandboxVersion="2">
21
22    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
23    <uses-permission android:name="android.permission.INJECT_EVENTS"/>
24    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
25    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
26    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
27    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
28    <uses-permission android:name="android.permission.CREDENTIAL_MANAGER_SET_ALLOWED_PROVIDERS"/>
29
30    <application>
31        <uses-library android:name="android.test.runner"/>
32        <activity android:name=".TestCredentialActivity"
33                  android:exported="false">
34        </activity>
35        <service
36            android:exported="true"
37            android:name="android.credentials.cts.CtsNoOpCredentialProviderService"
38            android:label="Test Provider Service"
39            android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE">
40            <intent-filter>
41                <action android:name="android.service.credentials.CredentialProviderService"/>
42            </intent-filter>
43            <meta-data
44                android:name="android.credentials.provider"
45                android:resource="@xml/provider"/>
46        </service>
47        <service
48            android:exported="true"
49            android:name="android.credentials.cts.CtsNoOpCredentialProviderAltService"
50            android:label="Test Provider Service Alternate"
51            android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE">
52            <intent-filter>
53                <action android:name="android.service.credentials.CredentialProviderService"/>
54            </intent-filter>
55            <meta-data
56                android:name="android.credentials.provider"
57                android:resource="@xml/password_only_provider"/>
58        </service>
59        <service
60            android:exported="true"
61            android:name="android.credentials.cts.CtsNoOpCredentialProviderSysService"
62            android:label="Test Provider Service System"
63            android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE">
64            <intent-filter>
65                <action android:name="android.service.credentials.system.CredentialProviderService"/>
66            </intent-filter>
67            <meta-data android:name="android.credentials.testsystemprovider" android:value="true" />
68            <meta-data
69                android:name="android.credentials.provider"
70                android:resource="@xml/passkey_only_provider"/>
71        </service>
72        <activity android:name="android.credentials.cts.ViewTestCtsActivity"
73                  android:enableOnBackInvokedCallback="false"
74                  android:screenOrientation="locked"
75                  android:label="ViewTestCtsActivity"
76                  android:exported="true">
77            <intent-filter>
78                <action android:name="android.intent.action.MAIN"/>
79                <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"/>
80            </intent-filter>
81        </activity>
82    </application>
83    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
84                     android:label="CTS tests for the Credential Manager Framework APIs."
85                     android:targetPackage="android.credentials.cts">
86    </instrumentation>
87</manifest>
88