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