blob: b17c6f39df712b6b0760a8fb1f91352de48796b9 [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"
18 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
Tyler Gunn7cc70b42014-09-12 22:17:27 -070019 package="com.android.server.telecom"
Santos Cordonb64c1502014-05-21 21:21:49 -070020 coreApp="true"
Santos Cordone6a33f22014-12-02 13:19:00 -080021 android:sharedUserId="android.uid.system">
Santos Cordon3e3b5412013-12-16 17:33:45 -080022
Bryce Lee41045b42015-08-05 13:10:39 -070023 <protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION" />
Hall Liuaf74a5c2018-09-19 18:05:51 -070024 <protected-broadcast android:name="com.android.server.telecom.MESSAGE_SENT" />
25
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". -->
Santos Cordonea5cb932015-05-07 16:28:38 -070030 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
31 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070032 <uses-permission android:name="android.permission.BLUETOOTH" />
33 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Santos Cordonea5cb932015-05-07 16:28:38 -070034 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
35 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070036 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Santos Cordone6a33f22014-12-02 13:19:00 -080037 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070038 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Santos Cordonea5cb932015-05-07 16:28:38 -070039 <uses-permission android:name="android.permission.MANAGE_USERS" />
Evan Charlton198fde82014-04-07 10:53:11 -070040 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Tyler Gunn5d66e1d2018-01-25 20:22:49 -080041 <!-- Required to determine source of ongoing audio recordings. -->
42 <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" />
Santos Cordonea5cb932015-05-07 16:28:38 -070043 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070044 <uses-permission android:name="android.permission.READ_CALL_LOG" />
Tyler Gunne71608c2018-03-05 13:42:33 -080045 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070046 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070047 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070048 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Hall Liu9a7302f2017-05-31 14:47:08 -070049 <uses-permission android:name="android.permission.WAKE_LOCK" />
Abhijith Shastryfe7ecfe2016-02-08 22:19:58 -080050 <uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS" />
51 <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS" />
Tyler Gunn2b17f232017-03-08 08:51:00 -080052 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
Tyler Gunnd1607682014-08-15 11:29:12 -070053
Santos Cordon0ceb5a12014-10-23 09:30:19 -070054 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050055 android:name="android.permission.BROADCAST_CALLLOG_INFO"
56 android:label="Broadcast the call type/duration information"
57 android:protectionLevel="signature|system"/>
58
59 <permission
60 android:name="android.permission.PROCESS_CALLLOG_INFO"
61 android:label="Register to handle the broadcasted call type/duration information"
62 android:protectionLevel="signature|system"/>
63
Santos Cordon4c778492015-02-27 15:13:35 -080064 <permission
65 android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
66 android:label="Broadcast phone account registration"
67 android:protectionLevel="signature|system"/>
68
69 <permission
70 android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
71 android:label="Process phone account registration"
72 android:protectionLevel="signature|system"/>
73
Santos Cordon581ec4a2014-12-15 09:59:26 -080074 <application android:label="@string/telecommAppLabel"
Ben Gilad4937ff92013-12-12 12:05:37 -080075 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070076 android:allowBackup="false"
Santos Cordon581ec4a2014-12-15 09:59:26 -080077 android:supportsRtl="true"
Alex Klyubinebe2fb32015-05-20 11:30:05 -070078 android:process="system"
Jeff Sharkeybbebba32015-11-18 15:36:11 -070079 android:usesCleartextTraffic="false"
Jeff Sharkeya0a76f92016-03-17 11:00:41 -060080 android:defaultToDeviceProtectedStorage="true"
81 android:directBootAware="true">
Santos Cordon10e68322013-12-12 16:06:56 -080082
83 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
84 We have three different intents through which a call can be initiated each with its
85 own behavior.
86 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
87 intent, an app can call any number except emergency numbers.
88 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
89 permission, which is only held by the system dialer and the emergency dialer at the
90 time of this writing. Through this intent, an app can call any number including
91 emergency numbers.
92 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
93 permission. Through this intent, an app can call *only* emergency numbers. -->
94
Mohamedc9261852016-02-05 14:10:17 -080095 <!-- Activity that displays UI for managing blocked numbers. -->
96 <activity android:name=".settings.BlockedNumbersActivity"
97 android:label="@string/blocked_numbers"
98 android:configChanges="orientation|screenSize|keyboardHidden"
99 android:theme="@style/Theme.Telecom.BlockedNumbers"
100 android:process=":ui"
Abhijith Shastryb1308ec2016-02-29 16:26:09 -0800101 android:exported="true">
102 <intent-filter>
103 <action android:name="android.telecom.action.MANAGE_BLOCKED_NUMBERS" />
104 <category android:name="android.intent.category.DEFAULT" />
105 </intent-filter>
106 </activity>
Ruijie Bai20e49952017-12-25 10:55:48 +0800107
108 <activity android:name=".settings.CallBlockDisabledActivity"
109 android:configChanges="keyboardHidden|orientation|screenSize"
110 android:excludeFromRecents="true"
111 android:launchMode="singleInstance"
112 android:theme="@style/Theme.Telecomm.Transparent"
113 android:process=":ui">
114 </activity>
115
Santos Cordon10e68322013-12-12 16:06:56 -0800116 <!-- Activity that starts the outgoing call process by listening to CALL intent which
117 contain contact information in the intent's data. CallActivity handles any data
118 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
119 contacts provider entries. Any data not fitting the schema described is ignored. -->
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800120 <activity android:name=".components.UserCallActivity"
Jay Shrauner4d0b4192015-08-11 10:46:08 -0700121 android:label="@string/userCallActivityLabel"
Yorke Leed7255872014-08-25 15:03:51 -0700122 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -0800123 android:permission="android.permission.CALL_PHONE"
Santos Cordone6a33f22014-12-02 13:19:00 -0800124 android:excludeFromRecents="true"
125 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800126 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
127 <intent-filter>
128 <action android:name="android.intent.action.CALL" />
129 <category android:name="android.intent.category.DEFAULT" />
130 <data android:scheme="tel" />
131 </intent-filter>
132 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
133 icon for calls to SIP addresses. -->
134 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
135 <action android:name="android.intent.action.CALL" />
136 <category android:name="android.intent.category.DEFAULT" />
137 <data android:scheme="sip" />
138 </intent-filter>
139 <intent-filter>
140 <action android:name="android.intent.action.CALL" />
141 <category android:name="android.intent.category.DEFAULT" />
142 <data android:scheme="voicemail" />
143 </intent-filter>
144 <!-- Omit default category below so that all Intents sent to this filter must be
145 explicit. -->
146 <intent-filter>
147 <action android:name="android.intent.action.CALL" />
148 <data android:mimeType="vnd.android.cursor.item/phone" />
149 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
150 <data android:mimeType="vnd.android.cursor.item/person" />
151 </intent-filter>
152 </activity>
153
154 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
155 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
156 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
157 processed. High priority of 1000 is used in all intent filters to prevent anything but
158 the system from processing this intent (b/8871505). -->
159 <activity-alias android:name="PrivilegedCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800160 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800161 android:permission="android.permission.CALL_PRIVILEGED"
162 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800163 <intent-filter android:priority="1000">
164 <action android:name="android.intent.action.CALL_PRIVILEGED" />
165 <category android:name="android.intent.category.DEFAULT" />
166 <data android:scheme="tel" />
167 </intent-filter>
168 <intent-filter android:priority="1000"
169 android:icon="@drawable/ic_launcher_sip_call">
170 <action android:name="android.intent.action.CALL_PRIVILEGED" />
171 <category android:name="android.intent.category.DEFAULT" />
172 <data android:scheme="sip" />
173 </intent-filter>
174 <intent-filter android:priority="1000">
175 <action android:name="android.intent.action.CALL_PRIVILEGED" />
176 <category android:name="android.intent.category.DEFAULT" />
177 <data android:scheme="voicemail" />
178 </intent-filter>
179 <intent-filter android:priority="1000">
180 <action android:name="android.intent.action.CALL_PRIVILEGED" />
181 <data android:mimeType="vnd.android.cursor.item/phone" />
182 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
183 <data android:mimeType="vnd.android.cursor.item/person" />
184 </intent-filter>
185 </activity-alias>
186
187 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
188 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
189 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
190 1000 is used in all intent filters to prevent anything but the system from processing
191 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700192 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800193 that scheme be removed from this activity? -->
194 <activity-alias android:name="EmergencyCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800195 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800196 android:permission="android.permission.CALL_PRIVILEGED"
197 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800198 <intent-filter android:priority="1000">
199 <action android:name="android.intent.action.CALL_EMERGENCY" />
200 <category android:name="android.intent.category.DEFAULT" />
201 <data android:scheme="tel" />
202 </intent-filter>
203 <intent-filter android:priority="1000"
204 android:icon="@drawable/ic_launcher_sip_call">
205 <action android:name="android.intent.action.CALL_EMERGENCY" />
206 <category android:name="android.intent.category.DEFAULT" />
207 <data android:scheme="sip" />
208 </intent-filter>
209 <intent-filter android:priority="1000">
210 <action android:name="android.intent.action.CALL_EMERGENCY" />
211 <category android:name="android.intent.category.DEFAULT" />
212 <data android:scheme="voicemail" />
213 </intent-filter>
214 <intent-filter android:priority="1000">
215 <action android:name="android.intent.action.CALL_EMERGENCY" />
216 <data android:mimeType="vnd.android.cursor.item/phone" />
217 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
218 <data android:mimeType="vnd.android.cursor.item/person" />
219 </intent-filter>
220 </activity-alias>
221
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800222 <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
Santos Cordone6a33f22014-12-02 13:19:00 -0800223 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700224 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700225 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700226 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
227 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
Tyler Gunn2b17f232017-03-08 08:51:00 -0800228 <action android:name="com.android.server.telecom.ACTION_ANSWER_FROM_NOTIFICATION" />
229 <action android:name="com.android.server.telecom.ACTION_REJECT_FROM_NOTIFICATION" />
Tyler Gunnbbd78a72017-04-30 14:16:07 -0700230 <action android:name="com.android.server.telecom.PROCEED_WITH_CALL" />
231 <action android:name="com.android.server.telecom.CANCEL_CALL" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700232 </intent-filter>
233 </receiver>
234
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800235 <receiver android:name=".components.PhoneAccountBroadcastReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800236 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700237 <intent-filter>
238 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
239 <data android:scheme="package" />
240 </intent-filter>
241 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700242
Andrew Leeaf22dd12015-02-25 17:40:11 -0800243 <activity android:name=".RespondViaSmsSettings"
Ihab Awadff7493a2014-06-10 13:47:44 -0700244 android:label="@string/respond_via_sms_setting_title"
Andrew Leefd053f42014-11-12 18:09:58 -0800245 android:configChanges="orientation|screenSize|keyboardHidden"
Santos Cordone6a33f22014-12-02 13:19:00 -0800246 android:theme="@style/Theme.Telecom.DialerSettings"
247 android:process=":ui">
Ihab Awadff7493a2014-06-10 13:47:44 -0700248 <intent-filter>
249 <action android:name="android.intent.action.MAIN" />
Andrew Lee9631da42015-02-18 17:58:58 -0800250 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
251 <category android:name="android.intent.category.DEFAULT" />
Ihab Awadff7493a2014-06-10 13:47:44 -0700252 </intent-filter>
253 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700254
Santos Cordon55344342015-05-04 13:05:30 -0700255 <activity android:name=".settings.EnableAccountPreferenceActivity"
256 android:label="@string/enable_account_preference_title"
257 android:configChanges="orientation|screenSize|keyboardHidden"
258 android:theme="@style/Theme.Telecom.DialerSettings"
259 android:process=":ui">
260 <intent-filter>
261 <action android:name="android.intent.action.MAIN" />
262 <category android:name="android.intent.category.DEFAULT" />
263 </intent-filter>
264 </activity>
265
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800266 <activity android:name=".components.ErrorDialogActivity"
Yorke Leed7255872014-08-25 15:03:51 -0700267 android:configChanges="orientation|screenSize|keyboardHidden"
268 android:excludeFromRecents="true"
269 android:launchMode="singleInstance"
Santos Cordone6a33f22014-12-02 13:19:00 -0800270 android:theme="@style/Theme.Telecomm.Transparent"
271 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700272 </activity>
273
Tyler Gunnbbd78a72017-04-30 14:16:07 -0700274 <activity android:name=".ui.ConfirmCallDialogActivity"
275 android:configChanges="orientation|screenSize|keyboardHidden"
276 android:excludeFromRecents="true"
277 android:launchMode="singleInstance"
278 android:theme="@style/Theme.Telecomm.Transparent"
279 android:process=":ui">
280 </activity>
281
Yorke Leeb5c5d442015-04-27 15:21:53 -0700282 <activity android:name=".components.ChangeDefaultDialerDialog"
283 android:label="@string/change_default_dialer_dialog_title"
284 android:excludeFromRecents="true"
285 android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
286 android:priority="1000"
287 android:process=":ui" >
288 <intent-filter>
289 <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
290 <category android:name="android.intent.category.DEFAULT" />
291 </intent-filter>
292 </activity>
Tyler Gunn47eb3fe2018-03-12 14:38:47 -0700293 <activity android:name=".ui.TelecomDeveloperMenu"
294 android:label="@string/developer_title"
295 android:exported="false"
296 android:process=":ui" />
Yorke Leeb5c5d442015-04-27 15:21:53 -0700297
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800298 <receiver android:name=".components.PrimaryCallReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800299 android:exported="true"
300 android:permission="android.permission.MODIFY_PHONE_STATE"
301 android:process="system">
Yorke Lee6dc1c752014-09-23 18:50:35 -0700302 </receiver>
303
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800304 <service android:name=".components.BluetoothPhoneService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800305 android:singleUser="true"
306 android:process="system">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700307 <intent-filter>
308 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
309 </intent-filter>
310 </service>
311
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800312 <service android:name=".components.TelecomService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800313 android:singleUser="true"
314 android:process="system">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800315 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700316 <action android:name="android.telecom.ITelecomService" />
Santos Cordonf987d1a2014-12-02 03:37:03 -0800317 </intent-filter>
318 </service>
319
Ben Gilad4937ff92013-12-12 12:05:37 -0800320 </application>
321</manifest>