1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 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.android.cts.comp" > 19 <!-- package="com.android.cts.comp2" 20 We have com.android.cts.comp2 that have the exact same source but with different package 21 name, see Android.mk for details. --> 22 <application 23 android:testOnly="true"> 24 25 <uses-library android:name="android.test.runner" /> 26 <receiver 27 android:name="com.android.cts.comp.AdminReceiver" 28 android:exported="true" 29 android:permission="android.permission.BIND_DEVICE_ADMIN"> 30 <meta-data 31 android:name="android.app.device_admin" 32 android:resource="@xml/device_admin"/> 33 <intent-filter> 34 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 35 <action android:name="android.app.action.PROFILE_PROVISIONING_COMPLETE"/> 36 </intent-filter> 37 </receiver> 38 <activity android:name="com.android.compatibility.common.util.devicepolicy.provisioning.StartProvisioningActivity"/> 39 40 <service android:name=".ProtectedCrossUserService" 41 android:exported="true" 42 android:permission="android.permission.BIND_DEVICE_ADMIN"> 43 </service> 44 45 <service android:name=".UnprotectedCrossUserService" 46 android:exported="true"> 47 </service> 48 </application> 49 50 <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" 51 android:targetPackage="com.android.cts.comp" 52 android:label="Corp owned managed profile CTS tests"/> 53 </manifest> 54