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_SETTINGS" /> 24 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 25 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 26 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 27 28 <!-- Add a network security config that trusts user added CAs for tests --> 29 <application android:networkSecurityConfig="@xml/network_security_config" 30 android:testOnly="true"> 31 32 <uses-library android:name="android.test.runner" /> 33 <receiver 34 android:name="com.android.cts.deviceowner.BaseDeviceOwnerTest$BasicAdminReceiver" 35 android:permission="android.permission.BIND_DEVICE_ADMIN"> 36 <meta-data android:name="android.app.device_admin" 37 android:resource="@xml/device_admin" /> 38 <intent-filter> 39 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 40 </intent-filter> 41 </receiver> 42 <receiver 43 android:name="com.android.cts.deviceowner.CreateAndManageUserTest$TestProfileOwner" 44 android:permission="android.permission.BIND_DEVICE_ADMIN"> 45 <meta-data android:name="android.app.device_admin" 46 android:resource="@xml/device_admin" /> 47 <intent-filter> 48 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 49 </intent-filter> 50 </receiver> 51 52 <activity 53 android:name="com.android.cts.deviceowner.KeyManagementActivity" 54 android:theme="@android:style/Theme.Translucent.NoTitleBar" /> 55 56 <activity 57 android:name="com.android.cts.deviceowner.LockTaskUtilityActivity" /> 58 <activity 59 android:name="com.android.cts.deviceowner.LockTaskUtilityActivityIfWhitelisted" 60 android:lockTaskMode="if_whitelisted" /> 61 62 <!-- we need to give a different taskAffinity so that when we use 63 FLAG_ACTIVITY_NEW_TASK, the system tries to start it in a different task 64 --> 65 <activity 66 android:name="com.android.cts.deviceowner.LockTaskTest$IntentReceivingActivity" 67 android:taskAffinity="com.android.cts.deviceowner.LockTaskTest.IntentReceivingActivity" 68 /> 69 </application> 70 71 <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" 72 android:targetPackage="com.android.cts.deviceowner" 73 android:label="Device Owner CTS tests"/> 74</manifest> 75