blob: bcb2cf8fa0c355ecc6c5a1f61493489e7aba5530 [file] [log] [blame]
Neal Nguyen1a44d5d2010-01-13 10:42:43 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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
Yorke Leebd54c2a2016-10-25 13:49:23 -07007
Neal Nguyen1a44d5d2010-01-13 10:42:43 -08008 http://www.apache.org/licenses/LICENSE-2.0
Yorke Leebd54c2a2016-10-25 13:49:23 -07009
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080010 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 Orugantie178c242020-03-18 15:46:39 -070018 package="com.android.frameworks.servicestests">
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080019
Ashwini Orugantie178c242020-03-18 15:46:39 -070020 <uses-permission android:name="android.permission.READ_LOGS"/>
21 <uses-permission android:name="android.permission.ACCESS_VR_MANAGER"/>
22 <uses-permission android:name="android.permission.ACCOUNT_MANAGER"/>
23 <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
24 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
25 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
26 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
27 <uses-permission android:name="android.permission.BROADCAST_STICKY"/>
28 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/>
29 <uses-permission android:name="android.permission.MANAGE_APP_TOKENS"/>
30 <uses-permission android:name="android.permission.WAKE_LOCK"/>
31 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
32 <uses-permission android:name="android.permission.REAL_GET_TASKS"/>
33 <uses-permission android:name="android.permission.GET_DETAILED_TASKS"/>
34 <uses-permission android:name="android.permission.REORDER_TASKS"/>
35 <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY"/>
36 <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY"/>
37 <uses-permission android:name="android.permission.OBSERVE_NETWORK_POLICY"/>
38 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
39 <uses-permission android:name="android.permission.MANAGE_USERS"/>
40 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
41 <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS"/>
42 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
43 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
44 <uses-permission android:name="android.permission.INTERNET"/>
45 <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
46 <uses-permission android:name="android.permission.PACKET_KEEPALIVE_OFFLOAD"/>
47 <uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT"/>
Louis Chang5510ecd2020-10-14 13:06:13 +080048 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS"/>
Ashwini Orugantie178c242020-03-18 15:46:39 -070049 <uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
50 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION"/>
51 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
52 <uses-permission android:name="android.permission.DELETE_PACKAGES"/>
53 <uses-permission android:name="android.permission.GET_APP_OPS_STATS"/>
54 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS"/>
Suprabh Shukla9e41b7f2018-05-16 17:54:45 -070055 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES"/>
Ashwini Orugantie178c242020-03-18 15:46:39 -070056 <uses-permission android:name="android.permission.DEVICE_POWER"/>
57 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"/>
58 <uses-permission android:name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>
59 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
60 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE"/>
61 <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER"/>
62 <uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>
63 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
64 <uses-permission android:name="android.permission.STORAGE_INTERNAL"/>
65 <uses-permission android:name="android.permission.WATCH_APPOPS"/>
Dianne Hackborndd027b32018-01-19 17:44:46 -080066 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Suprabh Shukla021b57a2018-03-08 18:21:50 -080067 <uses-permission android:name="android.permission.SUSPEND_APPS"/>
Ashwini Orugantie178c242020-03-18 15:46:39 -070068 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
69 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
Suprabh Shukla3c3af142018-03-30 00:28:37 -070070 <uses-permission android:name="android.permission.CONTROL_KEYGUARD"/>
Michael Grooverc76ea602018-08-09 16:12:42 -070071 <uses-permission android:name="android.permission.MANAGE_BIND_INSTANT_SERVICE"/>
Ashwini Orugantie178c242020-03-18 15:46:39 -070072 <uses-permission android:name="android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS"/>
Fiona Campbell93201912021-02-15 12:22:17 +000073 <uses-permission android:name="android.permission.CONTROL_DISPLAY_BRIGHTNESS"/>
Ashwini Orugantie178c242020-03-18 15:46:39 -070074 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
75 <uses-permission android:name="android.permission.WRITE_DEVICE_CONFIG"/>
Christine Franksdacbb2d32019-04-05 18:33:55 -070076 <uses-permission android:name="android.permission.HARDWARE_TEST"/>
Jean-Michel Trividc552e92019-06-24 10:39:19 -070077 <uses-permission android:name="android.permission.BLUETOOTH"/>
Jeff Sharkey7b14b872021-03-22 15:34:02 -060078 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
Jeff Sharkey6dcac062021-04-07 19:43:57 -060079 <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE"/>
Jeff Sharkey7b14b872021-03-22 15:34:02 -060080 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
81 <uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
Ashwini Orugantie178c242020-03-18 15:46:39 -070082 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
83 <uses-permission android:name="android.permission.DUMP"/>
Yogisha Dixit9c20afa2020-01-15 15:55:51 +000084 <uses-permission android:name="android.permission.READ_DREAM_STATE"/>
Yogisha Dixit784b62a2020-09-25 13:15:00 +010085 <uses-permission android:name="android.permission.READ_DREAM_SUPPRESSION"/>
Yogisha Dixit9c20afa2020-01-15 15:55:51 +000086 <uses-permission android:name="android.permission.WRITE_DREAM_STATE"/>
Jean-Michel Trivic6452e62020-04-09 08:19:26 -070087 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
Beverly2b4306a2020-04-27 16:15:15 -040088 <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE"/>
Amy Zhangccdbc4d2020-06-08 21:29:59 -070089 <uses-permission android:name="android.permission.MEDIA_RESOURCE_OVERRIDE_PID"/>
Lais Andrade41e60542020-06-25 10:51:52 +000090 <uses-permission android:name="android.permission.VIBRATE"/>
91 <uses-permission android:name="android.permission.ACCESS_VIBRATOR_STATE"/>
92 <uses-permission android:name="android.permission.VIBRATE_ALWAYS_ON"/>
Darryl L Johnson8ca4e812020-10-30 14:49:34 -070093 <uses-permission android:name="android.permission.CONTROL_DEVICE_STATE"/>
Kurt Dresner3d21c802020-09-29 15:32:11 -070094 <uses-permission android:name="android.permission.READ_PROJECTION_STATE"/>
Jing Jif45997c2021-03-26 00:50:09 -070095 <uses-permission android:name="android.permission.KILL_UID"/>
Adam Bodnarfcfeedc2021-03-25 13:39:25 -070096 <uses-permission
97 android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD"/>
Amith Yamasani5b5aa402014-06-01 20:10:14 -070098
sunjiand62dc392017-06-01 12:05:59 -070099 <!-- Uses API introduced in O (26) -->
100 <uses-sdk android:minSdkVersion="1"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700101 android:targetSdkVersion="26"/>
sunjiand62dc392017-06-01 12:05:59 -0700102
Suprabh Shukla77e22452018-05-22 18:02:37 -0700103 <application android:testOnly="true">
Ashwini Orugantie178c242020-03-18 15:46:39 -0700104 <uses-library android:name="android.test.runner"/>
Svetoslav Ganov0b29a582010-04-16 18:52:49 -0700105
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800106 <service android:name="com.android.server.accounts.TestAccountType1AuthenticatorService"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700107 android:exported="false">
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800108 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700109 <action android:name="android.accounts.AccountAuthenticator"/>
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800110 </intent-filter>
111 <meta-data android:name="android.accounts.AccountAuthenticator"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700112 android:resource="@xml/test_account_type1_authenticator"/>
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800113 </service>
114
115 <service android:name="com.android.server.accounts.TestAccountType2AuthenticatorService"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700116 android:exported="false">
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800117 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700118 <action android:name="android.accounts.AccountAuthenticator"/>
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800119 </intent-filter>
120 <meta-data android:name="android.accounts.AccountAuthenticator"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700121 android:resource="@xml/test_account_type2_authenticator"/>
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800122 </service>
123
Amith Yamasani5b5aa402014-06-01 20:10:14 -0700124 <receiver android:name="com.android.server.devicepolicy.ApplicationRestrictionsTest$AdminReceiver"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700125 android:permission="android.permission.BIND_DEVICE_ADMIN"
126 android:exported="true">
Amith Yamasani5b5aa402014-06-01 20:10:14 -0700127 <meta-data android:name="android.app.device_admin"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700128 android:resource="@xml/device_admin_sample"/>
Amith Yamasani5b5aa402014-06-01 20:10:14 -0700129 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700130 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Amith Yamasani5b5aa402014-06-01 20:10:14 -0700131 </intent-filter>
132 </receiver>
133
Makoto Onukif76b06a2015-09-22 15:03:44 -0700134 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin1"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700135 android:permission="android.permission.BIND_DEVICE_ADMIN"
136 android:exported="true">
Makoto Onukif76b06a2015-09-22 15:03:44 -0700137 <meta-data android:name="android.app.device_admin"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700138 android:resource="@xml/device_admin_sample"/>
Makoto Onukif76b06a2015-09-22 15:03:44 -0700139 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700140 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Makoto Onukif76b06a2015-09-22 15:03:44 -0700141 </intent-filter>
142 </receiver>
143
144 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin2"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700145 android:permission="android.permission.BIND_DEVICE_ADMIN"
146 android:exported="true">
Makoto Onukif76b06a2015-09-22 15:03:44 -0700147 <meta-data android:name="android.app.device_admin"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700148 android:resource="@xml/device_admin_sample"/>
Makoto Onukif76b06a2015-09-22 15:03:44 -0700149 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700150 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Makoto Onukif76b06a2015-09-22 15:03:44 -0700151 </intent-filter>
152 </receiver>
153
154 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin3"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700155 android:permission="android.permission.BIND_DEVICE_ADMIN"
156 android:exported="true">
Makoto Onukicc4bbeb2015-09-17 10:28:24 -0700157 <meta-data android:name="android.app.device_admin"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700158 android:resource="@xml/device_admin_sample"/>
Makoto Onukicc4bbeb2015-09-17 10:28:24 -0700159 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700160 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Makoto Onukicc4bbeb2015-09-17 10:28:24 -0700161 </intent-filter>
162 </receiver>
163
Ashwini Orugantie178c242020-03-18 15:46:39 -0700164 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$AdminNoPerm"
165 android:exported="true">
Makoto Onuki3ab6f2e2015-11-05 13:55:37 -0800166 <meta-data android:name="android.app.device_admin"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700167 android:resource="@xml/device_admin_sample"/>
Makoto Onuki3ab6f2e2015-11-05 13:55:37 -0800168 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700169 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
Makoto Onuki3ab6f2e2015-11-05 13:55:37 -0800170 </intent-filter>
171 </receiver>
172
Shreyas Basarge5db09082016-01-07 13:38:29 +0000173 <service android:name="com.android.server.job.MockPriorityJobService"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700174 android:permission="android.permission.BIND_JOB_SERVICE"/>
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800175
Ashwini Orugantie178c242020-03-18 15:46:39 -0700176 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity"/>
177 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity2"/>
178 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity3"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700179
180 <activity android:name="com.android.server.pm.ShortcutTestActivity"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700181 android:enabled="true"
182 android:exported="true"/>
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800183
Suprabh Shukla3c3af142018-03-30 00:28:37 -0700184 <activity android:name="com.android.server.pm.SuspendedDetailsActivity"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700185 android:enabled="true"
186 android:permission="android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS"
187 android:exported="true">
Suprabh Shukla3c3af142018-03-30 00:28:37 -0700188 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700189 <action android:name="android.intent.action.SHOW_SUSPENDED_APP_DETAILS"/>
190 <category android:name="android.intent.category.DEFAULT"/>
Suprabh Shukla3c3af142018-03-30 00:28:37 -0700191 </intent-filter>
192 </activity>
193
Ashwini Orugantie178c242020-03-18 15:46:39 -0700194 <activity android:name="com.android.server.accounts.AccountAuthenticatorDummyActivity"/>
195 <activity android:name="com.android.server.adb.AdbDebuggingManagerTestActivity"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700196
197 <activity-alias android:name="a.ShortcutEnabled"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700198 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
199 android:enabled="true"
200 android:exported="true">
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700201 </activity-alias>
202 <activity-alias android:name="a.ShortcutDisabled"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700203 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
204 android:enabled="false"
205 android:exported="true">
206 <meta-data android:name="android.app.shortcuts"
207 android:resource="@xml/shortcut_5"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700208 </activity-alias>
209 <activity-alias android:name="a.ShortcutUnexported"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700210 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
211 android:enabled="true"
212 android:exported="false">
213 <meta-data android:name="android.app.shortcuts"
214 android:resource="@xml/shortcut_5"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700215 </activity-alias>
216 <activity-alias android:name="a.Shortcut1"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700217 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
218 android:enabled="true"
219 android:exported="true">
220 <meta-data android:name="android.app.shortcuts"
221 android:resource="@xml/shortcut_1"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700222 </activity-alias>
Sunny Goyala6be88a2017-01-12 16:27:58 -0800223 <activity-alias android:name="a.ShortcutConfigActivity"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700224 android:targetActivity="com.android.server.pm.ShortcutTestActivity">
Sunny Goyala6be88a2017-01-12 16:27:58 -0800225 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700226 <action android:name="android.intent.action.CREATE_SHORTCUT"/>
Sunny Goyala6be88a2017-01-12 16:27:58 -0800227 </intent-filter>
228 </activity-alias>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700229
230 <activity-alias android:name="a.DisabledMain"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700231 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
232 android:enabled="false"
233 android:exported="true">
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700234 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700235 <action android:name="android.intent.action.MAIN"/>
236 <category android:name="android.intent.category.DEFAULT"/>
237 <category android:name="android.intent.category.LAUNCHER"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700238 </intent-filter>
239 </activity-alias>
240
241 <activity-alias android:name="a.UnexportedMain"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700242 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
243 android:enabled="true"
244 android:exported="false">
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700245 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700246 <action android:name="android.intent.action.MAIN"/>
247 <category android:name="android.intent.category.DEFAULT"/>
248 <category android:name="android.intent.category.LAUNCHER"/>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700249 </intent-filter>
250 </activity-alias>
251
Ashwini Orugantie178c242020-03-18 15:46:39 -0700252 <receiver android:name="com.android.server.appwidget.DummyAppWidget"
253 android:exported="true">
Sunny Goyal87a563e2017-01-01 19:42:45 -0800254 <intent-filter>
Ashwini Orugantie178c242020-03-18 15:46:39 -0700255 <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
Sunny Goyal87a563e2017-01-01 19:42:45 -0800256 </intent-filter>
257 <meta-data android:name="android.appwidget.provider"
Ashwini Orugantie178c242020-03-18 15:46:39 -0700258 android:resource="@xml/dummy_appwidget_info"/>
Sunny Goyal87a563e2017-01-01 19:42:45 -0800259 </receiver>
Neal Nguyen1a44d5d2010-01-13 10:42:43 -0800260 </application>
261
Ashwini Orugantie178c242020-03-18 15:46:39 -0700262 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
263 android:targetPackage="com.android.frameworks.servicestests"
264 android:label="Frameworks Services Tests"/>
Neal Nguyen1a44d5d2010-01-13 10:42:43 -0800265</manifest>