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