1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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.deviceowner" > 19 20 <uses-sdk android:minSdkVersion="20"/> 21 22 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 23 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> 24 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 25 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 26 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 27 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 28 <uses-permission android:name="android.permission.INTERNET" /> 29 <uses-permission android:name="android.permission.BLUETOOTH" /> 30 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 31 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 32 33 <application 34 android:testOnly="true" 35 android:usesCleartextTraffic="true">> 36 37 <uses-library android:name="android.test.runner" /> 38 <receiver 39 android:name="com.android.cts.deviceowner.BasicAdminReceiver" 40 android:permission="android.permission.BIND_DEVICE_ADMIN"> 41 <meta-data android:name="android.app.device_admin" 42 android:resource="@xml/device_admin" /> 43 <intent-filter> 44 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 45 </intent-filter> 46 </receiver> 47 <receiver 48 android:name="com.android.cts.deviceowner.CreateAndManageUserTest$TestProfileOwner" 49 android:permission="android.permission.BIND_DEVICE_ADMIN"> 50 <meta-data android:name="android.app.device_admin" 51 android:resource="@xml/device_admin" /> 52 <intent-filter> 53 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 54 </intent-filter> 55 </receiver> 56 <receiver 57 android:name="com.android.cts.deviceowner.CreateAndManageUserTest$SecondaryUserAdminReceiver" 58 android:permission="android.permission.BIND_DEVICE_ADMIN"> 59 <meta-data android:name="android.app.device_admin" 60 android:resource="@xml/device_admin" /> 61 <intent-filter> 62 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 63 </intent-filter> 64 </receiver> 65 66 <service android:name="com.android.cts.deviceowner.CreateAndManageUserTest$PrimaryUserService" 67 android:exported="true" 68 android:permission="android.permission.BIND_DEVICE_ADMIN"> 69 </service> 70 71 <activity 72 android:name="com.android.cts.deviceowner.LockTaskUtilityActivity" /> 73 <activity 74 android:name="com.android.cts.deviceowner.LockTaskUtilityActivityIfWhitelisted" 75 android:launchMode="singleInstance" 76 android:lockTaskMode="if_whitelisted"> 77 <intent-filter> 78 <action android:name="android.intent.action.MAIN"/> 79 <category android:name="android.intent.category.HOME"/> 80 <category android:name="android.intent.category.DEFAULT"/> 81 </intent-filter> 82 </activity> 83 84 <activity 85 android:name=".SetPolicyActivity" 86 android:launchMode="singleTop"> 87 <intent-filter> 88 <action android:name="android.intent.action.MAIN" /> 89 <category android:name="android.intent.category.DEFAULT"/> 90 </intent-filter> 91 </activity> 92 93 <activity android:name="com.android.compatibility.common.util.devicepolicy.provisioning.StartProvisioningActivity"/> 94 95 </application> 96 97 <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" 98 android:targetPackage="com.android.cts.deviceowner" 99 android:label="Device Owner CTS tests"> 100 <meta-data 101 android:name="listener" 102 android:value="com.android.cts.runner.CtsTestRunListener"/> 103 </instrumentation> 104</manifest> 105