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