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