• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
22        android:testOnly="true">
23
24        <!-- BroadcastReceiver that listens for incoming SMS messages -->
25        <receiver android:name=".SmsReceiver"
26                  android:permission="android.permission.BROADCAST_SMS"
27                  android:exported="true">
28            <intent-filter>
29                <action android:name="android.provider.Telephony.SMS_DELIVER"/>
30            </intent-filter>
31        </receiver>
32
33        <!-- BroadcastReceiver that listens for incoming MMS messages -->
34        <receiver android:name=".MmsReceiver"
35                  android:permission="android.permission.BROADCAST_WAP_PUSH"
36                  android:exported="true">
37            <intent-filter>
38                <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER"/>
39                <data android:mimeType="application/vnd.wap.mms-message"/>
40            </intent-filter>
41        </receiver>
42
43        <!-- Activity that allows the user to send new SMS/MMS messages -->
44        <activity android:name=".SmsSenderActivity"
45                  android:exported="true">
46            <intent-filter>
47                <action android:name="android.intent.action.SEND"/>
48                <action android:name="android.intent.action.SENDTO"/>
49                <category android:name="android.intent.category.DEFAULT"/>
50                <category android:name="android.intent.category.BROWSABLE"/>
51                <data android:scheme="sms"/>
52                <data android:scheme="smsto"/>
53                <data android:scheme="mms"/>
54                <data android:scheme="mmsto"/>
55            </intent-filter>
56        </activity>
57
58        <!-- Service that delivers messages from the phone "quick response"
59             -->
60        <service android:name=".HeadlessSmsSendService"
61                 android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
62                 android:exported="true">
63            <intent-filter>
64                <action android:name="android.intent.action.RESPOND_VIA_MESSAGE"/>
65                <category android:name="android.intent.category.DEFAULT"/>
66                <data android:scheme="sms"/>
67                <data android:scheme="smsto"/>
68                <data android:scheme="mms"/>
69                <data android:scheme="mmsto"/>
70            </intent-filter>
71        </service>
72    </application>
73    <uses-sdk android:minSdkVersion="28" android:targetSdkVersion="28"/>
74</manifest>
75