1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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.google.android.cts.deviceowner">
19
20    <!-- TODO(b/176993670): needed by DevicePolicyManagerWrapper to send ordered broadcast from
21         current user to system user on devices running on headless system user mode. Should be
22         removed once tests are refactored to use the proper IPC between theses users.  -->
23    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
24
25    <application android:label="Privacy Settings for Device Owner CTS host side app"
26         android:testOnly="true">
27
28        <uses-library android:name="android.test.runner"/>
29
30        <activity android:name="com.google.android.cts.deviceowner.WorkPolicyInfoActivity"
31             android:exported="true"
32             android:launchMode="singleTask">
33            <intent-filter>
34                <category android:name="android.intent.category.DEFAULT"/>
35                <action android:name="android.settings.SHOW_WORK_POLICY_INFO"/>
36            </intent-filter>
37        </activity>
38
39        <receiver android:name="com.google.android.cts.deviceowner.DeviceOwnerTest$BasicAdminReceiver"
40             android:permission="android.permission.BIND_DEVICE_ADMIN"
41             android:exported="true">
42            <meta-data android:name="android.app.device_admin"
43                 android:resource="@xml/device_admin"/>
44            <intent-filter>
45                <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
46            </intent-filter>
47        </receiver>
48
49         <!--  TODO(b/176993670): remove if DpmWrapperManagerWrapper goes away -->
50        <receiver android:name="com.android.bedstead.dpmwrapper.TestAppCallbacksReceiver"
51             android:exported="true">
52        </receiver>
53    </application>
54
55    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
56         android:targetPackage="com.google.android.cts.deviceowner"
57         android:label="Privacy Settings for Device Owner CTS tests"/>
58</manifest>
59