1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2019 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17 18<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19 package="android.server.wm.backgroundactivity.appa"> 20 21 <!-- To enable the app to start activities from the background. --> 22 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 23 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" /> 24 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> 25 26 <queries> 27 <package android:name="android.server.wm.backgroundactivity.appa" /> 28 <intent> 29 <action android:name="android.intent.action.TTS_SERVICE" /> 30 </intent> 31 </queries> 32 33 <application android:testOnly="true" android:manageSpaceActivity=".BackgroundActivity" 34 android:allowCrossUidActivitySwitchFromBelow = "false"> 35 <uses-library android:name="androidx.window.extensions" 36 android:required="false" /> 37 <service android:name="android.server.wm.backgroundactivity.common.TestService" 38 android:exported="true"/> 39 <receiver android:name=".SimpleAdminReceiver" 40 android:permission="android.permission.BIND_DEVICE_ADMIN" 41 android:exported="true"> 42 <meta-data android:name="android.app.device_admin" 43 android:resource="@xml/device_admin"/> 44 <intent-filter> 45 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 46 </intent-filter> 47 </receiver> 48 <activity android:name=".ForegroundActivity" 49 android:taskAffinity=".am_cts_bg_task_a" 50 android:allowUntrustedActivityEmbedding="true" 51 android:exported="true"/> 52 <activity android:name=".ForegroundEmbeddingActivity" 53 android:taskAffinity=".am_cts_bg_task_asd" 54 android:exported="true"/> 55 <activity android:name=".BackgroundActivity" 56 android:taskAffinity=".am_cts_bg_task_b" 57 android:exported="true"> 58 <intent-filter android:priority="-1"> 59 <action android:name="StartNextMatchingActivityAction" /> 60 <category android:name="android.intent.category.DEFAULT" /> 61 </intent-filter> 62 </activity> 63 <activity android:name=".SecondBackgroundActivity" 64 android:exported="true"/> 65 <activity android:name=".RelaunchingActivity" 66 android:exported="true"/> 67 <activity android:name=".PipActivity" 68 android:exported="true" 69 android:supportsPictureInPicture="true"/> 70 <activity android:name=".LaunchIntoPipActivity" 71 android:exported="true"/> 72 <activity android:name=".VirtualDisplayActivity" 73 android:exported="true"/> 74 <activity android:name=".WidgetConfigTestActivity" 75 android:exported="true"/> 76 <activity 77 android:name=".StartNextMatchingActivity" 78 android:exported="true"> 79 <intent-filter> 80 <action android:name="android.intent.action.MAIN" /> 81 <category android:name="android.intent.category.LAUNCHER" /> 82 <action android:name="StartNextMatchingActivityAction" /> 83 <category android:name="android.intent.category.DEFAULT" /> 84 </intent-filter> 85 </activity> 86 <receiver android:name=".WidgetProvider" android:exported="true" > 87 <intent-filter> 88 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 89 </intent-filter> 90 <meta-data android:name="android.appwidget.provider" 91 android:resource="@xml/my_appwidget_info" /> 92 </receiver> 93 <activity android:name=".SystemBoundRelaunchingActivity" android:exported="true"> 94 <intent-filter> 95 <action android:name="android.intent.action.MAIN" /> 96 <category android:name="android.intent.category.DEFAULT" /> 97 </intent-filter> 98 </activity> 99 <service 100 android:name=".ActivityStarterService" 101 android:enabled="true" 102 android:exported="true"> 103 </service> 104 <receiver 105 android:name=".SimpleBroadcastReceiver" 106 android:exported="true"/> 107 <activity 108 android:name=".StartPendingIntentActivity" 109 android:exported="true"/> 110 <activity 111 android:name=".BindServiceActivity" 112 android:exported="true" /> 113 </application> 114</manifest> 115