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.managedprofile"> 19 20 <uses-sdk android:minSdkVersion="20"/> 21 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 22 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 23 <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> 24 <uses-permission android:name="android.permission.BLUETOOTH" /> 25 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 26 <uses-permission android:name="android.permission.READ_CONTACTS" /> 27 <uses-permission android:name="android.permission.WRITE_CONTACTS" /> 28 <uses-permission android:name="android.permission.CAMERA" /> 29 <uses-permission android:name="android.permission.CALL_PHONE"/> 30 <uses-permission android:name="android.permission.READ_CALL_LOG"/> 31 <uses-permission android:name="android.permission.WRITE_CALL_LOG"/> 32 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/> 33 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 34 35 <application 36 android:testOnly="true"> 37 38 <uses-library android:name="android.test.runner" /> 39 <receiver 40 android:name="com.android.cts.managedprofile.BaseManagedProfileTest$BasicAdminReceiver" 41 android:permission="android.permission.BIND_DEVICE_ADMIN"> 42 <meta-data android:name="android.app.device_admin" 43 android:resource="@xml/device_admin" /> 44 <intent-filter> 45 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 46 </intent-filter> 47 </receiver> 48 <receiver 49 android:name="com.android.cts.managedprofile.ProvisioningTest$ProvisioningAdminReceiver" 50 android:permission="android.permission.BIND_DEVICE_ADMIN"> 51 <meta-data android:name="android.app.device_admin" 52 android:resource="@xml/device_admin" /> 53 <intent-filter> 54 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 55 </intent-filter> 56 </receiver> 57 <receiver 58 android:name="com.android.cts.managedprofile.PrimaryUserDeviceAdmin" 59 android:permission="android.permission.BIND_DEVICE_ADMIN"> 60 <meta-data android:name="android.app.device_admin" 61 android:resource="@xml/primary_device_admin" /> 62 <intent-filter> 63 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 64 </intent-filter> 65 </receiver> 66 <activity android:name=".PrimaryUserFilterSetterActivity"> 67 <intent-filter> 68 <action android:name="android.intent.action.MAIN" /> 69 <category android:name="android.intent.category.DEFAULT"/> 70 <category android:name="android.intent.category.LAUNCHER" /> 71 </intent-filter> 72 </activity> 73 <activity android:name=".ComponentDisablingActivity" android:exported="true"> 74 </activity> 75 <activity android:name=".ManagedProfileActivity"> 76 <intent-filter> 77 <category android:name="android.intent.category.DEFAULT"/> 78 <action android:name="com.android.cts.managedprofile.ACTION_TEST_MANAGED_ACTIVITY" /> 79 </intent-filter> 80 <intent-filter> 81 <action android:name="android.intent.action.SEND" /> 82 <action android:name="android.intent.action.SEND_MULTIPLE" /> 83 <data android:mimeType="*/*" /> 84 <category android:name="android.intent.category.DEFAULT" /> 85 </intent-filter> 86 </activity> 87 <activity android:name=".PrimaryUserActivity"> 88 <intent-filter> 89 <category android:name="android.intent.category.DEFAULT"/> 90 <action android:name="com.android.cts.managedprofile.ACTION_TEST_PRIMARY_ACTIVITY" /> 91 </intent-filter> 92 <!-- Catch ACTION_PICK in case there is no other app handing it --> 93 <intent-filter> 94 <action android:name="android.intent.action.PICK" /> 95 <category android:name="android.intent.category.DEFAULT" /> 96 </intent-filter> 97 </activity> 98 <activity android:name=".AllUsersActivity"> 99 <intent-filter> 100 <category android:name="android.intent.category.DEFAULT"/> 101 <action android:name="com.android.cts.managedprofile.ACTION_TEST_ALL_ACTIVITY" /> 102 </intent-filter> 103 </activity> 104 <activity 105 android:name=".SetPolicyActivity" 106 android:launchMode="singleTop"> 107 <intent-filter> 108 <action android:name="android.intent.action.MAIN" /> 109 <category android:name="android.intent.category.DEFAULT"/> 110 </intent-filter> 111 </activity> 112 <activity android:name=".TestActivity" /> 113 114 <service android:name=".DummyConnectionService" 115 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE" > 116 <intent-filter> 117 <action android:name="android.telecom.ConnectionService" /> 118 </intent-filter> 119 </service> 120 121 <activity android:name=".DummyDialerActivity"> 122 <intent-filter> 123 <action android:name="android.intent.action.DIAL" /> 124 <category android:name="android.intent.category.DEFAULT" /> 125 <category android:name="android.intent.category.BROWSABLE" /> 126 <data android:mimeType="vnd.android.cursor.item/phone" /> 127 <data android:mimeType="vnd.android.cursor.item/person" /> 128 </intent-filter> 129 <intent-filter> 130 <action android:name="android.intent.action.DIAL" /> 131 <category android:name="android.intent.category.DEFAULT" /> 132 </intent-filter> 133 <intent-filter> 134 <action android:name="android.intent.action.VIEW" /> 135 <action android:name="android.intent.action.DIAL" /> 136 <category android:name="android.intent.category.DEFAULT" /> 137 <category android:name="android.intent.category.BROWSABLE" /> 138 <data android:scheme="tel" /> 139 </intent-filter> 140 </activity> 141 <service android:name=".AccountService" android:exported="true"> 142 <intent-filter> 143 <action android:name="android.accounts.AccountAuthenticator" /> 144 </intent-filter> 145 <meta-data android:name="android.accounts.AccountAuthenticator" 146 android:resource="@xml/authenticator" /> 147 </service> 148 <activity android:name="com.android.compatibility.common.util.devicepolicy.provisioning.StartProvisioningActivity"/> 149 150 <activity 151 android:name=".ProvisioningSuccessActivity" 152 android:theme="@android:style/Theme.NoDisplay"> 153 <intent-filter> 154 <action android:name="android.app.action.PROVISIONING_SUCCESSFUL"/> 155 <category android:name="android.intent.category.DEFAULT"/> 156 </intent-filter> 157 </activity> 158 159 <activity android:name=".WebViewActivity" 160 android:process=":testProcess"/> 161 162 <activity android:name=".TimeoutActivity" android:exported="true"/> 163 164 <service 165 android:name=".CrossProfileNotificationListenerService" 166 android:label="CrossProfileNotificationListenerService" 167 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" > 168 <intent-filter> 169 <action android:name="android.service.notification.NotificationListenerService" /> 170 </intent-filter> 171 </service> 172 173 <receiver android:name=".MissedCallNotificationReceiver"> 174 <intent-filter> 175 <action android:name="android.telecom.action.SHOW_MISSED_CALLS_NOTIFICATION" /> 176 </intent-filter> 177 </receiver> 178 179 <!-- Dummy receiver that's decleared direct boot aware. This is needed to make the test app 180 executable by instrumentation before device unlock --> 181 <receiver android:name=".ResetPasswordWithTokenTest$DummyReceiver" 182 android:directBootAware="true" > 183 <intent-filter> 184 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" /> 185 </intent-filter> 186 </receiver> 187 188 <receiver android:name=".LockProfileReceiver"> 189 <intent-filter> 190 <action android:name="com.android.cts.managedprofile.LOCK_PROFILE" /> 191 </intent-filter> 192 </receiver> 193 194 <receiver android:name=".WipeDataReceiver"> 195 <intent-filter> 196 <action android:name="com.android.cts.managedprofile.WIPE_DATA" /> 197 <action android:name="com.android.cts.managedprofile.WIPE_DATA_WITH_REASON" /> 198 </intent-filter> 199 </receiver> 200 201 </application> 202 203 <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" 204 android:targetPackage="com.android.cts.managedprofile" 205 android:label="Managed Profile CTS Tests"/> 206</manifest> 207