1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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.telephony.cts.sms.simplesmsapp"> 20 21 <uses-permission android:name="android.permission.READ_SMS"/> 22 23 <application android:label="SimpleSmsApp"> 24 <!-- BroadcastReceiver that listens for incoming SMS messages --> 25 <receiver android:name="android.telephony.cts.sms.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="android.telephony.cts.sms.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="android.app.Activity" 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="android.telephony.cts.sms.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 73 </application> 74 75 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 76 android:targetPackage="android.telephony.cts.sms.simplesmsapp"> 77 <meta-data android:name="listener" 78 android:value="com.android.cts.runner.CtsTestRunListener"/> 79 </instrumentation> 80</manifest> 81