xref: /aosp_15_r20/cts/hostsidetests/settings/app/DeviceOwnerApp/AndroidManifest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1*b7c941bbSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*b7c941bbSAndroid Build Coastguard Worker<!-- Copyright (C) 2019 The Android Open Source Project
3*b7c941bbSAndroid Build Coastguard Worker
4*b7c941bbSAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
5*b7c941bbSAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
6*b7c941bbSAndroid Build Coastguard Worker     You may obtain a copy of the License at
7*b7c941bbSAndroid Build Coastguard Worker
8*b7c941bbSAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
9*b7c941bbSAndroid Build Coastguard Worker
10*b7c941bbSAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
11*b7c941bbSAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
12*b7c941bbSAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*b7c941bbSAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
14*b7c941bbSAndroid Build Coastguard Worker     limitations under the License.
15*b7c941bbSAndroid Build Coastguard Worker-->
16*b7c941bbSAndroid Build Coastguard Worker
17*b7c941bbSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18*b7c941bbSAndroid Build Coastguard Worker     package="com.google.android.cts.deviceowner">
19*b7c941bbSAndroid Build Coastguard Worker
20*b7c941bbSAndroid Build Coastguard Worker    <!-- TODO(b/176993670): needed by DevicePolicyManagerWrapper to send ordered broadcast from
21*b7c941bbSAndroid Build Coastguard Worker         current user to system user on devices running on headless system user mode. Should be
22*b7c941bbSAndroid Build Coastguard Worker         removed once tests are refactored to use the proper IPC between theses users.  -->
23*b7c941bbSAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
24*b7c941bbSAndroid Build Coastguard Worker
25*b7c941bbSAndroid Build Coastguard Worker    <application android:label="Privacy Settings for Device Owner CTS host side app"
26*b7c941bbSAndroid Build Coastguard Worker         android:testOnly="true">
27*b7c941bbSAndroid Build Coastguard Worker
28*b7c941bbSAndroid Build Coastguard Worker        <uses-library android:name="android.test.runner"/>
29*b7c941bbSAndroid Build Coastguard Worker
30*b7c941bbSAndroid Build Coastguard Worker        <activity android:name="com.google.android.cts.deviceowner.WorkPolicyInfoActivity"
31*b7c941bbSAndroid Build Coastguard Worker             android:exported="true"
32*b7c941bbSAndroid Build Coastguard Worker             android:launchMode="singleTask">
33*b7c941bbSAndroid Build Coastguard Worker            <intent-filter>
34*b7c941bbSAndroid Build Coastguard Worker                <category android:name="android.intent.category.DEFAULT"/>
35*b7c941bbSAndroid Build Coastguard Worker                <action android:name="android.settings.SHOW_WORK_POLICY_INFO"/>
36*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
37*b7c941bbSAndroid Build Coastguard Worker        </activity>
38*b7c941bbSAndroid Build Coastguard Worker
39*b7c941bbSAndroid Build Coastguard Worker        <receiver android:name="com.google.android.cts.deviceowner.DeviceOwnerTest$BasicAdminReceiver"
40*b7c941bbSAndroid Build Coastguard Worker             android:permission="android.permission.BIND_DEVICE_ADMIN"
41*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
42*b7c941bbSAndroid Build Coastguard Worker            <meta-data android:name="android.app.device_admin"
43*b7c941bbSAndroid Build Coastguard Worker                 android:resource="@xml/device_admin"/>
44*b7c941bbSAndroid Build Coastguard Worker            <intent-filter>
45*b7c941bbSAndroid Build Coastguard Worker                <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
46*b7c941bbSAndroid Build Coastguard Worker                 <!--  TODO(b/176993670): remove if DpmWrapperManagerWrapper goes away -->
47*b7c941bbSAndroid Build Coastguard Worker                <action android:name="com.android.bedstead.dpmwrapper.action.WRAPPED_MANAGER_CALL"/>
48*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
49*b7c941bbSAndroid Build Coastguard Worker        </receiver>
50*b7c941bbSAndroid Build Coastguard Worker
51*b7c941bbSAndroid Build Coastguard Worker         <!--  TODO(b/176993670): remove if DpmWrapperManagerWrapper goes away -->
52*b7c941bbSAndroid Build Coastguard Worker        <receiver android:name="com.android.bedstead.dpmwrapper.TestAppCallbacksReceiver"
53*b7c941bbSAndroid Build Coastguard Worker             android:exported="true">
54*b7c941bbSAndroid Build Coastguard Worker        </receiver>
55*b7c941bbSAndroid Build Coastguard Worker    </application>
56*b7c941bbSAndroid Build Coastguard Worker
57*b7c941bbSAndroid Build Coastguard Worker    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
58*b7c941bbSAndroid Build Coastguard Worker         android:targetPackage="com.google.android.cts.deviceowner"
59*b7c941bbSAndroid Build Coastguard Worker         android:label="Privacy Settings for Device Owner CTS tests"/>
60*b7c941bbSAndroid Build Coastguard Worker</manifest>
61