blob: ac3799ff79caf7e29da9b9ee96a137b2dbdc966c [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
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 Cordonea5cb932015-05-07 16:28:38 -070026 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
27 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070028 <uses-permission android:name="android.permission.BLUETOOTH" />
29 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Santos Cordonea5cb932015-05-07 16:28:38 -070030 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
31 <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070032 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Santos Cordone6a33f22014-12-02 13:19:00 -080033 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070034 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Santos Cordonea5cb932015-05-07 16:28:38 -070035 <uses-permission android:name="android.permission.MANAGE_USERS" />
Evan Charlton198fde82014-04-07 10:53:11 -070036 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Santos Cordonea5cb932015-05-07 16:28:38 -070037 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070038 <uses-permission android:name="android.permission.READ_CALL_LOG" />
39 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070040 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070041 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Tyler Gunnd1607682014-08-15 11:29:12 -070042
Santos Cordon0ceb5a12014-10-23 09:30:19 -070043 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050044 android:name="android.permission.BROADCAST_CALLLOG_INFO"
45 android:label="Broadcast the call type/duration information"
46 android:protectionLevel="signature|system"/>
47
48 <permission
49 android:name="android.permission.PROCESS_CALLLOG_INFO"
50 android:label="Register to handle the broadcasted call type/duration information"
51 android:protectionLevel="signature|system"/>
52
Santos Cordon4c778492015-02-27 15:13:35 -080053 <permission
54 android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
55 android:label="Broadcast phone account registration"
56 android:protectionLevel="signature|system"/>
57
58 <permission
59 android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
60 android:label="Process phone account registration"
61 android:protectionLevel="signature|system"/>
62
Evan Charlton0958f532014-01-10 16:58:02 -080063 <!-- Declare which SDK level this application was built against. This is needed so that IDEs
64 can check for incompatible APIs. -->
65 <uses-sdk android:minSdkVersion="19" />
66
Santos Cordon581ec4a2014-12-15 09:59:26 -080067 <application android:label="@string/telecommAppLabel"
Ben Gilad4937ff92013-12-12 12:05:37 -080068 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070069 android:allowBackup="false"
Santos Cordon581ec4a2014-12-15 09:59:26 -080070 android:supportsRtl="true"
Alex Klyubinebe2fb32015-05-20 11:30:05 -070071 android:process="system"
72 android:usesCleartextTraffic="false">
Santos Cordon10e68322013-12-12 16:06:56 -080073
74 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
75 We have three different intents through which a call can be initiated each with its
76 own behavior.
77 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
78 intent, an app can call any number except emergency numbers.
79 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
80 permission, which is only held by the system dialer and the emergency dialer at the
81 time of this writing. Through this intent, an app can call any number including
82 emergency numbers.
83 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
84 permission. Through this intent, an app can call *only* emergency numbers. -->
85
86 <!-- Activity that starts the outgoing call process by listening to CALL intent which
87 contain contact information in the intent's data. CallActivity handles any data
88 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
89 contacts provider entries. Any data not fitting the schema described is ignored. -->
Ihab Awad78a5e6b2015-02-06 10:13:05 -080090 <activity android:name=".components.UserCallActivity"
Yorke Leed7255872014-08-25 15:03:51 -070091 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -080092 android:permission="android.permission.CALL_PHONE"
Santos Cordone6a33f22014-12-02 13:19:00 -080093 android:excludeFromRecents="true"
94 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -080095 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
96 <intent-filter>
97 <action android:name="android.intent.action.CALL" />
98 <category android:name="android.intent.category.DEFAULT" />
99 <data android:scheme="tel" />
100 </intent-filter>
101 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
102 icon for calls to SIP addresses. -->
103 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
104 <action android:name="android.intent.action.CALL" />
105 <category android:name="android.intent.category.DEFAULT" />
106 <data android:scheme="sip" />
107 </intent-filter>
108 <intent-filter>
109 <action android:name="android.intent.action.CALL" />
110 <category android:name="android.intent.category.DEFAULT" />
111 <data android:scheme="voicemail" />
112 </intent-filter>
113 <!-- Omit default category below so that all Intents sent to this filter must be
114 explicit. -->
115 <intent-filter>
116 <action android:name="android.intent.action.CALL" />
117 <data android:mimeType="vnd.android.cursor.item/phone" />
118 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
119 <data android:mimeType="vnd.android.cursor.item/person" />
120 </intent-filter>
121 </activity>
122
123 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
124 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
125 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
126 processed. High priority of 1000 is used in all intent filters to prevent anything but
127 the system from processing this intent (b/8871505). -->
128 <activity-alias android:name="PrivilegedCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800129 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800130 android:permission="android.permission.CALL_PRIVILEGED"
131 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800132 <intent-filter android:priority="1000">
133 <action android:name="android.intent.action.CALL_PRIVILEGED" />
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_PRIVILEGED" />
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_PRIVILEGED" />
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_PRIVILEGED" />
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
156 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
157 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
158 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
159 1000 is used in all intent filters to prevent anything but the system from processing
160 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700161 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800162 that scheme be removed from this activity? -->
163 <activity-alias android:name="EmergencyCallActivity"
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800164 android:targetActivity=".components.UserCallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800165 android:permission="android.permission.CALL_PRIVILEGED"
166 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800167 <intent-filter android:priority="1000">
168 <action android:name="android.intent.action.CALL_EMERGENCY" />
169 <category android:name="android.intent.category.DEFAULT" />
170 <data android:scheme="tel" />
171 </intent-filter>
172 <intent-filter android:priority="1000"
173 android:icon="@drawable/ic_launcher_sip_call">
174 <action android:name="android.intent.action.CALL_EMERGENCY" />
175 <category android:name="android.intent.category.DEFAULT" />
176 <data android:scheme="sip" />
177 </intent-filter>
178 <intent-filter android:priority="1000">
179 <action android:name="android.intent.action.CALL_EMERGENCY" />
180 <category android:name="android.intent.category.DEFAULT" />
181 <data android:scheme="voicemail" />
182 </intent-filter>
183 <intent-filter android:priority="1000">
184 <action android:name="android.intent.action.CALL_EMERGENCY" />
185 <data android:mimeType="vnd.android.cursor.item/phone" />
186 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
187 <data android:mimeType="vnd.android.cursor.item/person" />
188 </intent-filter>
189 </activity-alias>
190
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800191 <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
Santos Cordone6a33f22014-12-02 13:19:00 -0800192 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700193 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700194 <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700195 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
196 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
197 </intent-filter>
198 </receiver>
199
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800200 <receiver android:name=".components.PhoneAccountBroadcastReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800201 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700202 <intent-filter>
203 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
204 <data android:scheme="package" />
205 </intent-filter>
206 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700207
Andrew Leeaf22dd12015-02-25 17:40:11 -0800208 <activity android:name=".RespondViaSmsSettings"
Ihab Awadff7493a2014-06-10 13:47:44 -0700209 android:label="@string/respond_via_sms_setting_title"
Andrew Leefd053f42014-11-12 18:09:58 -0800210 android:configChanges="orientation|screenSize|keyboardHidden"
Santos Cordone6a33f22014-12-02 13:19:00 -0800211 android:theme="@style/Theme.Telecom.DialerSettings"
212 android:process=":ui">
Ihab Awadff7493a2014-06-10 13:47:44 -0700213 <intent-filter>
214 <action android:name="android.intent.action.MAIN" />
Andrew Lee9631da42015-02-18 17:58:58 -0800215 <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
216 <category android:name="android.intent.category.DEFAULT" />
Ihab Awadff7493a2014-06-10 13:47:44 -0700217 </intent-filter>
218 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700219
Santos Cordon55344342015-05-04 13:05:30 -0700220 <activity android:name=".settings.EnableAccountPreferenceActivity"
221 android:label="@string/enable_account_preference_title"
222 android:configChanges="orientation|screenSize|keyboardHidden"
223 android:theme="@style/Theme.Telecom.DialerSettings"
224 android:process=":ui">
225 <intent-filter>
226 <action android:name="android.intent.action.MAIN" />
227 <category android:name="android.intent.category.DEFAULT" />
228 </intent-filter>
229 </activity>
230
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800231 <activity android:name=".components.ErrorDialogActivity"
Yorke Leed7255872014-08-25 15:03:51 -0700232 android:configChanges="orientation|screenSize|keyboardHidden"
233 android:excludeFromRecents="true"
234 android:launchMode="singleInstance"
Santos Cordone6a33f22014-12-02 13:19:00 -0800235 android:theme="@style/Theme.Telecomm.Transparent"
236 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700237 </activity>
238
Yorke Leeb5c5d442015-04-27 15:21:53 -0700239 <activity android:name=".components.ChangeDefaultDialerDialog"
240 android:label="@string/change_default_dialer_dialog_title"
241 android:excludeFromRecents="true"
242 android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
243 android:priority="1000"
244 android:process=":ui" >
245 <intent-filter>
246 <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
247 <category android:name="android.intent.category.DEFAULT" />
248 </intent-filter>
249 </activity>
250
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800251 <receiver android:name=".components.PrimaryCallReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800252 android:exported="true"
253 android:permission="android.permission.MODIFY_PHONE_STATE"
254 android:process="system">
Yorke Lee6dc1c752014-09-23 18:50:35 -0700255 </receiver>
256
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800257 <service android:name=".components.BluetoothPhoneService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800258 android:singleUser="true"
259 android:process="system">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700260 <intent-filter>
261 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
262 </intent-filter>
263 </service>
264
Ihab Awad78a5e6b2015-02-06 10:13:05 -0800265 <service android:name=".components.TelecomService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800266 android:singleUser="true"
267 android:process="system">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800268 <intent-filter>
Yorke Lee57f61492015-03-27 14:00:13 -0700269 <action android:name="android.telecom.ITelecomService" />
Santos Cordonf987d1a2014-12-02 03:37:03 -0800270 </intent-filter>
271 </service>
272
Ben Gilad4937ff92013-12-12 12:05:37 -0800273 </application>
274</manifest>