1<?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" 19 package="com.android.server.telecom" 20 coreApp="true" 21 android:sharedUserId="android.uid.system"> 22 23 <protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION" /> 24 25 <!-- Prevents the activity manager from delaying any activity-start 26 requests by this package, including requests immediately after 27 the user presses "home". --> 28 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" /> 29 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" /> 30 <uses-permission android:name="android.permission.BLUETOOTH" /> 31 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 32 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" /> 33 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" /> 34 <uses-permission android:name="android.permission.CALL_PRIVILEGED" /> 35 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 36 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> 37 <uses-permission android:name="android.permission.MANAGE_USERS" /> 38 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 39 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> 40 <uses-permission android:name="android.permission.READ_CALL_LOG" /> 41 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" /> 42 <uses-permission android:name="android.permission.VIBRATE" /> 43 <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> 44 <uses-permission android:name="android.permission.WAKE_LOCK" /> 45 <uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS" /> 46 <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS" /> 47 <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" /> 48 49 <permission 50 android:name="android.permission.BROADCAST_CALLLOG_INFO" 51 android:label="Broadcast the call type/duration information" 52 android:protectionLevel="signature|system"/> 53 54 <permission 55 android:name="android.permission.PROCESS_CALLLOG_INFO" 56 android:label="Register to handle the broadcasted call type/duration information" 57 android:protectionLevel="signature|system"/> 58 59 <permission 60 android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" 61 android:label="Broadcast phone account registration" 62 android:protectionLevel="signature|system"/> 63 64 <permission 65 android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION" 66 android:label="Process phone account registration" 67 android:protectionLevel="signature|system"/> 68 69 <application android:label="@string/telecommAppLabel" 70 android:icon="@mipmap/ic_launcher_phone" 71 android:allowBackup="false" 72 android:supportsRtl="true" 73 android:process="system" 74 android:usesCleartextTraffic="false" 75 android:defaultToDeviceProtectedStorage="true" 76 android:directBootAware="true"> 77 78 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY 79 We have three different intents through which a call can be initiated each with its 80 own behavior. 81 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this 82 intent, an app can call any number except emergency numbers. 83 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED 84 permission, which is only held by the system dialer and the emergency dialer at the 85 time of this writing. Through this intent, an app can call any number including 86 emergency numbers. 87 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED 88 permission. Through this intent, an app can call *only* emergency numbers. --> 89 90 <!-- Activity that displays UI for managing blocked numbers. --> 91 <activity android:name=".settings.BlockedNumbersActivity" 92 android:label="@string/blocked_numbers" 93 android:configChanges="orientation|screenSize|keyboardHidden" 94 android:theme="@style/Theme.Telecom.BlockedNumbers" 95 android:process=":ui" 96 android:exported="true"> 97 <intent-filter> 98 <action android:name="android.telecom.action.MANAGE_BLOCKED_NUMBERS" /> 99 <category android:name="android.intent.category.DEFAULT" /> 100 </intent-filter> 101 </activity> 102 <!-- Activity that starts the outgoing call process by listening to CALL intent which 103 contain contact information in the intent's data. CallActivity handles any data 104 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to 105 contacts provider entries. Any data not fitting the schema described is ignored. --> 106 <activity android:name=".components.UserCallActivity" 107 android:label="@string/userCallActivityLabel" 108 android:theme="@style/Theme.Telecomm.Transparent" 109 android:permission="android.permission.CALL_PHONE" 110 android:excludeFromRecents="true" 111 android:process=":ui"> 112 <!-- CALL action intent filters for the various ways of initiating an outgoing call. --> 113 <intent-filter> 114 <action android:name="android.intent.action.CALL" /> 115 <category android:name="android.intent.category.DEFAULT" /> 116 <data android:scheme="tel" /> 117 </intent-filter> 118 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP 119 icon for calls to SIP addresses. --> 120 <intent-filter android:icon="@drawable/ic_launcher_sip_call"> 121 <action android:name="android.intent.action.CALL" /> 122 <category android:name="android.intent.category.DEFAULT" /> 123 <data android:scheme="sip" /> 124 </intent-filter> 125 <intent-filter> 126 <action android:name="android.intent.action.CALL" /> 127 <category android:name="android.intent.category.DEFAULT" /> 128 <data android:scheme="voicemail" /> 129 </intent-filter> 130 <!-- Omit default category below so that all Intents sent to this filter must be 131 explicit. --> 132 <intent-filter> 133 <action android:name="android.intent.action.CALL" /> 134 <data android:mimeType="vnd.android.cursor.item/phone" /> 135 <data android:mimeType="vnd.android.cursor.item/phone_v2" /> 136 <data android:mimeType="vnd.android.cursor.item/person" /> 137 </intent-filter> 138 </activity> 139 140 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent. 141 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it. 142 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be 143 processed. High priority of 1000 is used in all intent filters to prevent anything but 144 the system from processing this intent (b/8871505). --> 145 <activity-alias android:name="PrivilegedCallActivity" 146 android:targetActivity=".components.UserCallActivity" 147 android:permission="android.permission.CALL_PRIVILEGED" 148 android:process=":ui"> 149 <intent-filter android:priority="1000"> 150 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 151 <category android:name="android.intent.category.DEFAULT" /> 152 <data android:scheme="tel" /> 153 </intent-filter> 154 <intent-filter android:priority="1000" 155 android:icon="@drawable/ic_launcher_sip_call"> 156 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 157 <category android:name="android.intent.category.DEFAULT" /> 158 <data android:scheme="sip" /> 159 </intent-filter> 160 <intent-filter android:priority="1000"> 161 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 162 <category android:name="android.intent.category.DEFAULT" /> 163 <data android:scheme="voicemail" /> 164 </intent-filter> 165 <intent-filter android:priority="1000"> 166 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 167 <data android:mimeType="vnd.android.cursor.item/phone" /> 168 <data android:mimeType="vnd.android.cursor.item/phone_v2" /> 169 <data android:mimeType="vnd.android.cursor.item/person" /> 170 </intent-filter> 171 </activity-alias> 172 173 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent. 174 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the 175 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of 176 1000 is used in all intent filters to prevent anything but the system from processing 177 this intent (b/8871505). --> 178 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can 179 that scheme be removed from this activity? --> 180 <activity-alias android:name="EmergencyCallActivity" 181 android:targetActivity=".components.UserCallActivity" 182 android:permission="android.permission.CALL_PRIVILEGED" 183 android:process=":ui"> 184 <intent-filter android:priority="1000"> 185 <action android:name="android.intent.action.CALL_EMERGENCY" /> 186 <category android:name="android.intent.category.DEFAULT" /> 187 <data android:scheme="tel" /> 188 </intent-filter> 189 <intent-filter android:priority="1000" 190 android:icon="@drawable/ic_launcher_sip_call"> 191 <action android:name="android.intent.action.CALL_EMERGENCY" /> 192 <category android:name="android.intent.category.DEFAULT" /> 193 <data android:scheme="sip" /> 194 </intent-filter> 195 <intent-filter android:priority="1000"> 196 <action android:name="android.intent.action.CALL_EMERGENCY" /> 197 <category android:name="android.intent.category.DEFAULT" /> 198 <data android:scheme="voicemail" /> 199 </intent-filter> 200 <intent-filter android:priority="1000"> 201 <action android:name="android.intent.action.CALL_EMERGENCY" /> 202 <data android:mimeType="vnd.android.cursor.item/phone" /> 203 <data android:mimeType="vnd.android.cursor.item/phone_v2" /> 204 <data android:mimeType="vnd.android.cursor.item/person" /> 205 </intent-filter> 206 </activity-alias> 207 208 <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false" 209 android:process="system"> 210 <intent-filter> 211 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" /> 212 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" /> 213 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" /> 214 <action android:name="com.android.server.telecom.ACTION_ANSWER_FROM_NOTIFICATION" /> 215 <action android:name="com.android.server.telecom.ACTION_REJECT_FROM_NOTIFICATION" /> 216 <action android:name="com.android.server.telecom.PROCEED_WITH_CALL" /> 217 <action android:name="com.android.server.telecom.CANCEL_CALL" /> 218 </intent-filter> 219 </receiver> 220 221 <receiver android:name=".components.PhoneAccountBroadcastReceiver" 222 android:process="system"> 223 <intent-filter> 224 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" /> 225 <data android:scheme="package" /> 226 </intent-filter> 227 </receiver> 228 229 <activity android:name=".RespondViaSmsSettings" 230 android:label="@string/respond_via_sms_setting_title" 231 android:configChanges="orientation|screenSize|keyboardHidden" 232 android:theme="@style/Theme.Telecom.DialerSettings" 233 android:process=":ui"> 234 <intent-filter> 235 <action android:name="android.intent.action.MAIN" /> 236 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" /> 237 <category android:name="android.intent.category.DEFAULT" /> 238 </intent-filter> 239 </activity> 240 241 <activity android:name=".settings.EnableAccountPreferenceActivity" 242 android:label="@string/enable_account_preference_title" 243 android:configChanges="orientation|screenSize|keyboardHidden" 244 android:theme="@style/Theme.Telecom.DialerSettings" 245 android:process=":ui"> 246 <intent-filter> 247 <action android:name="android.intent.action.MAIN" /> 248 <category android:name="android.intent.category.DEFAULT" /> 249 </intent-filter> 250 </activity> 251 252 <activity android:name=".components.ErrorDialogActivity" 253 android:configChanges="orientation|screenSize|keyboardHidden" 254 android:excludeFromRecents="true" 255 android:launchMode="singleInstance" 256 android:theme="@style/Theme.Telecomm.Transparent" 257 android:process=":ui"> 258 </activity> 259 260 <activity android:name=".ui.ConfirmCallDialogActivity" 261 android:configChanges="orientation|screenSize|keyboardHidden" 262 android:excludeFromRecents="true" 263 android:launchMode="singleInstance" 264 android:theme="@style/Theme.Telecomm.Transparent" 265 android:process=":ui"> 266 </activity> 267 268 <activity android:name=".components.ChangeDefaultDialerDialog" 269 android:label="@string/change_default_dialer_dialog_title" 270 android:excludeFromRecents="true" 271 android:theme="@*android:style/Theme.Material.Light.Dialog.Alert" 272 android:priority="1000" 273 android:process=":ui" > 274 <intent-filter> 275 <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" /> 276 <category android:name="android.intent.category.DEFAULT" /> 277 </intent-filter> 278 </activity> 279 280 <receiver android:name=".components.PrimaryCallReceiver" 281 android:exported="true" 282 android:permission="android.permission.MODIFY_PHONE_STATE" 283 android:process="system"> 284 </receiver> 285 286 <service android:name=".components.BluetoothPhoneService" 287 android:singleUser="true" 288 android:process="system"> 289 <intent-filter> 290 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" /> 291 </intent-filter> 292 </service> 293 294 <service android:name=".components.TelecomService" 295 android:singleUser="true" 296 android:process="system"> 297 <intent-filter> 298 <action android:name="android.telecom.ITelecomService" /> 299 </intent-filter> 300 </service> 301 302 </application> 303</manifest> 304