1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2022 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.app.fgstesthelper">
20
21    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
22    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
23    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
24
25    <application android:label="Android Fgs Test Helper">
26
27        <service android:name="android.app.fgstesthelper.LocalForegroundServiceNoType"
28             android:exported="true">
29        </service>
30
31        <service android:name="android.app.fgstesthelper.LocalForegroundServiceAllTypes"
32             android:foregroundServiceType="dataSync|mediaPlayback|phoneCall|location|connectedDevice|mediaProjection|camera|microphone|health|remoteMessaging|mediaProcessing|systemExempted|specialUse"
33             android:exported="true">
34             <property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
35                 android:value="foo" />
36        </service>
37
38        <!-- Mock dialer activity for the ROLE_DIALER -->
39        <activity android:name="android.app.fgstesthelper.MockDialerActivity"
40            android:exported="true">
41            <intent-filter>
42                <action android:name="android.intent.action.DIAL" />
43                <category android:name="android.intent.category.DEFAULT"/>
44            </intent-filter>
45            <intent-filter>
46                <action android:name="android.intent.action.DIAL" />
47                <category android:name="android.intent.category.DEFAULT"/>
48                <data android:scheme="tel" />
49            </intent-filter>
50        </activity>
51        <!-- Mock in call service for the ROLE_DIALER -->
52        <service android:name="android.app.fgstesthelper.MockInCallService"
53            android:permission="android.permission.BIND_INCALL_SERVICE"
54            android:exported="true">
55            <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="true" />
56            <meta-data
57                android:name="android.telecom.IN_CALL_SERVICE_CAR_MODE_UI"
58                android:value="false" />
59            <intent-filter>
60                <action android:name="android.telecom.InCallService" />
61            </intent-filter>
62        </service>
63    </application>
64
65</manifest>
66