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_FINE_LOCATION" /> 26 <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> 27 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 28 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 29 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 30 <uses-permission android:name="android.permission.INTERNET" /> 31 <uses-permission android:name="android.permission.BLUETOOTH" /> 32 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 33 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 34 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 35 36 <application 37 android:testOnly="true" 38 android:usesCleartextTraffic="true">> 39 40 <uses-library android:name="android.test.runner" /> 41 <receiver 42 android:name="com.android.cts.deviceowner.BasicAdminReceiver" 43 android:permission="android.permission.BIND_DEVICE_ADMIN"> 44 <meta-data android:name="android.app.device_admin" 45 android:resource="@xml/device_admin" /> 46 <intent-filter> 47 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 48 </intent-filter> 49 </receiver> 50 <receiver 51 android:name="com.android.cts.deviceowner.CreateAndManageUserTest$TestProfileOwner" 52 android:permission="android.permission.BIND_DEVICE_ADMIN"> 53 <meta-data android:name="android.app.device_admin" 54 android:resource="@xml/device_admin" /> 55 <intent-filter> 56 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 57 </intent-filter> 58 </receiver> 59 <receiver 60 android:name="com.android.cts.deviceowner.CreateAndManageUserTest$SecondaryUserAdminReceiver" 61 android:permission="android.permission.BIND_DEVICE_ADMIN"> 62 <meta-data android:name="android.app.device_admin" 63 android:resource="@xml/device_admin" /> 64 <intent-filter> 65 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 66 </intent-filter> 67 </receiver> 68 69 <service android:name="com.android.cts.deviceowner.CreateAndManageUserTest$PrimaryUserService" 70 android:exported="true" 71 android:permission="android.permission.BIND_DEVICE_ADMIN"> 72 </service> 73 74 <activity 75 android:name=".SetPolicyActivity" 76 android:launchMode="singleTop"> 77 <intent-filter> 78 <action android:name="android.intent.action.MAIN" /> 79 <category android:name="android.intent.category.DEFAULT"/> 80 </intent-filter> 81 </activity> 82 83 <activity android:name="com.android.compatibility.common.util.devicepolicy.provisioning.StartProvisioningActivity"/> 84 85 <service android:name="com.android.cts.deviceowner.NotificationListener" 86 android:label="Notification Listener" 87 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> 88 <intent-filter> 89 <action android:name="android.service.notification.NotificationListenerService" /> 90 </intent-filter> 91 </service> 92 </application> 93 94 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 95 android:targetPackage="com.android.cts.deviceowner" 96 android:label="Device Owner CTS tests"> 97 <meta-data 98 android:name="listener" 99 android:value="com.android.cts.runner.CtsTestRunListener"/> 100 </instrumentation> 101</manifest> 102