1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.android.cts.appbinding.app"> 19 20 <uses-permission android:name="android.permission.WRITE_SMS"/> 21 <uses-permission android:name="android.permission.READ_SMS"/> 22 <uses-permission android:name="android.permission.SEND_SMS"/> 23 <uses-permission android:name="android.permission.RECEIVE_SMS"/> 24 <uses-permission android:name="android.permission.RECEIVE_MMS"/> 25 26 <application> 27 <uses-library android:name="android.test.runner"/> 28 29 <!-- Target to-be-bound service. --> 30 <service android:name=".MyService" 31 android:exported="true" 32 android:process=":persistent" 33 android:permission="android.permission.BIND_CARRIER_MESSAGING_CLIENT_SERVICE"> 34 <intent-filter> 35 <action android:name="android.telephony.action.CARRIER_MESSAGING_CLIENT_SERVICE"/> 36 </intent-filter> 37 </service> 38 <service android:name=".MyService2" 39 android:exported="true" 40 android:process=":persistent" 41 android:permission="android.permission.BIND_CARRIER_MESSAGING_CLIENT_SERVICE"> 42 <intent-filter> 43 <action android:name="android.telephony.action.CARRIER_MESSAGING_CLIENT_SERVICE"/> 44 </intent-filter> 45 </service> 46 47 <!-- Components needed to be an SMS app --> 48 <activity android:name=".MySendToActivity" 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 61 </activity> 62 63 <receiver android:name=".sms.MySmsReceiver" 64 android:permission="android.permission.BROADCAST_SMS" 65 android:exported="true"> 66 <intent-filter> 67 <action android:name="android.provider.Telephony.SMS_DELIVER"/> 68 </intent-filter> 69 </receiver> 70 71 <receiver android:name=".sms.MyMmsReceiver" 72 android:permission="android.permission.BROADCAST_WAP_PUSH" 73 android:exported="true"> 74 <intent-filter> 75 <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER"/> 76 <data android:mimeType="application/vnd.wap.mms-message"/> 77 </intent-filter> 78 79 </receiver> 80 81 <service android:name=".sms.MyRespondService" 82 android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE" 83 android:exported="true"> 84 <intent-filter> 85 <action android:name="android.intent.action.RESPOND_VIA_MESSAGE"/> 86 <category android:name="android.intent.category.DEFAULT"/> 87 <data android:scheme="sms"/> 88 <data android:scheme="smsto"/> 89 <data android:scheme="mms"/> 90 <data android:scheme="mmsto"/> 91 </intent-filter> 92 </service> 93 </application> 94 95 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 96 android:targetPackage="com.android.cts.appbinding.app"/> 97</manifest> 98