blob: df519e615b49f1c4d8e2a93b87a2dd2a3c8da899 [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
Nancy Chen41fed9a2015-08-12 12:50:40 -070023 <uses-sdk
24 android:minSdkVersion="23"
25 android:targetSdkVersion="23" />
26
Bryce Lee41045b42015-08-05 13:10:39 -070027
28 <protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION" />
29
Ben Gilad4937ff92013-12-12 12:05:37 -080030 <!-- Prevents the activity manager from delaying any activity-start
31 requests by this package, including requests immediately after
32 the user presses "home". -->
Santos Cordonea5cb932015-05-07 16:28:38 -070033 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
34 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070035 <uses-permission android:name="android.permission.BLUETOOTH" />
36 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Santos Cordonea5cb932015-05-07 16:28:38 -070037 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
38 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070039 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Santos Cordone6a33f22014-12-02 13:19:00 -080040 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070041 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Santos Cordonea5cb932015-05-07 16:28:38 -070042 <uses-permission android:name="android.permission.MANAGE_USERS" />
Evan Charlton198fde82014-04-07 10:53:11 -070043 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Santos Cordonea5cb932015-05-07 16:28:38 -070044 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070045 <uses-permission android:name="android.permission.READ_CALL_LOG" />
46 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070047 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070048 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Tyler Gunnd1607682014-08-15 11:29:12 -070049
Santos Cordon0ceb5a12014-10-23 09:30:19 -070050 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050051 android:name="android.permission.BROADCAST_CALLLOG_INFO"
52 android:label="Broadcast the call type/duration information"
53 android:protectionLevel="signature|system"/>
54
55 <permission
56 android:name="android.permission.PROCESS_CALLLOG_INFO"
57 android:label="Register to handle the broadcasted call type/duration information"
58 android:protectionLevel="signature|system"/>
59
Santos Cordon4c778492015-02-27 15:13:35 -080060 <permission
61 android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
62 android:label="Broadcast phone account registration"
63 android:protectionLevel="signature|system"/>
64
65 <permission
66 android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
67 android:label="Process phone account registration"
68 android:protectionLevel="signature|system"/>
69
Evan Charlton0958f532014-01-10 16:58:02 -080070 <!-- Declare which SDK level this application was built against. This is needed so that IDEs
71 can check for incompatible APIs. -->
72 <uses-sdk android:minSdkVersion="19" />
73
Santos Cordon581ec4a2014-12-15 09:59:26 -080074 <application android:label="@string/telecommAppLabel"
Ben Gilad4937ff92013-12-12 12:05:37 -080075 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070076 android:allowBackup="false"
Santos Cordon581ec4a2014-12-15 09:59:26 -080077 android:supportsRtl="true"
Alex Klyubinebe2fb32015-05-20 11:30:05 -070078 android:process="system"
79 android:usesCleartextTraffic="false">
Santos Cordon10e68322013-12-12 16:06:56 -080080
81 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
82 We have three different intents through which a call can be initiated each with its
83 own behavior.
84 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
85 intent, an app can call any number except emergency numbers.
86 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
87 permission, which is only held by the system dialer and the emergency dialer at the
88 time of this writing. Through this intent, an app can call any number including
89 emergency numbers.
90 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
91 permission. Through this intent, an app can call *only* emergency numbers. -->
92
93 <!-- Activity that starts the outgoing call process by listening to CALL intent which
94 contain contact information in the intent's data. CallActivity handles any data
95 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
96 contacts provider entries. Any data not fitting the schema described is ignored. -->
Ihab Awad78a5e6b2015-02-06 10:13:05 -080097 <activity android:name=".components.UserCallActivity"
Yorke Leed7255872014-08-25 15:03:51 -070098 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -080099 android:permission="android.permission.CALL_PHONE"
Santos Cordone6a33f22014-12-02 13:19:00 -0800100 android:excludeFromRecents="true"
101 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800102 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
103 <intent-filter>
104 <action android:name="android.intent.action.CALL" />
105 <category android:name="android.intent.category.DEFAULT" />
106 <data android:scheme="tel" />
107 </intent-filter>
108 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
109 icon for calls to SIP addresses. -->
110 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
111 <action android:name="android.intent.action.CALL" />
112 <category android:name="android.intent.category.DEFAULT" />
113 <data android:scheme="sip" />
114 </intent-filter>
115 <intent-filter>
116 <action android:name="android.intent.action.CALL" />
117 <category android:name="android.intent.category.DEFAULT" />
118 <data android:scheme="voicemail" />
119 </intent-filter>
120 <!-- Omit default category below so that all Intents sent to this filter must be
121 explicit. -->
122 <intent-filter>
123 <action android:name="android.intent.action.CALL" />
124 <data android:mimeType="vnd.android.cursor.item/phone" />
125 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
126 <data android:mimeType="vnd.android.cursor.item/person" />
127 </intent-filter>
128 </activity>
129
130 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
131 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
132 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
133 processed. High priority of 1000 is used in all intent filters to prevent anything but
134 the system from processing this intent (b/8871505). -->
135 <activity-alias android:name="PrivilegedCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800136 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800137 android:permission="android.permission.CALL_PRIVILEGED"
138 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800139 <intent-filter android:priority="1000">
140 <action android:name="android.intent.action.CALL_PRIVILEGED" />
141 <category android:name="android.intent.category.DEFAULT" />
142 <data android:scheme="tel" />
143 </intent-filter>
144 <intent-filter android:priority="1000"
145 android:icon="@drawable/ic_launcher_sip_call">
146 <action android:name="android.intent.action.CALL_PRIVILEGED" />
147 <category android:name="android.intent.category.DEFAULT" />
148 <data android:scheme="sip" />
149 </intent-filter>
150 <intent-filter android:priority="1000">
151 <action android:name="android.intent.action.CALL_PRIVILEGED" />
152 <category android:name="android.intent.category.DEFAULT" />
153 <data android:scheme="voicemail" />
154 </intent-filter>
155 <intent-filter android:priority="1000">
156 <action android:name="android.intent.action.CALL_PRIVILEGED" />
157 <data android:mimeType="vnd.android.cursor.item/phone" />
158 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
159 <data android:mimeType="vnd.android.cursor.item/person" />
160 </intent-filter>
161 </activity-alias>
162
163 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
164 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
165 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
166 1000 is used in all intent filters to prevent anything but the system from processing
167 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700168 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800169 that scheme be removed from this activity? -->
170 <activity-alias android:name="EmergencyCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800171 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800172 android:permission="android.permission.CALL_PRIVILEGED"
173 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800174 <intent-filter android:priority="1000">
175 <action android:name="android.intent.action.CALL_EMERGENCY" />
176 <category android:name="android.intent.category.DEFAULT" />
177 <data android:scheme="tel" />
178 </intent-filter>
179 <intent-filter android:priority="1000"
180 android:icon="@drawable/ic_launcher_sip_call">
181 <action android:name="android.intent.action.CALL_EMERGENCY" />
182 <category android:name="android.intent.category.DEFAULT" />
183 <data android:scheme="sip" />
184 </intent-filter>
185 <intent-filter android:priority="1000">
186 <action android:name="android.intent.action.CALL_EMERGENCY" />
187 <category android:name="android.intent.category.DEFAULT" />
188 <data android:scheme="voicemail" />
189 </intent-filter>
190 <intent-filter android:priority="1000">
191 <action android:name="android.intent.action.CALL_EMERGENCY" />
192 <data android:mimeType="vnd.android.cursor.item/phone" />
193 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
194 <data android:mimeType="vnd.android.cursor.item/person" />
195 </intent-filter>
196 </activity-alias>
197
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800198 <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
Santos Cordone6a33f22014-12-02 13:19:00 -0800199 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700200 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700201 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700202 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
203 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
204 </intent-filter>
205 </receiver>
206
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800207 <receiver android:name=".components.PhoneAccountBroadcastReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800208 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700209 <intent-filter>
210 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
211 <data android:scheme="package" />
212 </intent-filter>
213 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700214
Andrew Leeaf22dd12015-02-25 17:40:11 -0800215 <activity android:name=".RespondViaSmsSettings"
Ihab Awadff7493a2014-06-10 13:47:44 -0700216 android:label="@string/respond_via_sms_setting_title"
Andrew Leefd053f42014-11-12 18:09:58 -0800217 android:configChanges="orientation|screenSize|keyboardHidden"
Santos Cordone6a33f22014-12-02 13:19:00 -0800218 android:theme="@style/Theme.Telecom.DialerSettings"
219 android:process=":ui">
Ihab Awadff7493a2014-06-10 13:47:44 -0700220 <intent-filter>
221 <action android:name="android.intent.action.MAIN" />
Andrew Lee9631da42015-02-18 17:58:58 -0800222 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
223 <category android:name="android.intent.category.DEFAULT" />
Ihab Awadff7493a2014-06-10 13:47:44 -0700224 </intent-filter>
225 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700226
Santos Cordon55344342015-05-04 13:05:30 -0700227 <activity android:name=".settings.EnableAccountPreferenceActivity"
228 android:label="@string/enable_account_preference_title"
229 android:configChanges="orientation|screenSize|keyboardHidden"
230 android:theme="@style/Theme.Telecom.DialerSettings"
231 android:process=":ui">
232 <intent-filter>
233 <action android:name="android.intent.action.MAIN" />
234 <category android:name="android.intent.category.DEFAULT" />
235 </intent-filter>
236 </activity>
237
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800238 <activity android:name=".components.ErrorDialogActivity"
Yorke Leed7255872014-08-25 15:03:51 -0700239 android:configChanges="orientation|screenSize|keyboardHidden"
240 android:excludeFromRecents="true"
241 android:launchMode="singleInstance"
Santos Cordone6a33f22014-12-02 13:19:00 -0800242 android:theme="@style/Theme.Telecomm.Transparent"
243 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700244 </activity>
245
Yorke Leeb5c5d442015-04-27 15:21:53 -0700246 <activity android:name=".components.ChangeDefaultDialerDialog"
247 android:label="@string/change_default_dialer_dialog_title"
248 android:excludeFromRecents="true"
249 android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
250 android:priority="1000"
251 android:process=":ui" >
252 <intent-filter>
253 <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
254 <category android:name="android.intent.category.DEFAULT" />
255 </intent-filter>
256 </activity>
257
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800258 <receiver android:name=".components.PrimaryCallReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800259 android:exported="true"
260 android:permission="android.permission.MODIFY_PHONE_STATE"
261 android:process="system">
Yorke Lee6dc1c752014-09-23 18:50:35 -0700262 </receiver>
263
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800264 <service android:name=".components.BluetoothPhoneService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800265 android:singleUser="true"
266 android:process="system">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700267 <intent-filter>
268 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
269 </intent-filter>
270 </service>
271
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800272 <service android:name=".components.TelecomService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800273 android:singleUser="true"
274 android:process="system">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800275 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700276 <action android:name="android.telecom.ITelecomService" />
Santos Cordonf987d1a2014-12-02 03:37:03 -0800277 </intent-filter>
278 </service>
279
Ben Gilad4937ff92013-12-12 12:05:37 -0800280 </application>
281</manifest>