1<?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 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.frameworks.servicestests"> 19 20 <uses-permission android:name="android.permission.READ_LOGS" /> 21 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" /> 22 <uses-permission android:name="android.permission.ACCESS_VR_MANAGER" /> 23 <uses-permission android:name="android.permission.ACCOUNT_MANAGER" /> 24 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 25 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> 26 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 27 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 28 <uses-permission android:name="android.permission.BROADCAST_STICKY" /> 29 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" /> 30 <uses-permission android:name="android.permission.MANAGE_APP_TOKENS" /> 31 <uses-permission android:name="android.permission.WAKE_LOCK" /> 32 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 33 <uses-permission android:name="android.permission.REAL_GET_TASKS" /> 34 <uses-permission android:name="android.permission.GET_DETAILED_TASKS" /> 35 <uses-permission android:name="android.permission.REORDER_TASKS" /> 36 <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" /> 37 <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" /> 38 <uses-permission android:name="android.permission.OBSERVE_NETWORK_POLICY" /> 39 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 40 <uses-permission android:name="android.permission.MANAGE_USERS" /> 41 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> 42 <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" /> 43 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> 44 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> 45 <uses-permission android:name="android.permission.INTERNET" /> 46 <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> 47 <uses-permission android:name="android.permission.PACKET_KEEPALIVE_OFFLOAD" /> 48 <uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT" /> 49 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" /> 50 <uses-permission android:name="android.permission.INSTALL_PACKAGES" /> 51 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /> 52 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" /> 53 <uses-permission android:name="android.permission.DELETE_PACKAGES" /> 54 <uses-permission android:name="android.permission.GET_APP_OPS_STATS" /> 55 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /> 56 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES"/> 57 <uses-permission android:name="android.permission.DEVICE_POWER" /> 58 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" /> 59 <uses-permission android:name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" /> 60 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> 61 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" /> 62 <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" /> 63 <uses-permission android:name="android.permission.READ_FRAME_BUFFER" /> 64 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 65 <uses-permission android:name="android.permission.WATCH_APPOPS" /> 66 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> 67 <uses-permission android:name="android.permission.SUSPEND_APPS"/> 68 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE" /> 69 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG" /> 70 <uses-permission android:name="android.permission.CONTROL_KEYGUARD"/> 71 <uses-permission android:name="android.permission.MANAGE_BIND_INSTANT_SERVICE"/> 72 <uses-permission android:name="android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS" /> 73 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> 74 <uses-permission android:name="android.permission.WRITE_DEVICE_CONFIG" /> 75 <uses-permission android:name="android.permission.HARDWARE_TEST"/> 76 <uses-permission android:name="android.permission.MANAGE_APPOPS"/> 77 <uses-permission android:name="android.permission.BLUETOOTH"/> 78 79 80 <!-- Uses API introduced in O (26) --> 81 <uses-sdk android:minSdkVersion="1" 82 android:targetSdkVersion="26"/> 83 84 <application android:testOnly="true"> 85 <uses-library android:name="android.test.runner" /> 86 87 <service android:name="com.android.server.accounts.TestAccountType1AuthenticatorService" 88 android:exported="false"> 89 <intent-filter> 90 <action android:name="android.accounts.AccountAuthenticator" /> 91 </intent-filter> 92 <meta-data android:name="android.accounts.AccountAuthenticator" 93 android:resource="@xml/test_account_type1_authenticator" /> 94 </service> 95 96 <service android:name="com.android.server.accounts.TestAccountType2AuthenticatorService" 97 android:exported="false"> 98 <intent-filter> 99 <action android:name="android.accounts.AccountAuthenticator" /> 100 </intent-filter> 101 <meta-data android:name="android.accounts.AccountAuthenticator" 102 android:resource="@xml/test_account_type2_authenticator" /> 103 </service> 104 105 <receiver android:name="com.android.server.devicepolicy.ApplicationRestrictionsTest$AdminReceiver" 106 android:permission="android.permission.BIND_DEVICE_ADMIN"> 107 <meta-data android:name="android.app.device_admin" 108 android:resource="@xml/device_admin_sample" /> 109 <intent-filter> 110 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 111 </intent-filter> 112 </receiver> 113 114 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin1" 115 android:permission="android.permission.BIND_DEVICE_ADMIN"> 116 <meta-data android:name="android.app.device_admin" 117 android:resource="@xml/device_admin_sample" /> 118 <intent-filter> 119 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 120 </intent-filter> 121 </receiver> 122 123 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin2" 124 android:permission="android.permission.BIND_DEVICE_ADMIN"> 125 <meta-data android:name="android.app.device_admin" 126 android:resource="@xml/device_admin_sample" /> 127 <intent-filter> 128 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 129 </intent-filter> 130 </receiver> 131 132 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin3" 133 android:permission="android.permission.BIND_DEVICE_ADMIN"> 134 <meta-data android:name="android.app.device_admin" 135 android:resource="@xml/device_admin_sample" /> 136 <intent-filter> 137 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 138 </intent-filter> 139 </receiver> 140 141 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$AdminNoPerm"> 142 <meta-data android:name="android.app.device_admin" 143 android:resource="@xml/device_admin_sample" /> 144 <intent-filter> 145 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" /> 146 </intent-filter> 147 </receiver> 148 149 <service android:name="com.android.server.job.MockPriorityJobService" 150 android:permission="android.permission.BIND_JOB_SERVICE" /> 151 152 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity" /> 153 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity2" /> 154 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity3" /> 155 156 <activity android:name="com.android.server.pm.ShortcutTestActivity" 157 android:enabled="true" android:exported="true" /> 158 159 <activity android:name="com.android.server.pm.SuspendedDetailsActivity" 160 android:enabled="true" 161 android:permission="android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS"> 162 <intent-filter> 163 <action android:name="android.intent.action.SHOW_SUSPENDED_APP_DETAILS" /> 164 <category android:name="android.intent.category.DEFAULT" /> 165 </intent-filter> 166 </activity> 167 168 <activity android:name="com.android.server.accounts.AccountAuthenticatorDummyActivity" /> 169 <activity android:name="com.android.server.adb.AdbDebuggingManagerTestActivity" /> 170 171 <activity-alias android:name="a.ShortcutEnabled" 172 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 173 android:enabled="true" android:exported="true"> 174 </activity-alias> 175 <activity-alias android:name="a.ShortcutDisabled" 176 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 177 android:enabled="false" android:exported="true"> 178 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcut_5"/> 179 </activity-alias> 180 <activity-alias android:name="a.ShortcutUnexported" 181 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 182 android:enabled="true" android:exported="false"> 183 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcut_5"/> 184 </activity-alias> 185 <activity-alias android:name="a.Shortcut1" 186 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 187 android:enabled="true" android:exported="true"> 188 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcut_1"/> 189 </activity-alias> 190 <activity-alias android:name="a.ShortcutConfigActivity" 191 android:targetActivity="com.android.server.pm.ShortcutTestActivity"> 192 <intent-filter> 193 <action android:name="android.intent.action.CREATE_SHORTCUT" /> 194 </intent-filter> 195 </activity-alias> 196 197 <activity-alias android:name="a.DisabledMain" 198 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 199 android:enabled="false" android:exported="true"> 200 <intent-filter> 201 <action android:name="android.intent.action.MAIN" /> 202 <category android:name="android.intent.category.DEFAULT" /> 203 <category android:name="android.intent.category.LAUNCHER" /> 204 </intent-filter> 205 </activity-alias> 206 207 <activity-alias android:name="a.UnexportedMain" 208 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 209 android:enabled="true" android:exported="false"> 210 <intent-filter> 211 <action android:name="android.intent.action.MAIN" /> 212 <category android:name="android.intent.category.DEFAULT" /> 213 <category android:name="android.intent.category.LAUNCHER" /> 214 </intent-filter> 215 </activity-alias> 216 217 <receiver android:name="com.android.server.appwidget.DummyAppWidget"> 218 <intent-filter> 219 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 220 </intent-filter> 221 <meta-data android:name="android.appwidget.provider" 222 android:resource="@xml/dummy_appwidget_info" /> 223 </receiver> 224 </application> 225 226 <instrumentation 227 android:name="androidx.test.runner.AndroidJUnitRunner" 228 android:targetPackage="com.android.frameworks.servicestests" 229 android:label="Frameworks Services Tests" /> 230</manifest> 231