blob: 25bd4ec489a967af2027b4d5f030a9b24fcbadc6 [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"
Amith Yamasani4b2e9342011-03-31 12:38:53 -070018 package="com.android.frameworks.servicestests">
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080019
Neal Nguyen3433d3c2010-02-02 17:09:00 -080020 <uses-permission android:name="android.permission.READ_LOGS" />
Christine Frankse5bb03e2017-02-10 17:36:10 -080021 <uses-permission android:name="android.permission.ACCESS_VR_MANAGER" />
Hongming Jin81c4c8a2017-01-10 13:31:36 -080022 <uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
Neal Nguyen3433d3c2010-02-02 17:09:00 -080023 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
24 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
Jeff Sharkeyb7342ac2011-04-25 23:44:11 -070025 <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" />
Jeff Sharkey9599cc52011-05-22 14:59:31 -070028 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
29 <uses-permission android:name="android.permission.MANAGE_APP_TOKENS" />
Jeff Sharkeya63ba592011-07-19 23:47:12 -070030 <uses-permission android:name="android.permission.WAKE_LOCK" />
Suprabh Shukla09a88f52015-12-02 14:36:31 -080031 <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" />
Yorke Leebd54c2a2016-10-25 13:49:23 -070034 <uses-permission android:name="android.permission.REORDER_TASKS" />
Jeff Sharkey21c9c452011-06-07 12:26:43 -070035 <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
36 <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" />
Jeff Sharkey2242af22011-06-16 13:43:18 -070037 <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
Jeff Sharkey8fc27e82012-04-04 20:40:58 -070038 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
Amith Yamasani2a003292012-08-14 18:25:45 -070039 <uses-permission android:name="android.permission.MANAGE_USERS" />
Amith Yamasanidb6a14c2012-10-17 21:16:52 -070040 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Amith Yamasani5b5aa402014-06-01 20:10:14 -070041 <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" />
Paul Jensend7b6ca92015-05-13 14:05:12 -040042 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
43 <uses-permission android:name="android.permission.INTERNET" />
44 <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
Lorenzo Colitti7914ce52015-09-08 13:21:48 +090045 <uses-permission android:name="android.permission.PACKET_KEEPALIVE_OFFLOAD" />
Paul Jensen4e1d3fd2016-04-08 13:56:52 -040046 <uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT" />
Jorim Jaggi7b614372016-09-28 15:17:50 +020047 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />
Sudheer Shanka7cb54a32016-09-16 12:59:05 -070048 <uses-permission android:name="android.permission.INSTALL_PACKAGES" />
Andrii Kulian4ede3e02017-01-12 11:52:31 -080049 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
Sudheer Shanka686bb2d2017-03-20 12:16:32 -070050 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
51 <uses-permission android:name="android.permission.DELETE_PACKAGES" />
Suprabh Shukla3ac1daa2017-07-14 12:15:27 -070052 <uses-permission android:name="android.permission.GET_APP_OPS_STATS" />
53 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Suprabh Shukla9e41b7f2018-05-16 17:54:45 -070054 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES"/>
Suprabh Shukla3ac1daa2017-07-14 12:15:27 -070055 <uses-permission android:name="android.permission.DEVICE_POWER" />
56 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
57 <uses-permission android:name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" />
Wale Ogunwalec0b0f932017-11-01 12:51:43 -070058 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
59 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
Robert Carrb1579c82017-09-05 14:54:47 -070060 <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />
chaviwfbe47df2017-11-10 16:14:49 -080061 <uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
arangelov91201bd2018-01-04 17:10:21 +000062 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Svetoslav Ganov2d20fb42018-02-08 15:52:10 -080063 <uses-permission android:name="android.permission.WATCH_APPOPS" />
Dianne Hackborndd027b32018-01-19 17:44:46 -080064 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Suprabh Shukla021b57a2018-03-08 18:21:50 -080065 <uses-permission android:name="android.permission.SUSPEND_APPS"/>
Suprabh Shukla3c3af142018-03-30 00:28:37 -070066 <uses-permission android:name="android.permission.CONTROL_KEYGUARD"/>
Michael Grooverc76ea602018-08-09 16:12:42 -070067 <uses-permission android:name="android.permission.MANAGE_BIND_INSTANT_SERVICE"/>
Christine Franks39b03112018-07-03 14:46:07 -070068 <uses-permission android:name="android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS" />
Stanislav Zholnine992b1a2019-02-08 17:17:43 +000069 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
70 <uses-permission android:name="android.permission.WRITE_DEVICE_CONFIG" />
Christine Franksdacbb2d32019-04-05 18:33:55 -070071 <uses-permission android:name="android.permission.HARDWARE_TEST"/>
Winson4e3b4352019-05-07 16:29:59 -070072 <uses-permission android:name="android.permission.MANAGE_APPOPS"/>
Amith Yamasani5b5aa402014-06-01 20:10:14 -070073
sunjiand62dc392017-06-01 12:05:59 -070074 <!-- Uses API introduced in O (26) -->
75 <uses-sdk android:minSdkVersion="1"
76 android:targetSdkVersion="26"/>
77
Suprabh Shukla77e22452018-05-22 18:02:37 -070078 <application android:testOnly="true">
Neal Nguyen1a44d5d2010-01-13 10:42:43 -080079 <uses-library android:name="android.test.runner" />
Svetoslav Ganov0b29a582010-04-16 18:52:49 -070080
Hongming Jin81c4c8a2017-01-10 13:31:36 -080081 <service android:name="com.android.server.accounts.TestAccountType1AuthenticatorService"
82 android:exported="false">
83 <intent-filter>
84 <action android:name="android.accounts.AccountAuthenticator" />
85 </intent-filter>
86 <meta-data android:name="android.accounts.AccountAuthenticator"
87 android:resource="@xml/test_account_type1_authenticator" />
88 </service>
89
90 <service android:name="com.android.server.accounts.TestAccountType2AuthenticatorService"
91 android:exported="false">
92 <intent-filter>
93 <action android:name="android.accounts.AccountAuthenticator" />
94 </intent-filter>
95 <meta-data android:name="android.accounts.AccountAuthenticator"
96 android:resource="@xml/test_account_type2_authenticator" />
97 </service>
98
Amith Yamasani5b5aa402014-06-01 20:10:14 -070099 <receiver android:name="com.android.server.devicepolicy.ApplicationRestrictionsTest$AdminReceiver"
100 android:permission="android.permission.BIND_DEVICE_ADMIN">
101 <meta-data android:name="android.app.device_admin"
102 android:resource="@xml/device_admin_sample" />
103 <intent-filter>
104 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
105 </intent-filter>
106 </receiver>
107
Makoto Onukif76b06a2015-09-22 15:03:44 -0700108 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin1"
109 android:permission="android.permission.BIND_DEVICE_ADMIN">
110 <meta-data android:name="android.app.device_admin"
111 android:resource="@xml/device_admin_sample" />
112 <intent-filter>
113 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
114 </intent-filter>
115 </receiver>
116
117 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin2"
118 android:permission="android.permission.BIND_DEVICE_ADMIN">
119 <meta-data android:name="android.app.device_admin"
120 android:resource="@xml/device_admin_sample" />
121 <intent-filter>
122 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
123 </intent-filter>
124 </receiver>
125
126 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin3"
127 android:permission="android.permission.BIND_DEVICE_ADMIN">
Makoto Onukicc4bbeb2015-09-17 10:28:24 -0700128 <meta-data android:name="android.app.device_admin"
129 android:resource="@xml/device_admin_sample" />
130 <intent-filter>
131 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
132 </intent-filter>
133 </receiver>
134
Makoto Onuki3ab6f2e2015-11-05 13:55:37 -0800135 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$AdminNoPerm">
136 <meta-data android:name="android.app.device_admin"
137 android:resource="@xml/device_admin_sample" />
138 <intent-filter>
139 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
140 </intent-filter>
141 </receiver>
142
Shreyas Basarge5db09082016-01-07 13:38:29 +0000143 <service android:name="com.android.server.job.MockPriorityJobService"
144 android:permission="android.permission.BIND_JOB_SERVICE" />
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800145
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700146 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity" />
147 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity2" />
148 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity3" />
149
150 <activity android:name="com.android.server.pm.ShortcutTestActivity"
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800151 android:enabled="true" android:exported="true" />
152
Suprabh Shukla3c3af142018-03-30 00:28:37 -0700153 <activity android:name="com.android.server.pm.SuspendedDetailsActivity"
154 android:enabled="true"
155 android:permission="android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS">
156 <intent-filter>
157 <action android:name="android.intent.action.SHOW_SUSPENDED_APP_DETAILS" />
158 <category android:name="android.intent.category.DEFAULT" />
159 </intent-filter>
160 </activity>
161
Hongming Jin81c4c8a2017-01-10 13:31:36 -0800162 <activity android:name="com.android.server.accounts.AccountAuthenticatorDummyActivity" />
Michael Groover9e7b06e2018-12-28 19:55:51 -0800163 <activity android:name="com.android.server.adb.AdbDebuggingManagerTestActivity" />
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700164
165 <activity-alias android:name="a.ShortcutEnabled"
166 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
167 android:enabled="true" android:exported="true">
168 </activity-alias>
169 <activity-alias android:name="a.ShortcutDisabled"
170 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
171 android:enabled="false" android:exported="true">
172 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcut_5"/>
173 </activity-alias>
174 <activity-alias android:name="a.ShortcutUnexported"
175 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
176 android:enabled="true" android:exported="false">
177 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcut_5"/>
178 </activity-alias>
179 <activity-alias android:name="a.Shortcut1"
180 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
181 android:enabled="true" android:exported="true">
182 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcut_1"/>
183 </activity-alias>
Sunny Goyala6be88a2017-01-12 16:27:58 -0800184 <activity-alias android:name="a.ShortcutConfigActivity"
185 android:targetActivity="com.android.server.pm.ShortcutTestActivity">
186 <intent-filter>
187 <action android:name="android.intent.action.CREATE_SHORTCUT" />
188 </intent-filter>
189 </activity-alias>
Makoto Onukiee6b6e42016-06-29 17:34:02 -0700190
191 <activity-alias android:name="a.DisabledMain"
192 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
193 android:enabled="false" android:exported="true">
194 <intent-filter>
195 <action android:name="android.intent.action.MAIN" />
196 <category android:name="android.intent.category.DEFAULT" />
197 <category android:name="android.intent.category.LAUNCHER" />
198 </intent-filter>
199 </activity-alias>
200
201 <activity-alias android:name="a.UnexportedMain"
202 android:targetActivity="com.android.server.pm.ShortcutTestActivity"
203 android:enabled="true" android:exported="false">
204 <intent-filter>
205 <action android:name="android.intent.action.MAIN" />
206 <category android:name="android.intent.category.DEFAULT" />
207 <category android:name="android.intent.category.LAUNCHER" />
208 </intent-filter>
209 </activity-alias>
210
Sunny Goyal87a563e2017-01-01 19:42:45 -0800211 <receiver android:name="com.android.server.appwidget.DummyAppWidget">
212 <intent-filter>
213 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
214 </intent-filter>
215 <meta-data android:name="android.appwidget.provider"
216 android:resource="@xml/dummy_appwidget_info" />
217 </receiver>
Neal Nguyen1a44d5d2010-01-13 10:42:43 -0800218 </application>
219
220 <instrumentation
Brett Chabota26eda92018-07-23 13:08:30 -0700221 android:name="androidx.test.runner.AndroidJUnitRunner"
Santos Cordonb0608632017-04-05 10:31:15 -0700222 android:targetPackage="com.android.frameworks.servicestests"
223 android:label="Frameworks Services Tests" />
Neal Nguyen1a44d5d2010-01-13 10:42:43 -0800224</manifest>