blob: a8d1f991beaf43e2ccaba0ab06b4a0099a6dfa54 [file] [log] [blame]
Ben Gilad4937ff92013-12-12 12:05:37 -08001<?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 Cordonb64c1502014-05-21 21:21:49 -070019 package="com.android.telecomm"
20 coreApp="true"
21 android:sharedUserId="android.uid.phone">
Santos Cordon3e3b5412013-12-16 17:33:45 -080022
Ben Gilad4937ff92013-12-12 12:05:37 -080023 <!-- Prevents the activity manager from delaying any activity-start
24 requests by this package, including requests immediately after
25 the user presses "home". -->
Santos Cordonc7e85d42014-05-22 02:51:48 -070026 <uses-permission android:name="android.permission.BLUETOOTH" />
27 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070028 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Yorke Leea38f3292014-07-16 17:31:02 -070029 <uses-permission android:name="android.permission.MANAGE_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070030 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Evan Charlton198fde82014-04-07 10:53:11 -070031 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070032 <uses-permission android:name="android.permission.READ_CALL_LOG" />
33 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070034 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070035 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Tyler Gunnd1607682014-08-15 11:29:12 -070036 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
37
Ihab Awadc17294c2014-08-04 19:23:37 -070038 <!-- Protects the ability to register any PhoneAccount with a capability flags of either
39 PhoneAccount#CAPABILITY_CALL_PROVIDER or PhoneAccount#CAPABILITY_SIM_SUBSCRIPTION. -->
40 <permission
41 android:name="com.android.telecomm.permission.REGISTER_PROVIDER_OR_SUBSCRIPTION"
42 android:label="Register CALL_PROVIDER or SIM_SUBSCRIPTION PhoneAccount"
43 android:protectionLevel="signature"/>
Sailesh Nepal1cecc7c2014-03-10 17:03:08 -070044
Evan Charlton0958f532014-01-10 16:58:02 -080045 <!-- Declare which SDK level this application was built against. This is needed so that IDEs
46 can check for incompatible APIs. -->
47 <uses-sdk android:minSdkVersion="19" />
48
Santos Cordon049b7b62014-01-30 05:34:26 -080049 <application android:name="TelecommApp"
Evan Charlton5c670a92014-03-06 14:58:20 -080050 android:persistent="true"
Ben Gilad4937ff92013-12-12 12:05:37 -080051 android:label="@string/telecommAppLabel"
52 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070053 android:allowBackup="false"
Ben Gilad4937ff92013-12-12 12:05:37 -080054 android:supportsRtl="true">
Santos Cordon10e68322013-12-12 16:06:56 -080055
56 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
57 We have three different intents through which a call can be initiated each with its
58 own behavior.
59 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
60 intent, an app can call any number except emergency numbers.
61 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
62 permission, which is only held by the system dialer and the emergency dialer at the
63 time of this writing. Through this intent, an app can call any number including
64 emergency numbers.
65 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
66 permission. Through this intent, an app can call *only* emergency numbers. -->
67
68 <!-- Activity that starts the outgoing call process by listening to CALL intent which
69 contain contact information in the intent's data. CallActivity handles any data
70 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
71 contacts provider entries. Any data not fitting the schema described is ignored. -->
72 <activity android:name="CallActivity"
73 android:theme="@android:style/Theme.NoDisplay"
74 android:permission="android.permission.CALL_PHONE"
75 android:excludeFromRecents="true">
76 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
77 <intent-filter>
78 <action android:name="android.intent.action.CALL" />
79 <category android:name="android.intent.category.DEFAULT" />
80 <data android:scheme="tel" />
81 </intent-filter>
82 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
83 icon for calls to SIP addresses. -->
84 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
85 <action android:name="android.intent.action.CALL" />
86 <category android:name="android.intent.category.DEFAULT" />
87 <data android:scheme="sip" />
88 </intent-filter>
89 <intent-filter>
90 <action android:name="android.intent.action.CALL" />
91 <category android:name="android.intent.category.DEFAULT" />
92 <data android:scheme="voicemail" />
93 </intent-filter>
94 <!-- Omit default category below so that all Intents sent to this filter must be
95 explicit. -->
96 <intent-filter>
97 <action android:name="android.intent.action.CALL" />
98 <data android:mimeType="vnd.android.cursor.item/phone" />
99 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
100 <data android:mimeType="vnd.android.cursor.item/person" />
101 </intent-filter>
102 </activity>
103
104 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
105 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
106 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
107 processed. High priority of 1000 is used in all intent filters to prevent anything but
108 the system from processing this intent (b/8871505). -->
109 <activity-alias android:name="PrivilegedCallActivity"
110 android:targetActivity="CallActivity"
111 android:permission="android.permission.CALL_PRIVILEGED">
112 <intent-filter android:priority="1000">
113 <action android:name="android.intent.action.CALL_PRIVILEGED" />
114 <category android:name="android.intent.category.DEFAULT" />
115 <data android:scheme="tel" />
116 </intent-filter>
117 <intent-filter android:priority="1000"
118 android:icon="@drawable/ic_launcher_sip_call">
119 <action android:name="android.intent.action.CALL_PRIVILEGED" />
120 <category android:name="android.intent.category.DEFAULT" />
121 <data android:scheme="sip" />
122 </intent-filter>
123 <intent-filter android:priority="1000">
124 <action android:name="android.intent.action.CALL_PRIVILEGED" />
125 <category android:name="android.intent.category.DEFAULT" />
126 <data android:scheme="voicemail" />
127 </intent-filter>
128 <intent-filter android:priority="1000">
129 <action android:name="android.intent.action.CALL_PRIVILEGED" />
130 <data android:mimeType="vnd.android.cursor.item/phone" />
131 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
132 <data android:mimeType="vnd.android.cursor.item/person" />
133 </intent-filter>
134 </activity-alias>
135
136 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
137 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
138 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
139 1000 is used in all intent filters to prevent anything but the system from processing
140 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700141 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800142 that scheme be removed from this activity? -->
143 <activity-alias android:name="EmergencyCallActivity"
144 android:targetActivity="CallActivity"
145 android:permission="android.permission.CALL_PRIVILEGED">
146 <intent-filter android:priority="1000">
147 <action android:name="android.intent.action.CALL_EMERGENCY" />
148 <category android:name="android.intent.category.DEFAULT" />
149 <data android:scheme="tel" />
150 </intent-filter>
151 <intent-filter android:priority="1000"
152 android:icon="@drawable/ic_launcher_sip_call">
153 <action android:name="android.intent.action.CALL_EMERGENCY" />
154 <category android:name="android.intent.category.DEFAULT" />
155 <data android:scheme="sip" />
156 </intent-filter>
157 <intent-filter android:priority="1000">
158 <action android:name="android.intent.action.CALL_EMERGENCY" />
159 <category android:name="android.intent.category.DEFAULT" />
160 <data android:scheme="voicemail" />
161 </intent-filter>
162 <intent-filter android:priority="1000">
163 <action android:name="android.intent.action.CALL_EMERGENCY" />
164 <data android:mimeType="vnd.android.cursor.item/phone" />
165 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
166 <data android:mimeType="vnd.android.cursor.item/person" />
167 </intent-filter>
168 </activity-alias>
169
Santos Cordon523f6052014-02-20 16:39:34 -0800170 <activity-alias android:name="IncomingCallActivity"
171 android:targetActivity="CallActivity"
172 android:exported="true">
Santos Cordon3e3b5412013-12-16 17:33:45 -0800173 <intent-filter>
Santos Cordon493e8f22014-02-19 03:15:12 -0800174 <action android:name="android.intent.action.INCOMING_CALL" />
175 <category android:name="android.intent.category.DEFAULT" />
Santos Cordon3e3b5412013-12-16 17:33:45 -0800176 </intent-filter>
Santos Cordon523f6052014-02-20 16:39:34 -0800177 </activity-alias>
178
Santos Cordona0e5f1a2014-03-31 21:43:00 -0700179 <receiver android:name="TelecommBroadcastReceiver" android:exported="false">
180 <intent-filter>
181 <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" />
182 <action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" />
183 <action android:name="com.android.telecomm.ACTION_SEND_SMS_FROM_NOTIFICATION" />
184 </intent-filter>
185 </receiver>
186
Tyler Gunnd900ce62014-08-13 11:40:59 -0700187 <receiver android:name="PhoneAccountBroadcastReceiver">
188 <intent-filter>
189 <action android:name="android.intent.action.PACKAGE_REMOVED" />
190 <data android:scheme="package" />
191 </intent-filter>
192 </receiver>
193
Ihab Awadff7493a2014-06-10 13:47:44 -0700194 <activity android:name=".RespondViaSmsSettings$Settings"
195 android:label="@string/respond_via_sms_setting_title"
196 android:configChanges="orientation|screenSize|keyboardHidden">
197 <intent-filter>
198 <action android:name="android.intent.action.MAIN" />
199 </intent-filter>
200 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700201
202 <activity android:name=".PhoneAccountPreferencesActivity"
Ihab Awad78ac0ce2014-07-18 13:32:53 -0700203 android:label="@string/phone_account_preferences_title"
204 android:configChanges="orientation|screenSize|keyboardHidden">
Ihab Awad104f8062014-07-17 11:29:35 -0700205 android:exported="true" >
206 <intent-filter>
207 <action android:name="android.intent.action.MAIN" />
208 </intent-filter>
209 </activity>
210
Ben Gilad4937ff92013-12-12 12:05:37 -0800211 </application>
212</manifest>