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