• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //packages/services/Telephony/testapps/TestRcsApp/TestApp/AndroidManifest.xml
4**
5** Copyright 2020, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20<manifest xmlns:android="http://schemas.android.com/apk/res/android"
21    package="com.google.android.sample.rcsclient"
22    android:versionCode="14"
23    android:versionName="1.0.13">
24
25    <uses-sdk
26        android:minSdkVersion="30"
27        android:targetSdkVersion="30" />
28
29    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
30    <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
31    <!-- Granted by SMS role-->
32    <uses-permission android:name="android.permission.PERFORM_IMS_SINGLE_REGISTRATION" />
33    <!-- Required for UCE and granted by SMS role -->
34    <uses-permission android:name="android.permission.READ_CONTACTS" />
35    <uses-permission android:name="android.permission.ACCESS_RCS_USER_CAPABILITY_EXCHANGE" />
36
37    <application
38        android:allowBackup="true"
39        android:icon="@mipmap/ic_launcher"
40        android:label="@string/app_name"
41        android:roundIcon="@mipmap/ic_launcher_round"
42        android:supportsRtl="true"
43        android:theme="@style/AppTheme">
44        <activity android:name=".MainActivity">
45            <intent-filter>
46                <action android:name="android.intent.action.MAIN" />
47                <category android:name="android.intent.category.LAUNCHER" />
48            </intent-filter>
49        </activity>
50
51        <activity android:name=".DelegateActivity" />
52        <activity android:name=".UceActivity" />
53        <activity android:name=".GbaActivity" />
54        <activity android:name=".PhoneNumberActivity" />
55        <activity android:name=".ChatActivity" />
56        <activity android:name=".ContactListActivity" />
57        <activity android:name=".ProvisioningActivity" />
58        <activity android:name=".FileUploadActivity" />
59
60        <provider
61            android:name=".util.ChatProvider"
62            android:authorities="rcsprovider" />
63
64
65        <!-- In order to make this App eligible to be selected as the default Message App, the
66             following components are required to be declared even if they are not implemented.
67        -->
68
69        <!-- BroadcastReceiver that listens for incoming SMS messages -->
70        <receiver
71            android:name=".SmsReceiver"
72            android:permission="android.permission.BROADCAST_SMS">
73            <intent-filter>
74                <action android:name="android.provider.Telephony.SMS_DELIVER" />
75            </intent-filter>
76        </receiver>
77
78        <!-- BroadcastReceiver that listens for incoming MMS messages -->
79        <receiver
80            android:name=".MmsReceiver"
81            android:permission="android.permission.BROADCAST_WAP_PUSH">
82            <intent-filter>
83                <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
84                <data android:mimeType="application/vnd.wap.mms-message" />
85            </intent-filter>
86        </receiver>
87
88        <!-- Activity that allows the user to send new SMS/MMS messages -->
89        <activity android:name=".ComposeSmsActivity">
90            <intent-filter>
91                <action android:name="android.intent.action.SEND" />
92                <action android:name="android.intent.action.SENDTO" />
93
94                <category android:name="android.intent.category.DEFAULT" />
95                <category android:name="android.intent.category.BROWSABLE" />
96
97                <data android:scheme="sms" />
98                <data android:scheme="smsto" />
99                <data android:scheme="mms" />
100                <data android:scheme="mmsto" />
101            </intent-filter>
102        </activity>
103
104        <!-- Service that delivers messages from the phone "quick response" -->
105        <service
106            android:name=".HeadlessSmsSendService"
107            android:exported="true"
108            android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE">
109            <intent-filter>
110                <action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
111                <category android:name="android.intent.category.DEFAULT" />
112
113                <data android:scheme="sms" />
114                <data android:scheme="smsto" />
115                <data android:scheme="mms" />
116                <data android:scheme="mmsto" />
117            </intent-filter>
118        </service>
119
120    </application>
121
122</manifest>
123