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 <intent> 28 <action android:name="android.intent.action.TTS_SERVICE" /> 29 </intent> 30 </queries> 31 32 <application android:testOnly="true" android:manageSpaceActivity=".BackgroundActivity"> 33 <uses-library android:name="androidx.window.extensions" 34 android:required="false" /> 35 <receiver android:name=".StartBackgroundActivityReceiver" 36 android:exported="true"/> 37 <receiver android:name=".SendPendingIntentReceiver" 38 android:exported="true"/> 39 <service android:name=".BackgroundActivityTestService" 40 android:exported="true"/> 41 <receiver android:name=".SimpleAdminReceiver" 42 android:permission="android.permission.BIND_DEVICE_ADMIN" 43 android:exported="true"> 44 <meta-data android:name="android.app.device_admin" 45 android:resource="@xml/device_admin"/> 46 <intent-filter> 47 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 48 </intent-filter> 49 </receiver> 50 <activity android:name=".ForegroundActivity" 51 android:taskAffinity=".am_cts_bg_task_a" 52 android:exported="true"/> 53 <activity android:name=".ForegroundEmbeddingActivity" 54 android:taskAffinity=".am_cts_bg_task_asd" 55 android:exported="true"/> 56 <activity android:name=".BackgroundActivity" 57 android:taskAffinity=".am_cts_bg_task_b" 58 android:exported="true"> 59 <intent-filter android:priority="-1"> 60 <action android:name="StartNextMatchingActivityAction" /> 61 <category android:name="android.intent.category.DEFAULT" /> 62 </intent-filter> 63 </activity> 64 <activity android:name=".SecondBackgroundActivity" 65 android:exported="true"/> 66 <activity android:name=".RelaunchingActivity" 67 android:exported="true"/> 68 <activity android:name=".PipActivity" 69 android:exported="true" 70 android:supportsPictureInPicture="true"/> 71 <activity android:name=".LaunchIntoPipActivity" 72 android:exported="true"/> 73 <activity android:name=".VirtualDisplayActivity" 74 android:exported="true"/> 75 <activity android:name=".WidgetConfigTestActivity" 76 android:exported="true"/> 77 <activity 78 android:name=".StartNextMatchingActivity" 79 android:exported="true"> 80 <intent-filter> 81 <action android:name="android.intent.action.MAIN" /> 82 <category android:name="android.intent.category.LAUNCHER" /> 83 <action android:name="StartNextMatchingActivityAction" /> 84 <category android:name="android.intent.category.DEFAULT" /> 85 </intent-filter> 86 </activity> 87 <receiver android:name=".WidgetProvider" android:exported="true" > 88 <intent-filter> 89 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 90 </intent-filter> 91 <meta-data android:name="android.appwidget.provider" 92 android:resource="@xml/my_appwidget_info" /> 93 </receiver> 94 <activity android:name=".SystemBoundRelaunchingActivity" android:exported="true"> 95 <intent-filter> 96 <action android:name="android.intent.action.MAIN" /> 97 <category android:name="android.intent.category.DEFAULT" /> 98 </intent-filter> 99 </activity> 100 <service 101 android:name=".ActivityStarterService" 102 android:enabled="true" 103 android:exported="true"> 104 </service> 105 </application> 106</manifest> 107