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 | 10e6832 | 2013-12-12 16:06:56 -0800 | [diff] [blame] | 19 | package="com.android.telecomm"> |
Santos Cordon | 3e3b541 | 2013-12-16 17:33:45 -0800 | [diff] [blame] | 20 | |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 21 | <!-- Prevents the activity manager from delaying any activity-start |
| 22 | requests by this package, including requests immediately after |
| 23 | the user presses "home". --> |
| 24 | <!-- TODO(gilad): Better understand/document this use case. --> |
| 25 | <uses-permission android:name="android.permission.STOP_APP_SWITCHES" /> |
Yorke Lee | f98fb57 | 2014-03-05 10:56:55 -0800 | [diff] [blame] | 26 | <uses-permission android:name="android.permission.READ_CALL_LOG" /> |
| 27 | <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> |
Santos Cordon | a0e5f1a | 2014-03-31 21:43:00 -0700 | [diff] [blame^] | 28 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 29 | |
Sailesh Nepal | 1cecc7c | 2014-03-10 17:03:08 -0700 | [diff] [blame] | 30 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission> |
| 31 | |
Evan Charlton | 0958f53 | 2014-01-10 16:58:02 -0800 | [diff] [blame] | 32 | <!-- Declare which SDK level this application was built against. This is needed so that IDEs |
| 33 | can check for incompatible APIs. --> |
| 34 | <uses-sdk android:minSdkVersion="19" /> |
| 35 | |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 36 | <application android:name="TelecommApp" |
Evan Charlton | 5c670a9 | 2014-03-06 14:58:20 -0800 | [diff] [blame] | 37 | android:persistent="true" |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 38 | android:label="@string/telecommAppLabel" |
| 39 | android:icon="@mipmap/ic_launcher_phone" |
| 40 | android:supportsRtl="true"> |
Santos Cordon | 10e6832 | 2013-12-12 16:06:56 -0800 | [diff] [blame] | 41 | |
| 42 | <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY |
| 43 | We have three different intents through which a call can be initiated each with its |
| 44 | own behavior. |
| 45 | 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this |
| 46 | intent, an app can call any number except emergency numbers. |
| 47 | 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED |
| 48 | permission, which is only held by the system dialer and the emergency dialer at the |
| 49 | time of this writing. Through this intent, an app can call any number including |
| 50 | emergency numbers. |
| 51 | 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED |
| 52 | permission. Through this intent, an app can call *only* emergency numbers. --> |
| 53 | |
| 54 | <!-- Activity that starts the outgoing call process by listening to CALL intent which |
| 55 | contain contact information in the intent's data. CallActivity handles any data |
| 56 | URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to |
| 57 | contacts provider entries. Any data not fitting the schema described is ignored. --> |
| 58 | <activity android:name="CallActivity" |
| 59 | android:theme="@android:style/Theme.NoDisplay" |
| 60 | android:permission="android.permission.CALL_PHONE" |
| 61 | android:excludeFromRecents="true"> |
| 62 | <!-- CALL action intent filters for the various ways of initiating an outgoing call. --> |
| 63 | <intent-filter> |
| 64 | <action android:name="android.intent.action.CALL" /> |
| 65 | <category android:name="android.intent.category.DEFAULT" /> |
| 66 | <data android:scheme="tel" /> |
| 67 | </intent-filter> |
| 68 | <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP |
| 69 | icon for calls to SIP addresses. --> |
| 70 | <intent-filter android:icon="@drawable/ic_launcher_sip_call"> |
| 71 | <action android:name="android.intent.action.CALL" /> |
| 72 | <category android:name="android.intent.category.DEFAULT" /> |
| 73 | <data android:scheme="sip" /> |
| 74 | </intent-filter> |
| 75 | <intent-filter> |
| 76 | <action android:name="android.intent.action.CALL" /> |
| 77 | <category android:name="android.intent.category.DEFAULT" /> |
| 78 | <data android:scheme="voicemail" /> |
| 79 | </intent-filter> |
| 80 | <!-- Omit default category below so that all Intents sent to this filter must be |
| 81 | explicit. --> |
| 82 | <intent-filter> |
| 83 | <action android:name="android.intent.action.CALL" /> |
| 84 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 85 | <data android:mimeType="vnd.android.cursor.item/phone_v2" /> |
| 86 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 87 | </intent-filter> |
| 88 | </activity> |
| 89 | |
| 90 | <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent. |
| 91 | CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it. |
| 92 | Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be |
| 93 | processed. High priority of 1000 is used in all intent filters to prevent anything but |
| 94 | the system from processing this intent (b/8871505). --> |
| 95 | <activity-alias android:name="PrivilegedCallActivity" |
| 96 | android:targetActivity="CallActivity" |
| 97 | android:permission="android.permission.CALL_PRIVILEGED"> |
| 98 | <intent-filter android:priority="1000"> |
| 99 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 100 | <category android:name="android.intent.category.DEFAULT" /> |
| 101 | <data android:scheme="tel" /> |
| 102 | </intent-filter> |
| 103 | <intent-filter android:priority="1000" |
| 104 | android:icon="@drawable/ic_launcher_sip_call"> |
| 105 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 106 | <category android:name="android.intent.category.DEFAULT" /> |
| 107 | <data android:scheme="sip" /> |
| 108 | </intent-filter> |
| 109 | <intent-filter android:priority="1000"> |
| 110 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 111 | <category android:name="android.intent.category.DEFAULT" /> |
| 112 | <data android:scheme="voicemail" /> |
| 113 | </intent-filter> |
| 114 | <intent-filter android:priority="1000"> |
| 115 | <action android:name="android.intent.action.CALL_PRIVILEGED" /> |
| 116 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 117 | <data android:mimeType="vnd.android.cursor.item/phone_v2" /> |
| 118 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 119 | </intent-filter> |
| 120 | </activity-alias> |
| 121 | |
| 122 | <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent. |
| 123 | CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the |
| 124 | CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of |
| 125 | 1000 is used in all intent filters to prevent anything but the system from processing |
| 126 | this intent (b/8871505). --> |
| 127 | <!-- TODO(santoscordon): Is there really a notion of an emergency SIP number? If not, can |
| 128 | that scheme be removed from this activity? --> |
| 129 | <activity-alias android:name="EmergencyCallActivity" |
| 130 | android:targetActivity="CallActivity" |
| 131 | android:permission="android.permission.CALL_PRIVILEGED"> |
| 132 | <intent-filter android:priority="1000"> |
| 133 | <action android:name="android.intent.action.CALL_EMERGENCY" /> |
| 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_EMERGENCY" /> |
| 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_EMERGENCY" /> |
| 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_EMERGENCY" /> |
| 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 | |
Santos Cordon | 523f605 | 2014-02-20 16:39:34 -0800 | [diff] [blame] | 156 | <activity-alias android:name="IncomingCallActivity" |
| 157 | android:targetActivity="CallActivity" |
| 158 | android:exported="true"> |
Santos Cordon | 3e3b541 | 2013-12-16 17:33:45 -0800 | [diff] [blame] | 159 | <intent-filter> |
Santos Cordon | 493e8f2 | 2014-02-19 03:15:12 -0800 | [diff] [blame] | 160 | <action android:name="android.intent.action.INCOMING_CALL" /> |
| 161 | <category android:name="android.intent.category.DEFAULT" /> |
Santos Cordon | 3e3b541 | 2013-12-16 17:33:45 -0800 | [diff] [blame] | 162 | </intent-filter> |
Santos Cordon | 523f605 | 2014-02-20 16:39:34 -0800 | [diff] [blame] | 163 | </activity-alias> |
| 164 | |
Santos Cordon | 5b7b9b3 | 2014-03-26 14:00:22 -0700 | [diff] [blame] | 165 | <!-- Selects call services to place emergency calls. --> |
| 166 | <service android:name="EmergencyCallServiceSelector" android:exported="false" /> |
| 167 | |
Santos Cordon | a0e5f1a | 2014-03-31 21:43:00 -0700 | [diff] [blame^] | 168 | <receiver android:name="TelecommBroadcastReceiver" android:exported="false"> |
| 169 | <intent-filter> |
| 170 | <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" /> |
| 171 | <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" /> |
| 172 | <action android:name="com.android.telecomm.ACTION_SEND_SMS_FROM_NOTIFICATION" /> |
| 173 | </intent-filter> |
| 174 | </receiver> |
| 175 | |
Ben Gilad | 4937ff9 | 2013-12-12 12:05:37 -0800 | [diff] [blame] | 176 | </application> |
| 177 | </manifest> |