xref: /aosp_15_r20/cts/tests/app/shared/AndroidManifest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 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.stubs.shared">
20    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
21    <application>
22        <service
23            android:name="android.app.stubs.shared.CloseSystemDialogsTestService"
24            android:exported="true" />
25
26        <service
27            android:name=".AppAccessibilityService"
28            android:exported="true"
29            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
30            <intent-filter>
31                <action android:name="android.accessibilityservice.AccessibilityService" />
32            </intent-filter>
33        </service>
34
35        <!-- The following components are needed for the test to hold the SMS role -->
36        <activity android:name="android.app.stubs.shared.SmsActivity"
37            android:exported="true">
38            <intent-filter>
39                <action android:name="android.intent.action.SENDTO" />
40                <category android:name="android.intent.category.DEFAULT" />
41                <data android:scheme="smsto" />
42            </intent-filter>
43        </activity>
44
45        <!-- The following components are needed for the test app to hold the SMS role -->
46
47        <service android:name="android.app.stubs.shared.SmsService"
48            android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
49            android:exported="true">
50            <intent-filter>
51                <action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
52                <category android:name="android.intent.category.DEFAULT" />
53                <data android:scheme="smsto" />
54            </intent-filter>
55        </service>
56
57        <receiver android:name="android.app.stubs.shared.SmsReceiver"
58            android:permission="android.permission.BROADCAST_SMS"
59            android:exported="true">
60            <intent-filter>
61                <action android:name="android.provider.Telephony.SMS_DELIVER" />
62            </intent-filter>
63        </receiver>
64
65        <receiver android:name="android.app.stubs.shared.SmsReceiver2"
66            android:permission="android.permission.BROADCAST_WAP_PUSH"
67            android:exported="true">
68            <intent-filter>
69                <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
70                <data android:mimeType="application/vnd.wap.mms-message" />
71            </intent-filter>
72        </receiver>
73    </application>
74</manifest>
75