1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 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
19        xmlns:android="http://schemas.android.com/apk/res/android"
20        xmlns:tools="http://schemas.android.com/tools"
21        package="com.android.adservices.tests.ui">
22
23    <!-- New permission introduced in T+ devices needed to show notifications. -->
24    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
25
26    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
27    <!--acts as an application that uses adservices in order for PPAPI to be enabled and notification to be displayed-->
28    <uses-permission android:name="android.permission.ACCESS_ADSERVICES_TOPICS" />
29
30    <!-- Permissions required for reading device configs -->
31    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
32
33    <application android:debuggable="true">
34        <activity
35                android:name="com.android.adservices.ui.notifications.ConsentNotificationActivity"
36                android:exported="true"
37                android:theme="@style/AdServices.NotificationTheme">
38            <intent-filter>
39                <action android:name="android.test.adservices.ui.NOTIFICATIONS" />
40                <category android:name="android.intent.category.DEFAULT" />
41            </intent-filter>
42        </activity>
43
44        <activity
45            android:name="com.android.adservices.ui.settings.activities.AdServicesSettingsMainActivity"
46            android:exported="true"
47            android:theme="@style/Theme.SubSettingsBase">
48            <intent-filter android:priority="1">
49                <action android:name="android.test.adservices.ui.MAIN" />
50                <category android:name="android.intent.category.DEFAULT" />
51            </intent-filter>
52        </activity>
53
54        <!-- Activity for the apps view of Adservices Settings UI-->
55        <activity
56            android:name="com.android.adservices.ui.settings.activities.AppsActivity"
57            android:exported="true"
58            android:theme="@style/Theme.SubSettingsBase">
59            <intent-filter android:priority="1">
60                <action android:name="android.test.adservices.ui.APPS" />
61                <category android:name="android.intent.category.DEFAULT" />
62            </intent-filter>
63        </activity>
64    </application>
65
66    <instrumentation
67            android:name="androidx.test.runner.AndroidJUnitRunner"
68            android:label="AdServices UI Test Cases"
69            android:targetPackage="com.android.adservices.tests.ui" />
70</manifest>
71