AndroidManifest.xml revision a38f329b316b2d7d155672ce6c6e89939d179219
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.telecomm" 20 coreApp="true" 21 android:sharedUserId="android.uid.phone"> 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.BLUETOOTH" /> 27 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 28 <uses-permission android:name="android.permission.CALL_PRIVILEGED" /> 29 <uses-permission android:name="android.permission.MANAGE_USERS" /> 30 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> 31 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 32 <uses-permission android:name="android.permission.READ_CALL_LOG" /> 33 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" /> 34 <uses-permission android:name="android.permission.VIBRATE" /> 35 <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> 36 37 <!-- Declare which SDK level this application was built against. This is needed so that IDEs 38 can check for incompatible APIs. --> 39 <uses-sdk android:minSdkVersion="19" /> 40 41 <application android:name="TelecommApp" 42 android:persistent="true" 43 android:label="@string/telecommAppLabel" 44 android:icon="@mipmap/ic_launcher_phone" 45 android:supportsRtl="true"> 46 47 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY 48 We have three different intents through which a call can be initiated each with its 49 own behavior. 50 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this 51 intent, an app can call any number except emergency numbers. 52 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED 53 permission, which is only held by the system dialer and the emergency dialer at the 54 time of this writing. Through this intent, an app can call any number including 55 emergency numbers. 56 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED 57 permission. Through this intent, an app can call *only* emergency numbers. --> 58 59 <!-- Activity that starts the outgoing call process by listening to CALL intent which 60 contain contact information in the intent's data. CallActivity handles any data 61 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to 62 contacts provider entries. Any data not fitting the schema described is ignored. --> 63 <activity android:name="CallActivity" 64 android:theme="@android:style/Theme.NoDisplay" 65 android:permission="android.permission.CALL_PHONE" 66 android:excludeFromRecents="true"> 67 <!-- CALL action intent filters for the various ways of initiating an outgoing call. --> 68 <intent-filter> 69 <action android:name="android.intent.action.CALL" /> 70 <category android:name="android.intent.category.DEFAULT" /> 71 <data android:scheme="tel" /> 72 </intent-filter> 73 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP 74 icon for calls to SIP addresses. --> 75 <intent-filter android:icon="@drawable/ic_launcher_sip_call"> 76 <action android:name="android.intent.action.CALL" /> 77 <category android:name="android.intent.category.DEFAULT" /> 78 <data android:scheme="sip" /> 79 </intent-filter> 80 <intent-filter> 81 <action android:name="android.intent.action.CALL" /> 82 <category android:name="android.intent.category.DEFAULT" /> 83 <data android:scheme="voicemail" /> 84 </intent-filter> 85 <!-- Omit default category below so that all Intents sent to this filter must be 86 explicit. --> 87 <intent-filter> 88 <action android:name="android.intent.action.CALL" /> 89 <data android:mimeType="vnd.android.cursor.item/phone" /> 90 <data android:mimeType="vnd.android.cursor.item/phone_v2" /> 91 <data android:mimeType="vnd.android.cursor.item/person" /> 92 </intent-filter> 93 </activity> 94 95 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent. 96 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it. 97 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be 98 processed. High priority of 1000 is used in all intent filters to prevent anything but 99 the system from processing this intent (b/8871505). --> 100 <activity-alias android:name="PrivilegedCallActivity" 101 android:targetActivity="CallActivity" 102 android:permission="android.permission.CALL_PRIVILEGED"> 103 <intent-filter android:priority="1000"> 104 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 105 <category android:name="android.intent.category.DEFAULT" /> 106 <data android:scheme="tel" /> 107 </intent-filter> 108 <intent-filter android:priority="1000" 109 android:icon="@drawable/ic_launcher_sip_call"> 110 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 111 <category android:name="android.intent.category.DEFAULT" /> 112 <data android:scheme="sip" /> 113 </intent-filter> 114 <intent-filter android:priority="1000"> 115 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 116 <category android:name="android.intent.category.DEFAULT" /> 117 <data android:scheme="voicemail" /> 118 </intent-filter> 119 <intent-filter android:priority="1000"> 120 <action android:name="android.intent.action.CALL_PRIVILEGED" /> 121 <data android:mimeType="vnd.android.cursor.item/phone" /> 122 <data android:mimeType="vnd.android.cursor.item/phone_v2" /> 123 <data android:mimeType="vnd.android.cursor.item/person" /> 124 </intent-filter> 125 </activity-alias> 126 127 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent. 128 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the 129 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of 130 1000 is used in all intent filters to prevent anything but the system from processing 131 this intent (b/8871505). --> 132 <!-- TODO(santoscordon): Is there really a notion of an emergency SIP number? If not, can 133 that scheme be removed from this activity? --> 134 <activity-alias android:name="EmergencyCallActivity" 135 android:targetActivity="CallActivity" 136 android:permission="android.permission.CALL_PRIVILEGED"> 137 <intent-filter android:priority="1000"> 138 <action android:name="android.intent.action.CALL_EMERGENCY" /> 139 <category android:name="android.intent.category.DEFAULT" /> 140 <data android:scheme="tel" /> 141 </intent-filter> 142 <intent-filter android:priority="1000" 143 android:icon="@drawable/ic_launcher_sip_call"> 144 <action android:name="android.intent.action.CALL_EMERGENCY" /> 145 <category android:name="android.intent.category.DEFAULT" /> 146 <data android:scheme="sip" /> 147 </intent-filter> 148 <intent-filter android:priority="1000"> 149 <action android:name="android.intent.action.CALL_EMERGENCY" /> 150 <category android:name="android.intent.category.DEFAULT" /> 151 <data android:scheme="voicemail" /> 152 </intent-filter> 153 <intent-filter android:priority="1000"> 154 <action android:name="android.intent.action.CALL_EMERGENCY" /> 155 <data android:mimeType="vnd.android.cursor.item/phone" /> 156 <data android:mimeType="vnd.android.cursor.item/phone_v2" /> 157 <data android:mimeType="vnd.android.cursor.item/person" /> 158 </intent-filter> 159 </activity-alias> 160 161 <activity-alias android:name="IncomingCallActivity" 162 android:targetActivity="CallActivity" 163 android:exported="true"> 164 <intent-filter> 165 <action android:name="android.intent.action.INCOMING_CALL" /> 166 <category android:name="android.intent.category.DEFAULT" /> 167 </intent-filter> 168 </activity-alias> 169 170 <receiver android:name="TelecommBroadcastReceiver" android:exported="false"> 171 <intent-filter> 172 <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" /> 173 <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" /> 174 <action android:name="com.android.telecomm.ACTION_SEND_SMS_FROM_NOTIFICATION" /> 175 </intent-filter> 176 </receiver> 177 178 <activity android:name=".RespondViaSmsSettings$Settings" 179 android:label="@string/respond_via_sms_setting_title" 180 android:configChanges="orientation|screenSize|keyboardHidden"> 181 <intent-filter> 182 <action android:name="android.intent.action.MAIN" /> 183 </intent-filter> 184 </activity> 185 186 <activity android:name=".PhoneAccountPreferencesActivity" 187 android:label="@string/phone_account_preferences_title" 188 android:configChanges="orientation|screenSize|keyboardHidden"> 189 android:exported="true" > 190 <intent-filter> 191 <action android:name="android.intent.action.MAIN" /> 192 </intent-filter> 193 </activity> 194 195 </application> 196</manifest> 197