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.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"/> 48 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/> 49 <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"/> 55 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES"/> 56 <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"/> 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.BLUETOOTH"/> 77 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> 78 <uses-permission android:name="android.permission.DUMP"/> 79 <uses-permission android:name="android.permission.READ_DREAM_STATE"/> 80 <uses-permission android:name="android.permission.WRITE_DREAM_STATE"/> 81 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> 82 <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE"/> 83 <uses-permission android:name="android.permission.MEDIA_RESOURCE_OVERRIDE_PID"/> 84 85 <!-- Uses API introduced in O (26) --> 86 <uses-sdk android:minSdkVersion="1" 87 android:targetSdkVersion="26"/> 88 89 <application android:testOnly="true"> 90 <uses-library android:name="android.test.runner"/> 91 92 <service android:name="com.android.server.accounts.TestAccountType1AuthenticatorService" 93 android:exported="false"> 94 <intent-filter> 95 <action android:name="android.accounts.AccountAuthenticator"/> 96 </intent-filter> 97 <meta-data android:name="android.accounts.AccountAuthenticator" 98 android:resource="@xml/test_account_type1_authenticator"/> 99 </service> 100 101 <service android:name="com.android.server.accounts.TestAccountType2AuthenticatorService" 102 android:exported="false"> 103 <intent-filter> 104 <action android:name="android.accounts.AccountAuthenticator"/> 105 </intent-filter> 106 <meta-data android:name="android.accounts.AccountAuthenticator" 107 android:resource="@xml/test_account_type2_authenticator"/> 108 </service> 109 110 <receiver android:name="com.android.server.devicepolicy.ApplicationRestrictionsTest$AdminReceiver" 111 android:permission="android.permission.BIND_DEVICE_ADMIN"> 112 <meta-data android:name="android.app.device_admin" 113 android:resource="@xml/device_admin_sample"/> 114 <intent-filter> 115 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 116 </intent-filter> 117 </receiver> 118 119 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin1" 120 android:permission="android.permission.BIND_DEVICE_ADMIN"> 121 <meta-data android:name="android.app.device_admin" 122 android:resource="@xml/device_admin_sample"/> 123 <intent-filter> 124 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 125 </intent-filter> 126 </receiver> 127 128 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin2" 129 android:permission="android.permission.BIND_DEVICE_ADMIN"> 130 <meta-data android:name="android.app.device_admin" 131 android:resource="@xml/device_admin_sample"/> 132 <intent-filter> 133 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 134 </intent-filter> 135 </receiver> 136 137 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$Admin3" 138 android:permission="android.permission.BIND_DEVICE_ADMIN"> 139 <meta-data android:name="android.app.device_admin" 140 android:resource="@xml/device_admin_sample"/> 141 <intent-filter> 142 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 143 </intent-filter> 144 </receiver> 145 146 <receiver android:name="com.android.server.devicepolicy.DummyDeviceAdmins$AdminNoPerm"> 147 <meta-data android:name="android.app.device_admin" 148 android:resource="@xml/device_admin_sample"/> 149 <intent-filter> 150 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 151 </intent-filter> 152 </receiver> 153 154 <service android:name="com.android.server.job.MockPriorityJobService" 155 android:permission="android.permission.BIND_JOB_SERVICE"/> 156 157 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity"/> 158 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity2"/> 159 <activity android:name="com.android.server.pm.BaseShortcutManagerTest$ShortcutActivity3"/> 160 161 <activity android:name="com.android.server.pm.ShortcutTestActivity" 162 android:enabled="true" 163 android:exported="true"/> 164 165 <activity android:name="com.android.server.pm.SuspendedDetailsActivity" 166 android:enabled="true" 167 android:permission="android.permission.SEND_SHOW_SUSPENDED_APP_DETAILS"> 168 <intent-filter> 169 <action android:name="android.intent.action.SHOW_SUSPENDED_APP_DETAILS"/> 170 <category android:name="android.intent.category.DEFAULT"/> 171 </intent-filter> 172 </activity> 173 174 <activity android:name="com.android.server.accounts.AccountAuthenticatorDummyActivity"/> 175 <activity android:name="com.android.server.adb.AdbDebuggingManagerTestActivity"/> 176 177 <activity-alias android:name="a.ShortcutEnabled" 178 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 179 android:enabled="true" 180 android:exported="true"> 181 </activity-alias> 182 <activity-alias android:name="a.ShortcutDisabled" 183 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 184 android:enabled="false" 185 android:exported="true"> 186 <meta-data android:name="android.app.shortcuts" 187 android:resource="@xml/shortcut_5"/> 188 </activity-alias> 189 <activity-alias android:name="a.ShortcutUnexported" 190 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 191 android:enabled="true" 192 android:exported="false"> 193 <meta-data android:name="android.app.shortcuts" 194 android:resource="@xml/shortcut_5"/> 195 </activity-alias> 196 <activity-alias android:name="a.Shortcut1" 197 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 198 android:enabled="true" 199 android:exported="true"> 200 <meta-data android:name="android.app.shortcuts" 201 android:resource="@xml/shortcut_1"/> 202 </activity-alias> 203 <activity-alias android:name="a.ShortcutConfigActivity" 204 android:targetActivity="com.android.server.pm.ShortcutTestActivity"> 205 <intent-filter> 206 <action android:name="android.intent.action.CREATE_SHORTCUT"/> 207 </intent-filter> 208 </activity-alias> 209 210 <activity-alias android:name="a.DisabledMain" 211 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 212 android:enabled="false" 213 android:exported="true"> 214 <intent-filter> 215 <action android:name="android.intent.action.MAIN"/> 216 <category android:name="android.intent.category.DEFAULT"/> 217 <category android:name="android.intent.category.LAUNCHER"/> 218 </intent-filter> 219 </activity-alias> 220 221 <activity-alias android:name="a.UnexportedMain" 222 android:targetActivity="com.android.server.pm.ShortcutTestActivity" 223 android:enabled="true" 224 android:exported="false"> 225 <intent-filter> 226 <action android:name="android.intent.action.MAIN"/> 227 <category android:name="android.intent.category.DEFAULT"/> 228 <category android:name="android.intent.category.LAUNCHER"/> 229 </intent-filter> 230 </activity-alias> 231 232 <receiver android:name="com.android.server.appwidget.DummyAppWidget"> 233 <intent-filter> 234 <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/> 235 </intent-filter> 236 <meta-data android:name="android.appwidget.provider" 237 android:resource="@xml/dummy_appwidget_info"/> 238 </receiver> 239 </application> 240 241 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 242 android:targetPackage="com.android.frameworks.servicestests" 243 android:label="Frameworks Services Tests"/> 244</manifest> 245