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