blob: 99d440d656ddb443f5c721969706a490363ef64f [file] [log] [blame]
Esteban Talaverab53252a2014-09-17 11:56:52 +01001<?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"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070018 package="com.android.cts.managedprofile">
Esteban Talaverab53252a2014-09-17 11:56:52 +010019
arangelov84eb0652018-08-10 18:25:22 +010020 <uses-sdk android:minSdkVersion="27"/>
Rubin Xu4caa0462019-04-30 11:05:56 +010021 <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070022 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
23 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
24 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
25 <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
26 <uses-permission android:name="android.permission.BLUETOOTH"/>
27 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
28 <uses-permission android:name="android.permission.READ_CONTACTS"/>
29 <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
30 <uses-permission android:name="android.permission.CAMERA"/>
Tony Mak5f656e02016-01-19 19:54:36 +000031 <uses-permission android:name="android.permission.CALL_PHONE"/>
32 <uses-permission android:name="android.permission.READ_CALL_LOG"/>
33 <uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
Andre Lago7bb6e292016-09-29 11:52:12 +010034 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
Valentin Iftimec209b9f2020-05-25 10:36:23 +020035 <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
Tony Makc9017892017-06-06 10:55:29 +010036 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070037 <uses-permission android:name="android.permission.READ_CALENDAR"/>
38 <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
Alex Johnston2f728e02019-11-01 17:43:15 +000039 <uses-permission android:name="android.permission.REQUEST_PASSWORD_COMPLEXITY"/>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070040 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
Esteban Talaverab53252a2014-09-17 11:56:52 +010041
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070042 <application android:testOnly="true">
Kenny Guye91f1a62016-04-19 13:33:59 +010043
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070044 <uses-library android:name="android.test.runner"/>
45 <receiver android:name="com.android.cts.managedprofile.BaseManagedProfileTest$BasicAdminReceiver"
46 android:permission="android.permission.BIND_DEVICE_ADMIN"
47 android:exported="true">
Esteban Talaverab53252a2014-09-17 11:56:52 +010048 <meta-data android:name="android.app.device_admin"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070049 android:resource="@xml/device_admin"/>
Esteban Talaverab53252a2014-09-17 11:56:52 +010050 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070051 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Esteban Talaverab53252a2014-09-17 11:56:52 +010052 </intent-filter>
53 </receiver>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070054 <receiver android:name="com.android.cts.managedprofile.ProvisioningTest$ProvisioningAdminReceiver"
55 android:permission="android.permission.BIND_DEVICE_ADMIN"
56 android:exported="true">
Victor Changc845f462017-01-13 17:01:03 +000057 <meta-data android:name="android.app.device_admin"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070058 android:resource="@xml/device_admin"/>
Victor Changc845f462017-01-13 17:01:03 +000059 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070060 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Victor Changc845f462017-01-13 17:01:03 +000061 </intent-filter>
62 </receiver>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070063 <receiver android:name="com.android.cts.managedprofile.PrimaryUserDeviceAdmin"
64 android:permission="android.permission.BIND_DEVICE_ADMIN"
65 android:exported="true">
Rubin Xua21a5642015-03-09 15:50:34 +000066 <meta-data android:name="android.app.device_admin"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070067 android:resource="@xml/primary_device_admin"/>
Rubin Xua21a5642015-03-09 15:50:34 +000068 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070069 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Rubin Xua21a5642015-03-09 15:50:34 +000070 </intent-filter>
71 </receiver>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070072 <activity android:name=".PrimaryUserFilterSetterActivity"
73 android:exported="true">
Nicolas Prevot259ad472014-09-17 13:05:30 +010074 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070075 <action android:name="android.intent.action.MAIN"/>
Alexandra Gherghina25543f02014-10-02 18:26:51 +010076 <category android:name="android.intent.category.DEFAULT"/>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070077 <category android:name="android.intent.category.LAUNCHER"/>
Alexandra Gherghina25543f02014-10-02 18:26:51 +010078 </intent-filter>
79 </activity>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070080 <activity android:name=".ComponentDisablingActivity"
81 android:exported="true">
Nicolas Prevot259ad472014-09-17 13:05:30 +010082 </activity>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070083 <activity android:name=".ManagedProfileActivity"
84 android:exported="true">
Nicolas Prevot259ad472014-09-17 13:05:30 +010085 <intent-filter>
86 <category android:name="android.intent.category.DEFAULT"/>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070087 <action android:name="com.android.cts.managedprofile.ACTION_TEST_MANAGED_ACTIVITY"/>
Nicolas Prevot259ad472014-09-17 13:05:30 +010088 </intent-filter>
Rubin Xuc83513e2018-01-02 20:04:42 +000089 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070090 <action android:name="android.intent.action.SEND"/>
91 <action android:name="android.intent.action.SEND_MULTIPLE"/>
92 <data android:mimeType="*/*"/>
93 <category android:name="android.intent.category.DEFAULT"/>
Rubin Xuc83513e2018-01-02 20:04:42 +000094 </intent-filter>
Nicolas Prevot259ad472014-09-17 13:05:30 +010095 </activity>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -070096 <activity android:name=".PrimaryUserActivity"
97 android:exported="true">
Nicolas Prevot259ad472014-09-17 13:05:30 +010098 <intent-filter>
99 <category android:name="android.intent.category.DEFAULT"/>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700100 <action android:name="com.android.cts.managedprofile.ACTION_TEST_PRIMARY_ACTIVITY"/>
Nicolas Prevot259ad472014-09-17 13:05:30 +0100101 </intent-filter>
Rubin Xudc9ad652018-05-18 17:16:30 +0100102 <!-- Catch ACTION_PICK in case there is no other app handing it -->
103 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700104 <action android:name="android.intent.action.PICK"/>
Esteban Talaveracf53b192014-10-09 14:33:26 +0100105 <category android:name="android.intent.category.DEFAULT"/>
106 </intent-filter>
107 </activity>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700108 <activity android:name=".AllUsersActivity"
109 android:exported="true">
110 <intent-filter>
111 <category android:name="android.intent.category.DEFAULT"/>
112 <action android:name="com.android.cts.managedprofile.ACTION_TEST_ALL_ACTIVITY"/>
113 </intent-filter>
114 </activity>
115 <activity android:name=".SetPolicyActivity"
116 android:launchMode="singleTop"
117 android:exported="true">
118 <intent-filter>
119 <action android:name="android.intent.action.MAIN"/>
120 <category android:name="android.intent.category.DEFAULT"/>
121 </intent-filter>
122 </activity>
123 <activity android:name=".TestActivity"/>
Tony Mak5f656e02016-01-19 19:54:36 +0000124
125 <service android:name=".DummyConnectionService"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700126 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
127 android:exported="true">
Tony Mak5f656e02016-01-19 19:54:36 +0000128 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700129 <action android:name="android.telecom.ConnectionService"/>
Tony Mak5f656e02016-01-19 19:54:36 +0000130 </intent-filter>
131 </service>
132
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700133 <activity android:name=".DummyDialerActivity"
134 android:exported="true">
Tony Mak5f656e02016-01-19 19:54:36 +0000135 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700136 <action android:name="android.intent.action.DIAL"/>
137 <category android:name="android.intent.category.DEFAULT"/>
138 <category android:name="android.intent.category.BROWSABLE"/>
139 <data android:mimeType="vnd.android.cursor.item/phone"/>
140 <data android:mimeType="vnd.android.cursor.item/person"/>
Tony Mak5f656e02016-01-19 19:54:36 +0000141 </intent-filter>
Tony Makc9017892017-06-06 10:55:29 +0100142 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700143 <action android:name="android.intent.action.DIAL"/>
144 <category android:name="android.intent.category.DEFAULT"/>
Tony Makc9017892017-06-06 10:55:29 +0100145 </intent-filter>
146 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700147 <action android:name="android.intent.action.VIEW"/>
148 <action android:name="android.intent.action.DIAL"/>
149 <category android:name="android.intent.category.DEFAULT"/>
150 <category android:name="android.intent.category.BROWSABLE"/>
151 <data android:scheme="tel"/>
Tony Makc9017892017-06-06 10:55:29 +0100152 </intent-filter>
Tony Mak5f656e02016-01-19 19:54:36 +0000153 </activity>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700154 <service android:name=".AccountService"
155 android:exported="true">
Keisuke Hasegawa9e9bb202016-03-11 10:18:02 +0900156 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700157 <action android:name="android.accounts.AccountAuthenticator"/>
Keisuke Hasegawa9e9bb202016-03-11 10:18:02 +0900158 </intent-filter>
159 <meta-data android:name="android.accounts.AccountAuthenticator"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700160 android:resource="@xml/authenticator"/>
Keisuke Hasegawa9e9bb202016-03-11 10:18:02 +0900161 </service>
Victor Changc845f462017-01-13 17:01:03 +0000162 <activity android:name="com.android.compatibility.common.util.devicepolicy.provisioning.StartProvisioningActivity"/>
Mahaver97d96b62017-01-24 20:51:09 +0000163
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700164 <activity android:name=".ProvisioningSuccessActivity"
165 android:theme="@android:style/Theme.NoDisplay"
166 android:exported="true">
Mahaver97d96b62017-01-24 20:51:09 +0000167 <intent-filter>
168 <action android:name="android.app.action.PROVISIONING_SUCCESSFUL"/>
169 <category android:name="android.intent.category.DEFAULT"/>
170 </intent-filter>
171 </activity>
Esteban Talavera7b13d982017-04-10 13:45:16 +0100172
arangelov87664ca2017-10-10 16:12:10 +0100173 <activity android:name=".WebViewActivity"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700174 android:process=":testProcess"/>
arangelov87664ca2017-10-10 16:12:10 +0100175
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700176 <activity android:name=".TimeoutActivity"
177 android:exported="true"/>
Pavel Grafovf7d1b742017-06-22 16:54:27 +0100178
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700179 <activity android:name=".DummyCrossProfileViewEventActivity"
180 android:exported="true">
yuemingwbc503b12018-12-12 18:47:54 +0000181 <intent-filter>
yuemingwbbe76572019-01-29 11:30:15 +0000182 <action android:name="android.provider.calendar.action.VIEW_MANAGED_PROFILE_CALENDAR_EVENT"/>
yuemingwbc503b12018-12-12 18:47:54 +0000183 <category android:name="android.intent.category.DEFAULT"/>
184 </intent-filter>
185 </activity>
186
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700187 <service android:name=".CrossProfileNotificationListenerService"
188 android:label="CrossProfileNotificationListenerService"
189 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
190 android:exported="true">
Esteban Talavera7b13d982017-04-10 13:45:16 +0100191 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700192 <action android:name="android.service.notification.NotificationListenerService"/>
Esteban Talavera7b13d982017-04-10 13:45:16 +0100193 </intent-filter>
194 </service>
Tony Makc9017892017-06-06 10:55:29 +0100195
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700196 <receiver android:name=".MissedCallNotificationReceiver"
197 android:exported="true">
Tony Makc9017892017-06-06 10:55:29 +0100198 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700199 <action android:name="android.telecom.action.SHOW_MISSED_CALLS_NOTIFICATION"/>
Tony Makc9017892017-06-06 10:55:29 +0100200 </intent-filter>
201 </receiver>
Rubin Xu2e7b3d42017-09-04 13:56:50 +0100202
203 <!-- Dummy receiver that's decleared direct boot aware. This is needed to make the test app
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700204 executable by instrumentation before device unlock -->
Rubin Xu2e7b3d42017-09-04 13:56:50 +0100205 <receiver android:name=".ResetPasswordWithTokenTest$DummyReceiver"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700206 android:directBootAware="true"
207 android:exported="true">
Rubin Xu2e7b3d42017-09-04 13:56:50 +0100208 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700209 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
Rubin Xu2e7b3d42017-09-04 13:56:50 +0100210 </intent-filter>
211 </receiver>
212
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700213 <receiver android:name=".LockProfileReceiver"
214 android:exported="true">
Rubin Xu9348c7d2018-06-06 14:13:15 +0100215 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700216 <action android:name="com.android.cts.managedprofile.LOCK_PROFILE"/>
Rubin Xu9348c7d2018-06-06 14:13:15 +0100217 </intent-filter>
218 </receiver>
219
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700220 <receiver android:name=".WipeDataReceiver"
221 android:exported="true">
Eric Sandness32ddc252018-06-20 16:05:53 +0100222 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700223 <action android:name="com.android.cts.managedprofile.WIPE_DATA"/>
224 <action android:name="com.android.cts.managedprofile.WIPE_DATA_WITH_REASON"/>
Eric Sandness32ddc252018-06-20 16:05:53 +0100225 </intent-filter>
226 </receiver>
227
Valentin Iftime02234102020-03-31 20:27:29 +0200228 <service android:name=".NotificationListener"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700229 android:exported="true"
230 android:label="Notification Listener"
231 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
Valentin Iftime02234102020-03-31 20:27:29 +0200232 <intent-filter>
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700233 <action android:name="android.service.notification.NotificationListenerService"/>
Valentin Iftime02234102020-03-31 20:27:29 +0200234 </intent-filter>
235 </service>
236
Esteban Talaverab53252a2014-09-17 11:56:52 +0100237 </application>
238
Brett Chabot244f0382019-02-15 13:02:34 -0800239 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
Ashwini Oruganti62e39bb2020-05-29 16:14:30 -0700240 android:targetPackage="com.android.cts.managedprofile"
241 android:label="Managed Profile CTS Tests"/>
Esteban Talaverab53252a2014-09-17 11:56:52 +0100242</manifest>