1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4  ~ Copyright (C) 2021 The Android Open Source Project
5  ~
6  ~ Licensed under the Apache License, Version 2.0 (the "License");
7  ~ you may not use this file except in compliance with the License.
8  ~ You may obtain a copy of the License at
9  ~
10  ~      http://www.apache.org/licenses/LICENSE-2.0
11  ~
12  ~ Unless required by applicable law or agreed to in writing, software
13  ~ distributed under the License is distributed on an "AS IS" BASIS,
14  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ~ See the License for the specific language governing permissions and
16  ~ limitations under the License.
17  -->
18
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20          package="com.android.bedstead.testapp.SmsApp">
21    <application android:testOnly="true" android:label="SmsApp">
22
23        <!-- BroadcastReceiver that listens for incoming SMS messages -->
24        <receiver android:name=".SmsReceiver"
25                  android:permission="android.permission.BROADCAST_SMS"
26                  android:exported="true">
27            <intent-filter>
28                <action android:name="android.provider.Telephony.SMS_DELIVER"/>
29            </intent-filter>
30        </receiver>
31
32        <!-- BroadcastReceiver that listens for incoming MMS messages -->
33        <receiver android:name=".MmsReceiver"
34                  android:permission="android.permission.BROADCAST_WAP_PUSH"
35                  android:exported="true">
36            <intent-filter>
37                <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER"/>
38                <data android:mimeType="application/vnd.wap.mms-message"/>
39            </intent-filter>
40        </receiver>
41
42        <!-- Activity that allows the user to send new SMS/MMS messages -->
43        <activity android:name=".SmsSenderActivity"
44                  android:exported="true">
45            <intent-filter>
46                <action android:name="android.intent.action.SEND"/>
47                <action android:name="android.intent.action.SENDTO"/>
48                <category android:name="android.intent.category.DEFAULT"/>
49                <category android:name="android.intent.category.BROWSABLE"/>
50                <data android:scheme="sms"/>
51                <data android:scheme="smsto"/>
52                <data android:scheme="mms"/>
53                <data android:scheme="mmsto"/>
54            </intent-filter>
55        </activity>
56
57        <!-- Service that delivers messages from the phone "quick response"
58             -->
59        <service android:name=".HeadlessSmsSendService"
60                 android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
61                 android:exported="true">
62            <intent-filter>
63                <action android:name="android.intent.action.RESPOND_VIA_MESSAGE"/>
64                <category android:name="android.intent.category.DEFAULT"/>
65                <data android:scheme="sms"/>
66                <data android:scheme="smsto"/>
67                <data android:scheme="mms"/>
68                <data android:scheme="mmsto"/>
69            </intent-filter>
70        </service>
71    </application>
72    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29"/>
73</manifest>
74