1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- 4 * Copyright (C) 2011 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="android.admin.app"> 21 <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28"/> 22 23 <application android:testOnly="true"> 24 25 <uses-library android:name="android.test.runner"/> 26 27 <receiver android:name="android.admin.app.CtsDeviceAdminDeviceOwner" 28 android:permission="android.permission.BIND_DEVICE_ADMIN"> 29 <meta-data android:name="android.app.device_admin" 30 android:resource="@xml/device_admin" /> 31 <intent-filter> 32 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 33 </intent-filter> 34 </receiver> 35 36 <receiver android:name="android.admin.app.CtsDeviceAdminProfileOwner" 37 android:permission="android.permission.BIND_DEVICE_ADMIN"> 38 <meta-data android:name="android.app.device_admin" 39 android:resource="@xml/device_admin" /> 40 <intent-filter> 41 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 42 </intent-filter> 43 </receiver> 44 45 <receiver android:name="android.admin.app.CtsDeviceAdminReceiver" 46 android:permission="android.permission.BIND_DEVICE_ADMIN"> 47 <meta-data android:name="android.app.device_admin" 48 android:resource="@xml/device_admin" /> 49 <intent-filter> 50 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 51 </intent-filter> 52 </receiver> 53 54 <receiver android:name="android.admin.app.CtsDeviceAdminReceiver2" 55 android:permission="android.permission.BIND_DEVICE_ADMIN"> 56 <meta-data android:name="android.app.device_admin" 57 android:resource="@xml/device_admin_2" /> 58 <intent-filter> 59 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 60 </intent-filter> 61 </receiver> 62 63 <receiver android:name="android.admin.app.CtsDeviceAdminReceiver3" 64 android:permission="android.permission.BIND_DEVICE_ADMIN"> 65 <meta-data android:name="android.app.device_admin" 66 android:resource="@xml/device_admin_3" /> 67 <intent-filter> 68 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 69 </intent-filter> 70 </receiver> 71 72 <receiver android:name="android.admin.app.CtsDeviceAdminReceiverVisible" 73 android:permission="android.permission.BIND_DEVICE_ADMIN"> 74 <meta-data android:name="android.app.device_admin" 75 android:resource="@xml/device_admin_visible" /> 76 <intent-filter> 77 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 78 </intent-filter> 79 </receiver> 80 81 <receiver android:name="android.admin.app.CtsDeviceAdminReceiverInvisible" 82 android:permission="android.permission.BIND_DEVICE_ADMIN"> 83 <meta-data android:name="android.app.device_admin" 84 android:resource="@xml/device_admin_invisible" /> 85 <intent-filter> 86 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 87 </intent-filter> 88 </receiver> 89 90 <!-- Device Admin that needs to be in the deactivated state in order 91 for tests to pass. --> 92 <receiver android:name="android.admin.app.CtsDeviceAdminDeactivatedReceiver" 93 android:permission="android.permission.BIND_DEVICE_ADMIN"> 94 <meta-data android:name="android.app.device_admin" 95 android:resource="@xml/device_admin" /> 96 <intent-filter> 97 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 98 </intent-filter> 99 </receiver> 100 101 <!-- Helper Activity used by Device Admin activation tests --> 102 <activity android:name="android.admin.app.CtsDeviceAdminActivationTestActivity" 103 android:label="Device Admin activation test" /> 104 105 <!-- Broken device admin: meta-data missing --> 106 <receiver android:name="android.admin.app.CtsDeviceAdminBrokenReceiver" 107 android:permission="android.permission.BIND_DEVICE_ADMIN"> 108 <intent-filter> 109 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 110 </intent-filter> 111 </receiver> 112 113 <!-- Broken device admin: filter doesn't match an Intent with action 114 android.app.action.DEVICE_ADMIN_ENABLED and nothing else (e.g., 115 data) set --> 116 <receiver android:name="android.admin.app.CtsDeviceAdminBrokenReceiver2" 117 android:permission="android.permission.BIND_DEVICE_ADMIN"> 118 <meta-data android:name="android.app.device_admin" 119 android:resource="@xml/device_admin" /> 120 <intent-filter> 121 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 122 <data android:scheme="https" /> 123 </intent-filter> 124 </receiver> 125 126 <!-- Broken device admin: meta-data element doesn't point to valid 127 Device Admin configuration/description --> 128 <receiver android:name="android.admin.app.CtsDeviceAdminBrokenReceiver3" 129 android:permission="android.permission.BIND_DEVICE_ADMIN"> 130 <meta-data android:name="android.app.device_admin" 131 android:resource="@xml/broken_device_admin" /> 132 <intent-filter> 133 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 134 </intent-filter> 135 </receiver> 136 137 <!-- Broken device admin: filter doesn't match Intents with action 138 android.app.action.DEVICE_ADMIN_ENABLED --> 139 <receiver android:name="android.admin.app.CtsDeviceAdminBrokenReceiver4" 140 android:permission="android.permission.BIND_DEVICE_ADMIN"> 141 <meta-data android:name="android.app.device_admin" 142 android:resource="@xml/device_admin" /> 143 <intent-filter> 144 <action android:name="android.app.action.DEVICE_ADMIN_DISABLED" /> 145 </intent-filter> 146 </receiver> 147 148 <!-- Broken device admin: no intent-filter --> 149 <receiver android:name="android.admin.app.CtsDeviceAdminBrokenReceiver5" 150 android:permission="android.permission.BIND_DEVICE_ADMIN"> 151 <meta-data android:name="android.app.device_admin" 152 android:resource="@xml/device_admin" /> 153 </receiver> 154 155 </application> 156 157</manifest> 158