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 25 <application android:testOnly="true" android:manageSpaceActivity=".BackgroundActivity"> 26 <receiver android:name=".StartBackgroundActivityReceiver" 27 android:exported="true"/> 28 <receiver android:name=".SendPendingIntentReceiver" 29 android:exported="true"/> 30 <service android:name=".BackgroundActivityTestService" 31 android:exported="true"/> 32 <receiver android:name=".SimpleAdminReceiver" 33 android:permission="android.permission.BIND_DEVICE_ADMIN" 34 android:exported="true"> 35 <meta-data android:name="android.app.device_admin" 36 android:resource="@xml/device_admin"/> 37 <intent-filter> 38 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/> 39 </intent-filter> 40 </receiver> 41 <activity android:name=".ForegroundActivity" 42 android:taskAffinity=".am_cts_bg_task_a" 43 android:exported="true"/> 44 <activity android:name=".BackgroundActivity" 45 android:taskAffinity=".am_cts_bg_task_b" 46 android:exported="true"/> 47 <activity android:name=".SecondBackgroundActivity" 48 android:exported="true"/> 49 <activity android:name=".RelaunchingActivity" 50 android:exported="true"/> 51 <activity android:name=".PipActivity" 52 android:exported="true" 53 android:supportsPictureInPicture="true"/> 54 <activity android:name=".VirtualDisplayActivity" 55 android:exported="true"/> 56 <activity android:name=".WidgetConfigTestActivity" 57 android:exported="true"/> 58 <receiver android:name=".WidgetProvider" android:exported="true" > 59 <intent-filter> 60 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 61 </intent-filter> 62 <meta-data android:name="android.appwidget.provider" 63 android:resource="@xml/my_appwidget_info" /> 64 </receiver> 65 </application> 66</manifest> 67