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