1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- 4 ~ Copyright (C) 2021 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 package="com.android.cts.RemoteDPCHeadlessDOSingleUser" android:targetSandboxVersion="2"> 21 <application 22 android:label="HeadlessDOSingleUser" 23 android:appComponentFactory="com.android.bedstead.testapp.TestAppAppComponentFactory" 24 android:testOnly="true"> 25 26 <!-- Don't allow this test app to be returned by queries unless filtered by package name --> 27 <meta-data android:name="testapp-package-query-only" android:value="true" /> 28 29 <meta-data android:name="headless_do_single_user" android:value="true"/> 30 31 <receiver android:name="com.android.bedstead.testapp.BaseTestAppDeviceAdminReceiver" 32 android:permission="android.permission.BIND_DEVICE_ADMIN" 33 android:exported="true"> 34 <meta-data android:name="android.app.device_admin" 35 android:resource="@xml/headless_single_user_device_admin"/> 36 <intent-filter> 37 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 38 </intent-filter> 39 </receiver> 40 41 <receiver 42 android:name=".PolicyUpdateReceiver" 43 android:exported="true" 44 android:permission="android.permission.BIND_DEVICE_ADMIN"> 45 <intent-filter> 46 <action android:name="android.app.admin.action.DEVICE_POLICY_SET_RESULT" /> 47 <action android:name="android.app.admin.action.DEVICE_POLICY_CHANGED" /> 48 </intent-filter> 49 </receiver> 50 51 <receiver android:name=".FinancedDeviceStateReceiver" android:exported="true"> 52 <intent-filter> 53 <action android:name="android.app.admin.action.DEVICE_FINANCING_STATE_CHANGED" /> 54 </intent-filter> 55 </receiver> 56 57 <!-- This activity is used to show "Work Policy Info" in Settings for Managed Devices --> 58 <activity android:name=".WorkPolicyInfoActivity" 59 android:exported="true" 60 android:launchMode="singleTask"> 61 <intent-filter> 62 <category android:name="android.intent.category.DEFAULT"/> 63 <action android:name="android.settings.SHOW_WORK_POLICY_INFO"/> 64 </intent-filter> 65 </activity> 66 </application> 67 <uses-sdk android:minSdkVersion="29" /> 68</manifest> 69