blob: 2e3bc37d644962f52f4d5ade5247ec68f1ea75b0 [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" />
24
Ben Gilad4937ff92013-12-12 12:05:37 -080025 <!-- Prevents the activity manager from delaying any activity-start
26 requests by this package, including requests immediately after
27 the user presses "home". -->
Santos Cordonea5cb932015-05-07 16:28:38 -070028 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
29 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070030 <uses-permission android:name="android.permission.BLUETOOTH" />
31 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Santos Cordonea5cb932015-05-07 16:28:38 -070032 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
33 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070034 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Santos Cordone6a33f22014-12-02 13:19:00 -080035 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070036 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Santos Cordonea5cb932015-05-07 16:28:38 -070037 <uses-permission android:name="android.permission.MANAGE_USERS" />
Evan Charlton198fde82014-04-07 10:53:11 -070038 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Tyler Gunn5d66e1d2018-01-25 20:22:49 -080039 <!-- Required to determine source of ongoing audio recordings. -->
40 <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" />
Santos Cordonea5cb932015-05-07 16:28:38 -070041 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070042 <uses-permission android:name="android.permission.READ_CALL_LOG" />
43 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070044 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070045 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Hall Liu9a7302f2017-05-31 14:47:08 -070046 <uses-permission android:name="android.permission.WAKE_LOCK" />
Abhijith Shastryfe7ecfe2016-02-08 22:19:58 -080047 <uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS" />
48 <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS" />
Tyler Gunn2b17f232017-03-08 08:51:00 -080049 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
Tyler Gunnd1607682014-08-15 11:29:12 -070050
Santos Cordon0ceb5a12014-10-23 09:30:19 -070051 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050052 android:name="android.permission.BROADCAST_CALLLOG_INFO"
53 android:label="Broadcast the call type/duration information"
54 android:protectionLevel="signature|system"/>
55
56 <permission
57 android:name="android.permission.PROCESS_CALLLOG_INFO"
58 android:label="Register to handle the broadcasted call type/duration information"
59 android:protectionLevel="signature|system"/>
60
Santos Cordon4c778492015-02-27 15:13:35 -080061 <permission
62 android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
63 android:label="Broadcast phone account registration"
64 android:protectionLevel="signature|system"/>
65
66 <permission
67 android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
68 android:label="Process phone account registration"
69 android:protectionLevel="signature|system"/>
70
Santos Cordon581ec4a2014-12-15 09:59:26 -080071 <application android:label="@string/telecommAppLabel"
Ben Gilad4937ff92013-12-12 12:05:37 -080072 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070073 android:allowBackup="false"
Santos Cordon581ec4a2014-12-15 09:59:26 -080074 android:supportsRtl="true"
Alex Klyubinebe2fb32015-05-20 11:30:05 -070075 android:process="system"
Jeff Sharkeybbebba32015-11-18 15:36:11 -070076 android:usesCleartextTraffic="false"
Jeff Sharkeya0a76f92016-03-17 11:00:41 -060077 android:defaultToDeviceProtectedStorage="true"
78 android:directBootAware="true">
Santos Cordon10e68322013-12-12 16:06:56 -080079
80 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
81 We have three different intents through which a call can be initiated each with its
82 own behavior.
83 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
84 intent, an app can call any number except emergency numbers.
85 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
86 permission, which is only held by the system dialer and the emergency dialer at the
87 time of this writing. Through this intent, an app can call any number including
88 emergency numbers.
89 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
90 permission. Through this intent, an app can call *only* emergency numbers. -->
91
Mohamedc9261852016-02-05 14:10:17 -080092 <!-- Activity that displays UI for managing blocked numbers. -->
93 <activity android:name=".settings.BlockedNumbersActivity"
94 android:label="@string/blocked_numbers"
95 android:configChanges="orientation|screenSize|keyboardHidden"
96 android:theme="@style/Theme.Telecom.BlockedNumbers"
97 android:process=":ui"
Abhijith Shastryb1308ec2016-02-29 16:26:09 -080098 android:exported="true">
99 <intent-filter>
100 <action android:name="android.telecom.action.MANAGE_BLOCKED_NUMBERS" />
101 <category android:name="android.intent.category.DEFAULT" />
102 </intent-filter>
103 </activity>
Santos Cordon10e68322013-12-12 16:06:56 -0800104 <!-- Activity that starts the outgoing call process by listening to CALL intent which
105 contain contact information in the intent's data. CallActivity handles any data
106 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
107 contacts provider entries. Any data not fitting the schema described is ignored. -->
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800108 <activity android:name=".components.UserCallActivity"
Jay Shrauner4d0b4192015-08-11 10:46:08 -0700109 android:label="@string/userCallActivityLabel"
Yorke Leed7255872014-08-25 15:03:51 -0700110 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -0800111 android:permission="android.permission.CALL_PHONE"
Santos Cordone6a33f22014-12-02 13:19:00 -0800112 android:excludeFromRecents="true"
113 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800114 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
115 <intent-filter>
116 <action android:name="android.intent.action.CALL" />
117 <category android:name="android.intent.category.DEFAULT" />
118 <data android:scheme="tel" />
119 </intent-filter>
120 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
121 icon for calls to SIP addresses. -->
122 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
123 <action android:name="android.intent.action.CALL" />
124 <category android:name="android.intent.category.DEFAULT" />
125 <data android:scheme="sip" />
126 </intent-filter>
127 <intent-filter>
128 <action android:name="android.intent.action.CALL" />
129 <category android:name="android.intent.category.DEFAULT" />
130 <data android:scheme="voicemail" />
131 </intent-filter>
132 <!-- Omit default category below so that all Intents sent to this filter must be
133 explicit. -->
134 <intent-filter>
135 <action android:name="android.intent.action.CALL" />
136 <data android:mimeType="vnd.android.cursor.item/phone" />
137 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
138 <data android:mimeType="vnd.android.cursor.item/person" />
139 </intent-filter>
140 </activity>
141
142 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
143 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
144 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
145 processed. High priority of 1000 is used in all intent filters to prevent anything but
146 the system from processing this intent (b/8871505). -->
147 <activity-alias android:name="PrivilegedCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800148 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800149 android:permission="android.permission.CALL_PRIVILEGED"
150 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800151 <intent-filter android:priority="1000">
152 <action android:name="android.intent.action.CALL_PRIVILEGED" />
153 <category android:name="android.intent.category.DEFAULT" />
154 <data android:scheme="tel" />
155 </intent-filter>
156 <intent-filter android:priority="1000"
157 android:icon="@drawable/ic_launcher_sip_call">
158 <action android:name="android.intent.action.CALL_PRIVILEGED" />
159 <category android:name="android.intent.category.DEFAULT" />
160 <data android:scheme="sip" />
161 </intent-filter>
162 <intent-filter android:priority="1000">
163 <action android:name="android.intent.action.CALL_PRIVILEGED" />
164 <category android:name="android.intent.category.DEFAULT" />
165 <data android:scheme="voicemail" />
166 </intent-filter>
167 <intent-filter android:priority="1000">
168 <action android:name="android.intent.action.CALL_PRIVILEGED" />
169 <data android:mimeType="vnd.android.cursor.item/phone" />
170 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
171 <data android:mimeType="vnd.android.cursor.item/person" />
172 </intent-filter>
173 </activity-alias>
174
175 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
176 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
177 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
178 1000 is used in all intent filters to prevent anything but the system from processing
179 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700180 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800181 that scheme be removed from this activity? -->
182 <activity-alias android:name="EmergencyCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800183 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800184 android:permission="android.permission.CALL_PRIVILEGED"
185 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800186 <intent-filter android:priority="1000">
187 <action android:name="android.intent.action.CALL_EMERGENCY" />
188 <category android:name="android.intent.category.DEFAULT" />
189 <data android:scheme="tel" />
190 </intent-filter>
191 <intent-filter android:priority="1000"
192 android:icon="@drawable/ic_launcher_sip_call">
193 <action android:name="android.intent.action.CALL_EMERGENCY" />
194 <category android:name="android.intent.category.DEFAULT" />
195 <data android:scheme="sip" />
196 </intent-filter>
197 <intent-filter android:priority="1000">
198 <action android:name="android.intent.action.CALL_EMERGENCY" />
199 <category android:name="android.intent.category.DEFAULT" />
200 <data android:scheme="voicemail" />
201 </intent-filter>
202 <intent-filter android:priority="1000">
203 <action android:name="android.intent.action.CALL_EMERGENCY" />
204 <data android:mimeType="vnd.android.cursor.item/phone" />
205 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
206 <data android:mimeType="vnd.android.cursor.item/person" />
207 </intent-filter>
208 </activity-alias>
209
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800210 <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
Santos Cordone6a33f22014-12-02 13:19:00 -0800211 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700212 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700213 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700214 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
215 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
Tyler Gunn2b17f232017-03-08 08:51:00 -0800216 <action android:name="com.android.server.telecom.ACTION_ANSWER_FROM_NOTIFICATION" />
217 <action android:name="com.android.server.telecom.ACTION_REJECT_FROM_NOTIFICATION" />
Tyler Gunnbbd78a72017-04-30 14:16:07 -0700218 <action android:name="com.android.server.telecom.PROCEED_WITH_CALL" />
219 <action android:name="com.android.server.telecom.CANCEL_CALL" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700220 </intent-filter>
221 </receiver>
222
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800223 <receiver android:name=".components.PhoneAccountBroadcastReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800224 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700225 <intent-filter>
226 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
227 <data android:scheme="package" />
228 </intent-filter>
229 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700230
Andrew Leeaf22dd12015-02-25 17:40:11 -0800231 <activity android:name=".RespondViaSmsSettings"
Ihab Awadff7493a2014-06-10 13:47:44 -0700232 android:label="@string/respond_via_sms_setting_title"
Andrew Leefd053f42014-11-12 18:09:58 -0800233 android:configChanges="orientation|screenSize|keyboardHidden"
Santos Cordone6a33f22014-12-02 13:19:00 -0800234 android:theme="@style/Theme.Telecom.DialerSettings"
235 android:process=":ui">
Ihab Awadff7493a2014-06-10 13:47:44 -0700236 <intent-filter>
237 <action android:name="android.intent.action.MAIN" />
Andrew Lee9631da42015-02-18 17:58:58 -0800238 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
239 <category android:name="android.intent.category.DEFAULT" />
Ihab Awadff7493a2014-06-10 13:47:44 -0700240 </intent-filter>
241 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700242
Santos Cordon55344342015-05-04 13:05:30 -0700243 <activity android:name=".settings.EnableAccountPreferenceActivity"
244 android:label="@string/enable_account_preference_title"
245 android:configChanges="orientation|screenSize|keyboardHidden"
246 android:theme="@style/Theme.Telecom.DialerSettings"
247 android:process=":ui">
248 <intent-filter>
249 <action android:name="android.intent.action.MAIN" />
250 <category android:name="android.intent.category.DEFAULT" />
251 </intent-filter>
252 </activity>
253
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800254 <activity android:name=".components.ErrorDialogActivity"
Yorke Leed7255872014-08-25 15:03:51 -0700255 android:configChanges="orientation|screenSize|keyboardHidden"
256 android:excludeFromRecents="true"
257 android:launchMode="singleInstance"
Santos Cordone6a33f22014-12-02 13:19:00 -0800258 android:theme="@style/Theme.Telecomm.Transparent"
259 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700260 </activity>
261
Tyler Gunnbbd78a72017-04-30 14:16:07 -0700262 <activity android:name=".ui.ConfirmCallDialogActivity"
263 android:configChanges="orientation|screenSize|keyboardHidden"
264 android:excludeFromRecents="true"
265 android:launchMode="singleInstance"
266 android:theme="@style/Theme.Telecomm.Transparent"
267 android:process=":ui">
268 </activity>
269
Yorke Leeb5c5d442015-04-27 15:21:53 -0700270 <activity android:name=".components.ChangeDefaultDialerDialog"
271 android:label="@string/change_default_dialer_dialog_title"
272 android:excludeFromRecents="true"
273 android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
274 android:priority="1000"
275 android:process=":ui" >
276 <intent-filter>
277 <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
278 <category android:name="android.intent.category.DEFAULT" />
279 </intent-filter>
280 </activity>
281
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800282 <receiver android:name=".components.PrimaryCallReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800283 android:exported="true"
284 android:permission="android.permission.MODIFY_PHONE_STATE"
285 android:process="system">
Yorke Lee6dc1c752014-09-23 18:50:35 -0700286 </receiver>
287
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800288 <service android:name=".components.BluetoothPhoneService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800289 android:singleUser="true"
290 android:process="system">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700291 <intent-filter>
292 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
293 </intent-filter>
294 </service>
295
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800296 <service android:name=".components.TelecomService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800297 android:singleUser="true"
298 android:process="system">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800299 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700300 <action android:name="android.telecom.ITelecomService" />
Santos Cordonf987d1a2014-12-02 03:37:03 -0800301 </intent-filter>
302 </service>
303
Ben Gilad4937ff92013-12-12 12:05:37 -0800304 </application>
305</manifest>