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.deviceadmin.cts"> 21 <application> 22 23 <uses-library android:name="android.test.runner"/> 24 25 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminReceiver" 26 android:permission="android.permission.BIND_DEVICE_ADMIN"> 27 <meta-data android:name="android.app.device_admin" 28 android:resource="@xml/device_admin" /> 29 <intent-filter> 30 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 31 </intent-filter> 32 </receiver> 33 34 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminReceiver2" 35 android:permission="android.permission.BIND_DEVICE_ADMIN"> 36 <meta-data android:name="android.app.device_admin" 37 android:resource="@xml/device_admin_2" /> 38 <intent-filter> 39 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 40 </intent-filter> 41 </receiver> 42 43 <!-- Device Admin that needs to be in the deactivated state in order 44 for tests to pass. --> 45 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminDeactivatedReceiver" 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 <!-- Helper Activity used by Device Admin activation tests --> 55 <activity android:name="android.deviceadmin.cts.CtsDeviceAdminActivationTestActivity" 56 android:label="Device Admin activation test" /> 57 58 <!-- Broken device admin: meta-data missing --> 59 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver" 60 android:permission="android.permission.BIND_DEVICE_ADMIN"> 61 <intent-filter> 62 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 63 </intent-filter> 64 </receiver> 65 66 <!-- Broken device admin: filter doesn't match an Intent with action 67 android.app.action.DEVICE_ADMIN_ENABLED and nothing else (e.g., 68 data) set --> 69 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver2" 70 android:permission="android.permission.BIND_DEVICE_ADMIN"> 71 <meta-data android:name="android.app.device_admin" 72 android:resource="@xml/device_admin" /> 73 <intent-filter> 74 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 75 <data android:scheme="https" /> 76 </intent-filter> 77 </receiver> 78 79 <!-- Broken device admin: meta-data element doesn't point to valid 80 Device Admin configuration/description --> 81 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver3" 82 android:permission="android.permission.BIND_DEVICE_ADMIN"> 83 <meta-data android:name="android.app.device_admin" 84 android:resource="@xml/broken_device_admin" /> 85 <intent-filter> 86 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 87 </intent-filter> 88 </receiver> 89 90 <!-- Broken device admin: filter doesn't match Intents with action 91 android.app.action.DEVICE_ADMIN_ENABLED --> 92 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver4" 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_DISABLED" /> 98 </intent-filter> 99 </receiver> 100 101 <!-- Broken device admin: no intent-filter --> 102 <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver5" 103 android:permission="android.permission.BIND_DEVICE_ADMIN"> 104 <meta-data android:name="android.app.device_admin" 105 android:resource="@xml/device_admin" /> 106 </receiver> 107 108 </application> 109 110 <instrumentation android:name="android.test.InstrumentationTestRunner" 111 android:targetPackage="com.android.cts.admin" 112 android:label="Tests for the device admin APIs."/> 113 </manifest> 114