1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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="com.android.phone.testapps.smsmanagertestapp">
20    <uses-sdk android:minSdkVersion="24"
21         android:targetSdkVersion="29"/>
22    <uses-permission android:name="android.permission.SEND_SMS"/>
23    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
24    <uses-permission android:name="android.permission.PERFORM_IMS_SINGLE_REGISTRATION"/>
25    <application android:label="SmsManagerTestApp">
26        <activity android:name=".SmsManagerTestApp"
27             android:label="SmsManagerTestApp"
28             android:exported="true">
29            <intent-filter>
30                <action android:name="android.intent.action.MAIN"/>
31                <category android:name="android.intent.category.DEFAULT"/>
32                <category android:name="android.intent.category.LAUNCHER"/>
33            </intent-filter>
34        </activity>
35        <service android:name=".SmsManagerTestService"
36             android:exported="false"/>
37        <receiver android:name=".SendStatusReceiver"
38             android:exported="false">
39            <intent-filter>
40                <action android:name="com.android.phone.testapps.smsmanagertestapp.message_sent_action"/>
41                <data android:scheme="content"/>
42            </intent-filter>
43        </receiver>
44        <service android:name=".PersistentService"
45                 android:exported="false"
46                 android:process=":persistent"
47                 android:permission="android.permission.BIND_CARRIER_MESSAGING_CLIENT_SERVICE">
48            <intent-filter>
49                <action android:name="android.telephony.action.CARRIER_MESSAGING_CLIENT_SERVICE" />
50            </intent-filter>
51        </service>
52
53        <!-- Stuff required to become the default messaging app defined below, doesn't actually do
54             anything useful for now. -->
55
56        <!-- Fake BroadcastReceiver that listens for incoming SMS messages -->
57        <receiver android:name=".SmsReceiver"
58                  android:exported="true"
59                  android:permission="android.permission.BROADCAST_SMS">
60            <intent-filter>
61                <action android:name="android.provider.Telephony.SMS_DELIVER" />
62            </intent-filter>
63        </receiver>
64
65        <!-- Fake BroadcastReceiver that listens for incoming MMS messages -->
66        <receiver android:name=".MmsReceiver"
67                  android:permission="android.permission.BROADCAST_WAP_PUSH"
68                  android:exported="true">
69            <intent-filter>
70                <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
71                <data android:mimeType="application/vnd.wap.mms-message" />
72            </intent-filter>
73        </receiver>
74
75        <!-- Fake Activity that allows the user to send new SMS/MMS messages -->
76        <activity android:name=".ComposeSmsActivity" android:exported="true" >
77            <intent-filter>
78                <action android:name="android.intent.action.SEND" />
79                <action android:name="android.intent.action.SENDTO" />
80                <category android:name="android.intent.category.DEFAULT" />
81                <category android:name="android.intent.category.BROWSABLE" />
82                <data android:scheme="sms" />
83                <data android:scheme="smsto" />
84                <data android:scheme="mms" />
85                <data android:scheme="mmsto" />
86            </intent-filter>
87        </activity>
88
89        <!-- Fake Service that delivers messages from the phone "quick response" -->
90        <service android:name=".HeadlessSmsSendService"
91                 android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
92                 android:exported="true" >
93            <intent-filter>
94                <action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
95                <category android:name="android.intent.category.DEFAULT" />
96                <data android:scheme="sms" />
97                <data android:scheme="smsto" />
98                <data android:scheme="mms" />
99                <data android:scheme="mmsto" />
100            </intent-filter>
101        </service>
102
103    </application>
104</manifest>
105