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" |
Santos Cordon | b64c150 | 2014-05-21 21:21:49 -0700 | [diff] [blame] | 19 | package="com.android.telecomm" |
| 20 | coreApp="true" |
| 21 | android:sharedUserId="android.uid.phone"> |
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 | c7e85d4 | 2014-05-22 02:51:48 -0700 | [diff] [blame] | 30 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> |
Evan Charlton | 198fde8 | 2014-04-07 10:53:11 -0700 | [diff] [blame] | 31 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
Santos Cordon | c7e85d4 | 2014-05-22 02:51:48 -0700 | [diff] [blame] | 32 | <uses-permission android:name="android.permission.READ_CALL_LOG" /> |
| 33 | <uses-permission android:name="android.permission.STOP_APP_SWITCHES" /> |
Evan Charlton | 198fde8 | 2014-04-07 10:53:11 -0700 | [diff] [blame] | 34 | <uses-permission android:name="android.permission.VIBRATE" /> |
Santos Cordon | c7e85d4 | 2014-05-22 02:51:48 -0700 | [diff] [blame] | 35 | <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> |
Tyler Gunn | d160768 | 2014-08-15 11:29:12 -0700 | [diff] [blame] | 36 | <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" /> |
Tyler Gunn | 61b9210 | 2014-08-19 07:42:20 -0700 | [diff] [blame] | 37 | <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" /> |
Tyler Gunn | d160768 | 2014-08-15 11:29:12 -0700 | [diff] [blame] | 38 | |
Ihab Awad | c17294c | 2014-08-04 19:23:37 -0700 | [diff] [blame] | 39 | <!-- Protects the ability to register any PhoneAccount with a capability flags of either |
| 40 | PhoneAccount#CAPABILITY_CALL_PROVIDER or PhoneAccount#CAPABILITY_SIM_SUBSCRIPTION. --> |
| 41 | <permission |
| 42 | android:name="com.android.telecomm.permission.REGISTER_PROVIDER_OR_SUBSCRIPTION" |
| 43 | android:label="Register CALL_PROVIDER or SIM_SUBSCRIPTION PhoneAccount" |
| 44 | android:protectionLevel="signature"/> |
Sailesh Nepal | 1cecc7c | 2014-03-10 17:03:08 -0700 | [diff] [blame] | 45 | |
Evan Charlton | 0958f53 | 2014-01-10 16:58:02 -0800 | [diff] [blame] | 46 | <!-- Declare which SDK level this application was built against. This is needed so that IDEs |
| 47 | can check for incompatible APIs. --> |
| 48 | <uses-sdk android:minSdkVersion="19" /> |
| 49 | |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 50 | <application android:name="TelecommApp" |
Evan Charlton | 5c670a9 | 2014-03-06 14:58:20 -0800 | [diff] [blame] | 51 | android:persistent="true" |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 52 | android:label="@string/telecommAppLabel" |
| 53 | android:icon="@mipmap/ic_launcher_phone" |
Jay Shrauner | d5a71da | 2014-07-30 09:33:59 -0700 | [diff] [blame] | 54 | android:allowBackup="false" |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 55 | android:supportsRtl="true"> |
Santos Cordon | 10e6832 | 2013-12-12 16:06:56 -0800 | [diff] [blame] | 56 | |
| 57 | <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY |
| 58 | We have three different intents through which a call can be initiated each with its |
| 59 | own behavior. |
| 60 | 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this |
| 61 | intent, an app can call any number except emergency numbers. |
| 62 | 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED |
| 63 | permission, which is only held by the system dialer and the emergency dialer at the |
| 64 | time of this writing. Through this intent, an app can call any number including |
| 65 | emergency numbers. |
| 66 | 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED |
| 67 | permission. Through this intent, an app can call *only* emergency numbers. --> |
| 68 | |
| 69 | <!-- Activity that starts the outgoing call process by listening to CALL intent which |
| 70 | contain contact information in the intent's data. CallActivity handles any data |
| 71 | URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to |
| 72 | contacts provider entries. Any data not fitting the schema described is ignored. --> |
| 73 | <activity android:name="CallActivity" |
Yorke Lee | d725587 | 2014-08-25 15:03:51 -0700 | [diff] [blame^] | 74 | android:theme="@style/Theme.Telecomm.Transparent" |
Santos Cordon | 10e6832 | 2013-12-12 16:06:56 -0800 | [diff] [blame] | 75 | android:permission="android.permission.CALL_PHONE" |
| 76 | android:excludeFromRecents="true"> |
| 77 | <!-- CALL action intent filters for the various ways of initiating an outgoing call. --> |
| 78 | <intent-filter> |
| 79 | <action android:name="android.intent.action.CALL" /> |
| 80 | <category android:name="android.intent.category.DEFAULT" /> |
| 81 | <data android:scheme="tel" /> |
| 82 | </intent-filter> |
| 83 | <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP |
| 84 | icon for calls to SIP addresses. --> |
| 85 | <intent-filter android:icon="@drawable/ic_launcher_sip_call"> |
| 86 | <action android:name="android.intent.action.CALL" /> |
| 87 | <category android:name="android.intent.category.DEFAULT" /> |
| 88 | <data android:scheme="sip" /> |
| 89 | </intent-filter> |
| 90 | <intent-filter> |
| 91 | <action android:name="android.intent.action.CALL" /> |
| 92 | <category android:name="android.intent.category.DEFAULT" /> |
| 93 | <data android:scheme="voicemail" /> |
| 94 | </intent-filter> |
| 95 | <!-- Omit default category below so that all Intents sent to this filter must be |
| 96 | explicit. --> |
| 97 | <intent-filter> |
| 98 | <action android:name="android.intent.action.CALL" /> |
| 99 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 100 | <data android:mimeType="vnd.android.cursor.item/phone_v2" /> |
| 101 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 102 | </intent-filter> |
| 103 | </activity> |
| 104 | |
| 105 | <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent. |
| 106 | CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it. |
| 107 | Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be |
| 108 | processed. High priority of 1000 is used in all intent filters to prevent anything but |
| 109 | the system from processing this intent (b/8871505). --> |
| 110 | <activity-alias android:name="PrivilegedCallActivity" |
| 111 | android:targetActivity="CallActivity" |
| 112 | android:permission="android.permission.CALL_PRIVILEGED"> |
| 113 | <intent-filter android:priority="1000"> |
| 114 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 115 | <category android:name="android.intent.category.DEFAULT" /> |
| 116 | <data android:scheme="tel" /> |
| 117 | </intent-filter> |
| 118 | <intent-filter android:priority="1000" |
| 119 | android:icon="@drawable/ic_launcher_sip_call"> |
| 120 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 121 | <category android:name="android.intent.category.DEFAULT" /> |
| 122 | <data android:scheme="sip" /> |
| 123 | </intent-filter> |
| 124 | <intent-filter android:priority="1000"> |
| 125 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 126 | <category android:name="android.intent.category.DEFAULT" /> |
| 127 | <data android:scheme="voicemail" /> |
| 128 | </intent-filter> |
| 129 | <intent-filter android:priority="1000"> |
| 130 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 131 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 132 | <data android:mimeType="vnd.android.cursor.item/phone_v2" /> |
| 133 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 134 | </intent-filter> |
| 135 | </activity-alias> |
| 136 | |
| 137 | <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent. |
| 138 | CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the |
| 139 | CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of |
| 140 | 1000 is used in all intent filters to prevent anything but the system from processing |
| 141 | this intent (b/8871505). --> |
Santos Cordon | df39986 | 2014-08-06 04:39:15 -0700 | [diff] [blame] | 142 | <!-- 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] | 143 | that scheme be removed from this activity? --> |
| 144 | <activity-alias android:name="EmergencyCallActivity" |
| 145 | android:targetActivity="CallActivity" |
| 146 | android:permission="android.permission.CALL_PRIVILEGED"> |
| 147 | <intent-filter android:priority="1000"> |
| 148 | <action android:name="android.intent.action.CALL_EMERGENCY" /> |
| 149 | <category android:name="android.intent.category.DEFAULT" /> |
| 150 | <data android:scheme="tel" /> |
| 151 | </intent-filter> |
| 152 | <intent-filter android:priority="1000" |
| 153 | android:icon="@drawable/ic_launcher_sip_call"> |
| 154 | <action android:name="android.intent.action.CALL_EMERGENCY" /> |
| 155 | <category android:name="android.intent.category.DEFAULT" /> |
| 156 | <data android:scheme="sip" /> |
| 157 | </intent-filter> |
| 158 | <intent-filter android:priority="1000"> |
| 159 | <action android:name="android.intent.action.CALL_EMERGENCY" /> |
| 160 | <category android:name="android.intent.category.DEFAULT" /> |
| 161 | <data android:scheme="voicemail" /> |
| 162 | </intent-filter> |
| 163 | <intent-filter android:priority="1000"> |
| 164 | <action android:name="android.intent.action.CALL_EMERGENCY" /> |
| 165 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 166 | <data android:mimeType="vnd.android.cursor.item/phone_v2" /> |
| 167 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 168 | </intent-filter> |
| 169 | </activity-alias> |
| 170 | |
Santos Cordon | 523f605 | 2014-02-20 16:39:34 -0800 | [diff] [blame] | 171 | <activity-alias android:name="IncomingCallActivity" |
| 172 | android:targetActivity="CallActivity" |
| 173 | android:exported="true"> |
Santos Cordon | 3e3b541 | 2013-12-16 17:33:45 -0800 | [diff] [blame] | 174 | <intent-filter> |
Santos Cordon | 493e8f2 | 2014-02-19 03:15:12 -0800 | [diff] [blame] | 175 | <action android:name="android.intent.action.INCOMING_CALL" /> |
| 176 | <category android:name="android.intent.category.DEFAULT" /> |
Santos Cordon | 3e3b541 | 2013-12-16 17:33:45 -0800 | [diff] [blame] | 177 | </intent-filter> |
Santos Cordon | 523f605 | 2014-02-20 16:39:34 -0800 | [diff] [blame] | 178 | </activity-alias> |
| 179 | |
Santos Cordon | a0e5f1a | 2014-03-31 21:43:00 -0700 | [diff] [blame] | 180 | <receiver android:name="TelecommBroadcastReceiver" android:exported="false"> |
| 181 | <intent-filter> |
| 182 | <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" /> |
| 183 | <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" /> |
| 184 | <action android:name="com.android.telecomm.ACTION_SEND_SMS_FROM_NOTIFICATION" /> |
| 185 | </intent-filter> |
| 186 | </receiver> |
| 187 | |
Tyler Gunn | d900ce6 | 2014-08-13 11:40:59 -0700 | [diff] [blame] | 188 | <receiver android:name="PhoneAccountBroadcastReceiver"> |
| 189 | <intent-filter> |
| 190 | <action android:name="android.intent.action.PACKAGE_REMOVED" /> |
| 191 | <data android:scheme="package" /> |
| 192 | </intent-filter> |
| 193 | </receiver> |
| 194 | |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 195 | <activity android:name=".RespondViaSmsSettings$Settings" |
| 196 | android:label="@string/respond_via_sms_setting_title" |
| 197 | android:configChanges="orientation|screenSize|keyboardHidden"> |
| 198 | <intent-filter> |
| 199 | <action android:name="android.intent.action.MAIN" /> |
| 200 | </intent-filter> |
| 201 | </activity> |
Ihab Awad | 104f806 | 2014-07-17 11:29:35 -0700 | [diff] [blame] | 202 | |
| 203 | <activity android:name=".PhoneAccountPreferencesActivity" |
Ihab Awad | 78ac0ce | 2014-07-18 13:32:53 -0700 | [diff] [blame] | 204 | android:label="@string/phone_account_preferences_title" |
| 205 | android:configChanges="orientation|screenSize|keyboardHidden"> |
Ihab Awad | 104f806 | 2014-07-17 11:29:35 -0700 | [diff] [blame] | 206 | android:exported="true" > |
| 207 | <intent-filter> |
| 208 | <action android:name="android.intent.action.MAIN" /> |
| 209 | </intent-filter> |
| 210 | </activity> |
| 211 | |
Yorke Lee | d725587 | 2014-08-25 15:03:51 -0700 | [diff] [blame^] | 212 | <activity android:name=".ErrorDialogActivity" |
| 213 | android:configChanges="orientation|screenSize|keyboardHidden" |
| 214 | android:excludeFromRecents="true" |
| 215 | android:launchMode="singleInstance" |
| 216 | android:theme="@style/Theme.Telecomm.Transparent"> |
| 217 | </activity> |
| 218 | |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 219 | </application> |
| 220 | </manifest> |