1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2020 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20          xmlns:tools="http://schemas.android.com/tools"
21    package="com.android.captiveportallogin.tests">
22
23    <!-- Other permissions are inherited from the manifest of the app. But note that this test
24         cannot obtain all the app's permissions because some of them require being preinstalled or
25         having the MAINLINE_NETWORK_STACK permission. -->
26    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
27
28    <application>
29        <uses-library android:name="android.test.runner" />
30        <provider android:name="androidx.core.content.FileProvider"
31                  android:authorities="com.android.captiveportallogin.tests.fileprovider"
32                  android:exported="false"
33                  android:grantUriPermissions="true"
34                  tools:replace="android:authorities" >
35            <!-- Use the same relative file_paths resource as the real provider -->
36            <meta-data
37                android:name="android.support.FILE_PROVIDER_PATHS"
38                android:resource="@xml/file_paths"
39                tools:replace="android:resource" />
40        </provider>
41        <activity
42            android:name="com.android.captiveportallogin.CaptivePortalLoginActivityTest$InstrumentedCaptivePortalLoginActivity"/>
43        <activity android:name="com.android.captiveportallogin.DownloadServiceTest$RequestDismissKeyguardActivity"/>
44        <activity android:name="com.android.captiveportallogin.DownloadServiceTest$OpenTextFileActivity"
45                  android:exported="true" >
46            <intent-filter>
47                <action android:name="android.intent.action.VIEW" />
48                <category android:name="android.intent.category.DEFAULT" />
49                <data android:scheme="content" />
50                <data android:mimeType="text/vnd.captiveportallogin.testtxtfile" />
51                <data android:pathPattern=".*\\.testtxtfile" />
52            </intent-filter>
53        </activity>
54        <activity android:name="com.android.captiveportallogin.RequestDismissKeyguardActivity" />
55    </application>
56    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
57        android:targetPackage="com.android.captiveportallogin.tests"
58        android:label="Captive portal login tests">
59    </instrumentation>
60</manifest>
61