blob: 56a594b2144052f4febf746c07786c9b4e262a76 [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"
Tyler Gunn7cc70b42014-09-12 22:17:27 -070019 package="com.android.server.telecom"
Santos Cordonb64c1502014-05-21 21:21:49 -070020 coreApp="true"
Santos Cordone6a33f22014-12-02 13:19:00 -080021 android:sharedUserId="android.uid.system">
Santos Cordon3e3b5412013-12-16 17:33:45 -080022
Bryce Lee41045b42015-08-05 13:10:39 -070023
24 <protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION" />
25
Ben Gilad4937ff92013-12-12 12:05:37 -080026 <!-- Prevents the activity manager from delaying any activity-start
27 requests by this package, including requests immediately after
28 the user presses "home". -->
Santos Cordonea5cb932015-05-07 16:28:38 -070029 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
30 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070031 <uses-permission android:name="android.permission.BLUETOOTH" />
32 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Santos Cordonea5cb932015-05-07 16:28:38 -070033 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
34 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070035 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Santos Cordone6a33f22014-12-02 13:19:00 -080036 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070037 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Santos Cordonea5cb932015-05-07 16:28:38 -070038 <uses-permission android:name="android.permission.MANAGE_USERS" />
Evan Charlton198fde82014-04-07 10:53:11 -070039 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Santos Cordonea5cb932015-05-07 16:28:38 -070040 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070041 <uses-permission android:name="android.permission.READ_CALL_LOG" />
42 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070043 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070044 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Tyler Gunnd1607682014-08-15 11:29:12 -070045
Santos Cordon0ceb5a12014-10-23 09:30:19 -070046 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050047 android:name="android.permission.BROADCAST_CALLLOG_INFO"
48 android:label="Broadcast the call type/duration information"
49 android:protectionLevel="signature|system"/>
50
51 <permission
52 android:name="android.permission.PROCESS_CALLLOG_INFO"
53 android:label="Register to handle the broadcasted call type/duration information"
54 android:protectionLevel="signature|system"/>
55
Santos Cordon4c778492015-02-27 15:13:35 -080056 <permission
57 android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
58 android:label="Broadcast phone account registration"
59 android:protectionLevel="signature|system"/>
60
61 <permission
62 android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
63 android:label="Process phone account registration"
64 android:protectionLevel="signature|system"/>
65
Evan Charlton0958f532014-01-10 16:58:02 -080066 <!-- Declare which SDK level this application was built against. This is needed so that IDEs
67 can check for incompatible APIs. -->
68 <uses-sdk android:minSdkVersion="19" />
69
Santos Cordon581ec4a2014-12-15 09:59:26 -080070 <application android:label="@string/telecommAppLabel"
Ben Gilad4937ff92013-12-12 12:05:37 -080071 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070072 android:allowBackup="false"
Santos Cordon581ec4a2014-12-15 09:59:26 -080073 android:supportsRtl="true"
Alex Klyubinebe2fb32015-05-20 11:30:05 -070074 android:process="system"
75 android:usesCleartextTraffic="false">
Santos Cordon10e68322013-12-12 16:06:56 -080076
77 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
78 We have three different intents through which a call can be initiated each with its
79 own behavior.
80 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
81 intent, an app can call any number except emergency numbers.
82 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
83 permission, which is only held by the system dialer and the emergency dialer at the
84 time of this writing. Through this intent, an app can call any number including
85 emergency numbers.
86 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
87 permission. Through this intent, an app can call *only* emergency numbers. -->
88
89 <!-- Activity that starts the outgoing call process by listening to CALL intent which
90 contain contact information in the intent's data. CallActivity handles any data
91 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
92 contacts provider entries. Any data not fitting the schema described is ignored. -->
Ihab Awad78a5e6b2015-02-06 10:13:05 -080093 <activity android:name=".components.UserCallActivity"
Jay Shrauner4d0b4192015-08-11 10:46:08 -070094 android:label="@string/userCallActivityLabel"
Yorke Leed7255872014-08-25 15:03:51 -070095 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -080096 android:permission="android.permission.CALL_PHONE"
Santos Cordone6a33f22014-12-02 13:19:00 -080097 android:excludeFromRecents="true"
98 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -080099 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
100 <intent-filter>
101 <action android:name="android.intent.action.CALL" />
102 <category android:name="android.intent.category.DEFAULT" />
103 <data android:scheme="tel" />
104 </intent-filter>
105 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
106 icon for calls to SIP addresses. -->
107 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
108 <action android:name="android.intent.action.CALL" />
109 <category android:name="android.intent.category.DEFAULT" />
110 <data android:scheme="sip" />
111 </intent-filter>
112 <intent-filter>
113 <action android:name="android.intent.action.CALL" />
114 <category android:name="android.intent.category.DEFAULT" />
115 <data android:scheme="voicemail" />
116 </intent-filter>
117 <!-- Omit default category below so that all Intents sent to this filter must be
118 explicit. -->
119 <intent-filter>
120 <action android:name="android.intent.action.CALL" />
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>
126
127 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
128 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
129 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
130 processed. High priority of 1000 is used in all intent filters to prevent anything but
131 the system from processing this intent (b/8871505). -->
132 <activity-alias android:name="PrivilegedCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800133 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800134 android:permission="android.permission.CALL_PRIVILEGED"
135 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800136 <intent-filter android:priority="1000">
137 <action android:name="android.intent.action.CALL_PRIVILEGED" />
138 <category android:name="android.intent.category.DEFAULT" />
139 <data android:scheme="tel" />
140 </intent-filter>
141 <intent-filter android:priority="1000"
142 android:icon="@drawable/ic_launcher_sip_call">
143 <action android:name="android.intent.action.CALL_PRIVILEGED" />
144 <category android:name="android.intent.category.DEFAULT" />
145 <data android:scheme="sip" />
146 </intent-filter>
147 <intent-filter android:priority="1000">
148 <action android:name="android.intent.action.CALL_PRIVILEGED" />
149 <category android:name="android.intent.category.DEFAULT" />
150 <data android:scheme="voicemail" />
151 </intent-filter>
152 <intent-filter android:priority="1000">
153 <action android:name="android.intent.action.CALL_PRIVILEGED" />
154 <data android:mimeType="vnd.android.cursor.item/phone" />
155 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
156 <data android:mimeType="vnd.android.cursor.item/person" />
157 </intent-filter>
158 </activity-alias>
159
160 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
161 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
162 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
163 1000 is used in all intent filters to prevent anything but the system from processing
164 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700165 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800166 that scheme be removed from this activity? -->
167 <activity-alias android:name="EmergencyCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800168 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800169 android:permission="android.permission.CALL_PRIVILEGED"
170 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800171 <intent-filter android:priority="1000">
172 <action android:name="android.intent.action.CALL_EMERGENCY" />
173 <category android:name="android.intent.category.DEFAULT" />
174 <data android:scheme="tel" />
175 </intent-filter>
176 <intent-filter android:priority="1000"
177 android:icon="@drawable/ic_launcher_sip_call">
178 <action android:name="android.intent.action.CALL_EMERGENCY" />
179 <category android:name="android.intent.category.DEFAULT" />
180 <data android:scheme="sip" />
181 </intent-filter>
182 <intent-filter android:priority="1000">
183 <action android:name="android.intent.action.CALL_EMERGENCY" />
184 <category android:name="android.intent.category.DEFAULT" />
185 <data android:scheme="voicemail" />
186 </intent-filter>
187 <intent-filter android:priority="1000">
188 <action android:name="android.intent.action.CALL_EMERGENCY" />
189 <data android:mimeType="vnd.android.cursor.item/phone" />
190 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
191 <data android:mimeType="vnd.android.cursor.item/person" />
192 </intent-filter>
193 </activity-alias>
194
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800195 <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
Santos Cordone6a33f22014-12-02 13:19:00 -0800196 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700197 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700198 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700199 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
200 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
201 </intent-filter>
202 </receiver>
203
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800204 <receiver android:name=".components.PhoneAccountBroadcastReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800205 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700206 <intent-filter>
207 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
208 <data android:scheme="package" />
209 </intent-filter>
210 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700211
Andrew Leeaf22dd12015-02-25 17:40:11 -0800212 <activity android:name=".RespondViaSmsSettings"
Ihab Awadff7493a2014-06-10 13:47:44 -0700213 android:label="@string/respond_via_sms_setting_title"
Andrew Leefd053f42014-11-12 18:09:58 -0800214 android:configChanges="orientation|screenSize|keyboardHidden"
Santos Cordone6a33f22014-12-02 13:19:00 -0800215 android:theme="@style/Theme.Telecom.DialerSettings"
216 android:process=":ui">
Ihab Awadff7493a2014-06-10 13:47:44 -0700217 <intent-filter>
218 <action android:name="android.intent.action.MAIN" />
Andrew Lee9631da42015-02-18 17:58:58 -0800219 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
220 <category android:name="android.intent.category.DEFAULT" />
Ihab Awadff7493a2014-06-10 13:47:44 -0700221 </intent-filter>
222 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700223
Santos Cordon55344342015-05-04 13:05:30 -0700224 <activity android:name=".settings.EnableAccountPreferenceActivity"
225 android:label="@string/enable_account_preference_title"
226 android:configChanges="orientation|screenSize|keyboardHidden"
227 android:theme="@style/Theme.Telecom.DialerSettings"
228 android:process=":ui">
229 <intent-filter>
230 <action android:name="android.intent.action.MAIN" />
231 <category android:name="android.intent.category.DEFAULT" />
232 </intent-filter>
233 </activity>
234
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800235 <activity android:name=".components.ErrorDialogActivity"
Yorke Leed7255872014-08-25 15:03:51 -0700236 android:configChanges="orientation|screenSize|keyboardHidden"
237 android:excludeFromRecents="true"
238 android:launchMode="singleInstance"
Santos Cordone6a33f22014-12-02 13:19:00 -0800239 android:theme="@style/Theme.Telecomm.Transparent"
240 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700241 </activity>
242
Yorke Leeb5c5d442015-04-27 15:21:53 -0700243 <activity android:name=".components.ChangeDefaultDialerDialog"
244 android:label="@string/change_default_dialer_dialog_title"
245 android:excludeFromRecents="true"
246 android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
247 android:priority="1000"
248 android:process=":ui" >
249 <intent-filter>
250 <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
251 <category android:name="android.intent.category.DEFAULT" />
252 </intent-filter>
253 </activity>
254
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800255 <receiver android:name=".components.PrimaryCallReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800256 android:exported="true"
257 android:permission="android.permission.MODIFY_PHONE_STATE"
258 android:process="system">
Yorke Lee6dc1c752014-09-23 18:50:35 -0700259 </receiver>
260
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800261 <service android:name=".components.BluetoothPhoneService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800262 android:singleUser="true"
263 android:process="system">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700264 <intent-filter>
265 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
266 </intent-filter>
267 </service>
268
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800269 <service android:name=".components.TelecomService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800270 android:singleUser="true"
271 android:process="system">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800272 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700273 <action android:name="android.telecom.ITelecomService" />
Santos Cordonf987d1a2014-12-02 03:37:03 -0800274 </intent-filter>
275 </service>
276
Ben Gilad4937ff92013-12-12 12:05:37 -0800277 </application>
278</manifest>