blob: e3eb2f3b7145ac69f6e18149f3af1f2293a65566 [file] [log] [blame]
Ben Gilad4937ff92013-12-12 12:05:37 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070018 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
19 package="com.android.server.telecom"
20 coreApp="true"
21 android:sharedUserId="android.uid.system">
Santos Cordon3e3b5412013-12-16 17:33:45 -080022
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070023 <protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION"/>
24 <protected-broadcast android:name="com.android.server.telecom.MESSAGE_SENT"/>
Hall Liuaf74a5c2018-09-19 18:05:51 -070025
Bryce Lee41045b42015-08-05 13:10:39 -070026
Ben Gilad4937ff92013-12-12 12:05:37 -080027 <!-- Prevents the activity manager from delaying any activity-start
28 requests by this package, including requests immediately after
29 the user presses "home". -->
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070030 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE"/>
31 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE"/>
32 <uses-permission android:name="android.permission.BLUETOOTH"/>
33 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
34 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO"/>
35 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"/>
36 <uses-permission android:name="android.permission.CALL_PRIVILEGED"/>
37 <uses-permission android:name="android.permission.HANDLE_CALL_INTENT"/>
38 <uses-permission android:name="android.permission.HANDLE_CAR_MODE_CHANGES"/>
39 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
40 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
41 <uses-permission android:name="android.permission.MANAGE_USERS"/>
42 <uses-permission android:name="android.permission.MANAGE_ROLE_HOLDERS"/>
43 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
Tyler Gunn5d66e1d2018-01-25 20:22:49 -080044 <!-- Required to determine source of ongoing audio recordings. -->
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070045 <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>
46 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
47 <uses-permission android:name="android.permission.READ_CALL_LOG"/>
48 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
49 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
50 <uses-permission android:name="android.permission.SEND_SMS"/>
51 <uses-permission android:name="android.permission.STOP_APP_SWITCHES"/>
52 <uses-permission android:name="android.permission.VIBRATE"/>
53 <uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
54 <uses-permission android:name="android.permission.WAKE_LOCK"/>
55 <uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS"/>
56 <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS"/>
57 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
Tyler Gunnd1607682014-08-15 11:29:12 -070058
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070059 <permission android:name="android.permission.BROADCAST_CALLLOG_INFO"
60 android:label="Broadcast the call type/duration information"
61 android:protectionLevel="signature|system"/>
Yong Jiang271b9ae2014-10-09 12:08:54 -050062
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070063 <permission android:name="android.permission.PROCESS_CALLLOG_INFO"
64 android:label="Register to handle the broadcasted call type/duration information"
65 android:protectionLevel="signature|system"/>
Yong Jiang271b9ae2014-10-09 12:08:54 -050066
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070067 <permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
68 android:label="Broadcast phone account registration"
69 android:protectionLevel="signature|system"/>
Santos Cordon4c778492015-02-27 15:13:35 -080070
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070071 <permission android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
72 android:label="Process phone account registration"
73 android:protectionLevel="signature|system"/>
Santos Cordon4c778492015-02-27 15:13:35 -080074
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070075 <permission android:name="android.permission.HANDLE_CALL_INTENT"
76 android:label="Protects handling the call intent via the TelecomManager API."
77 android:protectionLevel="signature|system"/>
Tyler Gunnefe26992018-10-26 09:24:13 -070078
Santos Cordon581ec4a2014-12-15 09:59:26 -080079 <application android:label="@string/telecommAppLabel"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -070080 android:icon="@mipmap/ic_launcher_phone"
81 android:allowBackup="false"
82 android:supportsRtl="true"
83 android:process="system"
84 android:usesCleartextTraffic="false"
85 android:defaultToDeviceProtectedStorage="true"
86 android:directBootAware="true">
Santos Cordon10e68322013-12-12 16:06:56 -080087
88 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
89 We have three different intents through which a call can be initiated each with its
90 own behavior.
91 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
92 intent, an app can call any number except emergency numbers.
93 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
94 permission, which is only held by the system dialer and the emergency dialer at the
95 time of this writing. Through this intent, an app can call any number including
96 emergency numbers.
97 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
98 permission. Through this intent, an app can call *only* emergency numbers. -->
99
Mohamedc9261852016-02-05 14:10:17 -0800100 <!-- Activity that displays UI for managing blocked numbers. -->
101 <activity android:name=".settings.BlockedNumbersActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700102 android:label="@string/blocked_numbers"
103 android:configChanges="orientation|screenSize|keyboardHidden"
104 android:theme="@style/Theme.Telecom.BlockedNumbers"
105 android:process=":ui"
106 android:exported="true">
Abhijith Shastryb1308ec2016-02-29 16:26:09 -0800107 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700108 <action android:name="android.telecom.action.MANAGE_BLOCKED_NUMBERS"/>
109 <category android:name="android.intent.category.DEFAULT"/>
Abhijith Shastryb1308ec2016-02-29 16:26:09 -0800110 </intent-filter>
111 </activity>
Ruijie Bai20e49952017-12-25 10:55:48 +0800112
113 <activity android:name=".settings.CallBlockDisabledActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700114 android:configChanges="keyboardHidden|orientation|screenSize"
115 android:excludeFromRecents="true"
116 android:launchMode="singleInstance"
117 android:theme="@style/Theme.Telecomm.Transparent"
118 android:process=":ui">
Ruijie Bai20e49952017-12-25 10:55:48 +0800119 </activity>
120
Santos Cordon10e68322013-12-12 16:06:56 -0800121 <!-- Activity that starts the outgoing call process by listening to CALL intent which
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700122 contain contact information in the intent's data. CallActivity handles any data
123 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
124 contacts provider entries. Any data not fitting the schema described is ignored. -->
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800125 <activity android:name=".components.UserCallActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700126 android:label="@string/userCallActivityLabel"
127 android:theme="@style/Theme.Telecomm.Transparent"
128 android:permission="android.permission.CALL_PHONE"
129 android:excludeFromRecents="true"
130 android:process=":ui"
131 android:exported="true">
Santos Cordon10e68322013-12-12 16:06:56 -0800132 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
133 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700134 <action android:name="android.intent.action.CALL"/>
135 <category android:name="android.intent.category.DEFAULT"/>
136 <data android:scheme="tel"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800137 </intent-filter>
138 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700139 icon for calls to SIP addresses. -->
Santos Cordon10e68322013-12-12 16:06:56 -0800140 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700141 <action android:name="android.intent.action.CALL"/>
142 <category android:name="android.intent.category.DEFAULT"/>
143 <data android:scheme="sip"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800144 </intent-filter>
145 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700146 <action android:name="android.intent.action.CALL"/>
147 <category android:name="android.intent.category.DEFAULT"/>
148 <data android:scheme="voicemail"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800149 </intent-filter>
150 <!-- Omit default category below so that all Intents sent to this filter must be
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700151 explicit. -->
Santos Cordon10e68322013-12-12 16:06:56 -0800152 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700153 <action android:name="android.intent.action.CALL"/>
154 <data android:mimeType="vnd.android.cursor.item/phone"/>
155 <data android:mimeType="vnd.android.cursor.item/phone_v2"/>
156 <data android:mimeType="vnd.android.cursor.item/person"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800157 </intent-filter>
158 </activity>
159
160 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
161 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
162 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
163 processed. High priority of 1000 is used in all intent filters to prevent anything but
164 the system from processing this intent (b/8871505). -->
165 <activity-alias android:name="PrivilegedCallActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700166 android:targetActivity=".components.UserCallActivity"
167 android:permission="android.permission.CALL_PRIVILEGED"
Ashwini Orugantiee1de982020-05-29 17:44:32 -0700168 android:exported="true"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700169 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800170 <intent-filter android:priority="1000">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700171 <action android:name="android.intent.action.CALL_PRIVILEGED"/>
172 <category android:name="android.intent.category.DEFAULT"/>
173 <data android:scheme="tel"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800174 </intent-filter>
175 <intent-filter android:priority="1000"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700176 android:icon="@drawable/ic_launcher_sip_call">
177 <action android:name="android.intent.action.CALL_PRIVILEGED"/>
178 <category android:name="android.intent.category.DEFAULT"/>
179 <data android:scheme="sip"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800180 </intent-filter>
181 <intent-filter android:priority="1000">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700182 <action android:name="android.intent.action.CALL_PRIVILEGED"/>
183 <category android:name="android.intent.category.DEFAULT"/>
184 <data android:scheme="voicemail"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800185 </intent-filter>
186 <intent-filter android:priority="1000">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700187 <action android:name="android.intent.action.CALL_PRIVILEGED"/>
188 <data android:mimeType="vnd.android.cursor.item/phone"/>
189 <data android:mimeType="vnd.android.cursor.item/phone_v2"/>
190 <data android:mimeType="vnd.android.cursor.item/person"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800191 </intent-filter>
192 </activity-alias>
193
194 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
195 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
196 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
197 1000 is used in all intent filters to prevent anything but the system from processing
198 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700199 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700200 that scheme be removed from this activity? -->
Santos Cordon10e68322013-12-12 16:06:56 -0800201 <activity-alias android:name="EmergencyCallActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700202 android:targetActivity=".components.UserCallActivity"
203 android:permission="android.permission.CALL_PRIVILEGED"
Ashwini Orugantiee1de982020-05-29 17:44:32 -0700204 android:exported="true"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700205 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800206 <intent-filter android:priority="1000">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700207 <action android:name="android.intent.action.CALL_EMERGENCY"/>
208 <category android:name="android.intent.category.DEFAULT"/>
209 <data android:scheme="tel"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800210 </intent-filter>
211 <intent-filter android:priority="1000"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700212 android:icon="@drawable/ic_launcher_sip_call">
213 <action android:name="android.intent.action.CALL_EMERGENCY"/>
214 <category android:name="android.intent.category.DEFAULT"/>
215 <data android:scheme="sip"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800216 </intent-filter>
217 <intent-filter android:priority="1000">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700218 <action android:name="android.intent.action.CALL_EMERGENCY"/>
219 <category android:name="android.intent.category.DEFAULT"/>
220 <data android:scheme="voicemail"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800221 </intent-filter>
222 <intent-filter android:priority="1000">
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700223 <action android:name="android.intent.action.CALL_EMERGENCY"/>
224 <data android:mimeType="vnd.android.cursor.item/phone"/>
225 <data android:mimeType="vnd.android.cursor.item/phone_v2"/>
226 <data android:mimeType="vnd.android.cursor.item/person"/>
Santos Cordon10e68322013-12-12 16:06:56 -0800227 </intent-filter>
228 </activity-alias>
229
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700230 <receiver android:name=".components.TelecomBroadcastReceiver"
231 android:exported="false"
232 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700233 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700234 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS"/>
235 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION"/>
236 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION"/>
237 <action android:name="com.android.server.telecom.ACTION_ANSWER_FROM_NOTIFICATION"/>
238 <action android:name="com.android.server.telecom.ACTION_REJECT_FROM_NOTIFICATION"/>
239 <action android:name="com.android.server.telecom.PROCEED_WITH_CALL"/>
240 <action android:name="com.android.server.telecom.CANCEL_CALL"/>
241 <action android:name="com.android.server.telecom.PROCEED_WITH_REDIRECTED_CALL"/>
242 <action android:name="com.android.server.telecom.CANCEL_REDIRECTED_CALL"/>
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700243 </intent-filter>
244 </receiver>
245
tonyzhu8ba94c52018-10-23 15:37:04 +0800246 <receiver android:name=".components.AppUninstallBroadcastReceiver"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700247 android:process="system"
248 android:exported="true">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700249 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700250 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED"/>
251 <data android:scheme="package"/>
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700252 </intent-filter>
253 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700254
Andrew Leeaf22dd12015-02-25 17:40:11 -0800255 <activity android:name=".RespondViaSmsSettings"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700256 android:label="@string/respond_via_sms_setting_title"
257 android:configChanges="orientation|screenSize|keyboardHidden"
258 android:theme="@style/Theme.Telecom.DialerSettings"
259 android:process=":ui"
260 android:exported="true">
Ihab Awadff7493a2014-06-10 13:47:44 -0700261 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700262 <action android:name="android.intent.action.MAIN"/>
263 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS"/>
264 <category android:name="android.intent.category.DEFAULT"/>
Ihab Awadff7493a2014-06-10 13:47:44 -0700265 </intent-filter>
266 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700267
Santos Cordon55344342015-05-04 13:05:30 -0700268 <activity android:name=".settings.EnableAccountPreferenceActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700269 android:label="@string/enable_account_preference_title"
270 android:configChanges="orientation|screenSize|keyboardHidden"
271 android:theme="@style/Theme.Telecom.DialerSettings"
272 android:process=":ui"
273 android:exported="true">
Santos Cordon55344342015-05-04 13:05:30 -0700274 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700275 <action android:name="android.intent.action.MAIN"/>
276 <category android:name="android.intent.category.DEFAULT"/>
Santos Cordon55344342015-05-04 13:05:30 -0700277 </intent-filter>
278 </activity>
279
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800280 <activity android:name=".components.ErrorDialogActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700281 android:configChanges="orientation|screenSize|keyboardHidden"
282 android:excludeFromRecents="true"
283 android:launchMode="singleInstance"
284 android:theme="@style/Theme.Telecomm.Transparent"
285 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700286 </activity>
287
Tyler Gunnbbd78a72017-04-30 14:16:07 -0700288 <activity android:name=".ui.ConfirmCallDialogActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700289 android:configChanges="orientation|screenSize|keyboardHidden"
290 android:excludeFromRecents="true"
291 android:launchMode="singleInstance"
292 android:theme="@style/Theme.Telecomm.Transparent"
293 android:process=":ui">
Tyler Gunnbbd78a72017-04-30 14:16:07 -0700294 </activity>
295
sqiane976e682018-10-05 18:51:40 -0700296 <activity android:name=".ui.CallRedirectionTimeoutDialogActivity"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700297 android:configChanges="orientation|screenSize|keyboardHidden"
298 android:excludeFromRecents="true"
299 android:launchMode="singleInstance"
300 android:theme="@style/Theme.Telecomm.Transparent"
301 android:process=":ui">
sqiane976e682018-10-05 18:51:40 -0700302 </activity>
303
Tyler Gunn47eb3fe2018-03-12 14:38:47 -0700304 <activity android:name=".ui.TelecomDeveloperMenu"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700305 android:label="@string/developer_title"
306 android:exported="false"
307 android:process=":ui"/>
Yorke Leeb5c5d442015-04-27 15:21:53 -0700308
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800309 <service android:name=".components.BluetoothPhoneService"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700310 android:singleUser="true"
311 android:process="system"
312 android:exported="true">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700313 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700314 <action android:name="android.bluetooth.IBluetoothHeadsetPhone"/>
Santos Cordonfddf12e2014-09-25 15:08:57 -0700315 </intent-filter>
316 </service>
317
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800318 <service android:name=".components.TelecomService"
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700319 android:singleUser="true"
320 android:process="system"
321 android:exported="true">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800322 <intent-filter>
Ashwini Orugantic51ebdf2020-03-23 16:54:51 -0700323 <action android:name="android.telecom.ITelecomService"/>
Santos Cordonf987d1a2014-12-02 03:37:03 -0800324 </intent-filter>
325 </service>
326
Ben Gilad4937ff92013-12-12 12:05:37 -0800327 </application>
328</manifest>