blob: 970b35b25a4bd2329283e12b7976869af0fef6f5 [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"
Ihab Awad7e2c7f32014-11-03 09:49:45 -080020 android:debuggable="true"
Santos Cordonb64c1502014-05-21 21:21:49 -070021 coreApp="true"
Santos Cordone6a33f22014-12-02 13:19:00 -080022 android:sharedUserId="android.uid.system">
Santos Cordon3e3b5412013-12-16 17:33:45 -080023
Ben Gilad4937ff92013-12-12 12:05:37 -080024 <!-- Prevents the activity manager from delaying any activity-start
25 requests by this package, including requests immediately after
26 the user presses "home". -->
Santos Cordonc7e85d42014-05-22 02:51:48 -070027 <uses-permission android:name="android.permission.BLUETOOTH" />
28 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Evan Charlton51bd35b2014-04-07 17:58:14 -070029 <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
Yorke Leea38f3292014-07-16 17:31:02 -070030 <uses-permission android:name="android.permission.MANAGE_USERS" />
Santos Cordone6a33f22014-12-02 13:19:00 -080031 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070032 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Evan Charlton198fde82014-04-07 10:53:11 -070033 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070034 <uses-permission android:name="android.permission.READ_CALL_LOG" />
35 <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
Evan Charlton198fde82014-04-07 10:53:11 -070036 <uses-permission android:name="android.permission.VIBRATE" />
Santos Cordonc7e85d42014-05-22 02:51:48 -070037 <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
Tyler Gunnd1607682014-08-15 11:29:12 -070038 <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
Tyler Gunn61b92102014-08-19 07:42:20 -070039 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Jean-Michel Trivi5fcbe912014-09-04 17:53:25 -070040 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Yong Jiang271b9ae2014-10-09 12:08:54 -050041 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
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
Evan Charlton0958f532014-01-10 16:58:02 -080053 <!-- Declare which SDK level this application was built against. This is needed so that IDEs
54 can check for incompatible APIs. -->
55 <uses-sdk android:minSdkVersion="19" />
56
Santos Cordone6a33f22014-12-02 13:19:00 -080057 <application android:persistent="true"
Ben Gilad4937ff92013-12-12 12:05:37 -080058 android:label="@string/telecommAppLabel"
59 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070060 android:allowBackup="false"
Santos Cordon52da7032014-11-08 08:22:50 +000061 android:supportsRtl="true">
Santos Cordon10e68322013-12-12 16:06:56 -080062
63 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
64 We have three different intents through which a call can be initiated each with its
65 own behavior.
66 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
67 intent, an app can call any number except emergency numbers.
68 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
69 permission, which is only held by the system dialer and the emergency dialer at the
70 time of this writing. Through this intent, an app can call any number including
71 emergency numbers.
72 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
73 permission. Through this intent, an app can call *only* emergency numbers. -->
74
75 <!-- Activity that starts the outgoing call process by listening to CALL intent which
76 contain contact information in the intent's data. CallActivity handles any data
77 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
78 contacts provider entries. Any data not fitting the schema described is ignored. -->
79 <activity android:name="CallActivity"
Yorke Leed7255872014-08-25 15:03:51 -070080 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -080081 android:permission="android.permission.CALL_PHONE"
Santos Cordone6a33f22014-12-02 13:19:00 -080082 android:excludeFromRecents="true"
83 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -080084 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
85 <intent-filter>
86 <action android:name="android.intent.action.CALL" />
87 <category android:name="android.intent.category.DEFAULT" />
88 <data android:scheme="tel" />
89 </intent-filter>
90 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
91 icon for calls to SIP addresses. -->
92 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
93 <action android:name="android.intent.action.CALL" />
94 <category android:name="android.intent.category.DEFAULT" />
95 <data android:scheme="sip" />
96 </intent-filter>
97 <intent-filter>
98 <action android:name="android.intent.action.CALL" />
99 <category android:name="android.intent.category.DEFAULT" />
100 <data android:scheme="voicemail" />
101 </intent-filter>
102 <!-- Omit default category below so that all Intents sent to this filter must be
103 explicit. -->
104 <intent-filter>
105 <action android:name="android.intent.action.CALL" />
106 <data android:mimeType="vnd.android.cursor.item/phone" />
107 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
108 <data android:mimeType="vnd.android.cursor.item/person" />
109 </intent-filter>
110 </activity>
111
112 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
113 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
114 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
115 processed. High priority of 1000 is used in all intent filters to prevent anything but
116 the system from processing this intent (b/8871505). -->
117 <activity-alias android:name="PrivilegedCallActivity"
118 android:targetActivity="CallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800119 android:permission="android.permission.CALL_PRIVILEGED"
120 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800121 <intent-filter android:priority="1000">
122 <action android:name="android.intent.action.CALL_PRIVILEGED" />
123 <category android:name="android.intent.category.DEFAULT" />
124 <data android:scheme="tel" />
125 </intent-filter>
126 <intent-filter android:priority="1000"
127 android:icon="@drawable/ic_launcher_sip_call">
128 <action android:name="android.intent.action.CALL_PRIVILEGED" />
129 <category android:name="android.intent.category.DEFAULT" />
130 <data android:scheme="sip" />
131 </intent-filter>
132 <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="voicemail" />
136 </intent-filter>
137 <intent-filter android:priority="1000">
138 <action android:name="android.intent.action.CALL_PRIVILEGED" />
139 <data android:mimeType="vnd.android.cursor.item/phone" />
140 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
141 <data android:mimeType="vnd.android.cursor.item/person" />
142 </intent-filter>
143 </activity-alias>
144
145 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
146 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
147 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
148 1000 is used in all intent filters to prevent anything but the system from processing
149 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700150 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800151 that scheme be removed from this activity? -->
152 <activity-alias android:name="EmergencyCallActivity"
153 android:targetActivity="CallActivity"
Santos Cordone6a33f22014-12-02 13:19:00 -0800154 android:permission="android.permission.CALL_PRIVILEGED"
155 android:process=":ui">
Santos Cordon10e68322013-12-12 16:06:56 -0800156 <intent-filter android:priority="1000">
157 <action android:name="android.intent.action.CALL_EMERGENCY" />
158 <category android:name="android.intent.category.DEFAULT" />
159 <data android:scheme="tel" />
160 </intent-filter>
161 <intent-filter android:priority="1000"
162 android:icon="@drawable/ic_launcher_sip_call">
163 <action android:name="android.intent.action.CALL_EMERGENCY" />
164 <category android:name="android.intent.category.DEFAULT" />
165 <data android:scheme="sip" />
166 </intent-filter>
167 <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="voicemail" />
171 </intent-filter>
172 <intent-filter android:priority="1000">
173 <action android:name="android.intent.action.CALL_EMERGENCY" />
174 <data android:mimeType="vnd.android.cursor.item/phone" />
175 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
176 <data android:mimeType="vnd.android.cursor.item/person" />
177 </intent-filter>
178 </activity-alias>
179
Santos Cordone6a33f22014-12-02 13:19:00 -0800180 <receiver android:name="TelecomBroadcastReceiver" android:exported="false"
181 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700182 <intent-filter>
183 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
184 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
185 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
186 </intent-filter>
187 </receiver>
188
Santos Cordone6a33f22014-12-02 13:19:00 -0800189 <receiver android:name="PhoneAccountBroadcastReceiver"
190 android:process="system">
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700191 <intent-filter>
192 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
193 <data android:scheme="package" />
194 </intent-filter>
195 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700196
Ihab Awadff7493a2014-06-10 13:47:44 -0700197 <activity android:name=".RespondViaSmsSettings$Settings"
198 android:label="@string/respond_via_sms_setting_title"
Andrew Leefd053f42014-11-12 18:09:58 -0800199 android:configChanges="orientation|screenSize|keyboardHidden"
Santos Cordone6a33f22014-12-02 13:19:00 -0800200 android:theme="@style/Theme.Telecom.DialerSettings"
201 android:process=":ui">
Ihab Awadff7493a2014-06-10 13:47:44 -0700202 <intent-filter>
203 <action android:name="android.intent.action.MAIN" />
204 </intent-filter>
205 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700206
Yorke Leed7255872014-08-25 15:03:51 -0700207 <activity android:name=".ErrorDialogActivity"
208 android:configChanges="orientation|screenSize|keyboardHidden"
209 android:excludeFromRecents="true"
210 android:launchMode="singleInstance"
Santos Cordone6a33f22014-12-02 13:19:00 -0800211 android:theme="@style/Theme.Telecomm.Transparent"
212 android:process=":ui">
Yorke Leed7255872014-08-25 15:03:51 -0700213 </activity>
214
Yorke Lee6dc1c752014-09-23 18:50:35 -0700215 <receiver android:name=".CallReceiver"
Santos Cordone6a33f22014-12-02 13:19:00 -0800216 android:exported="true"
217 android:permission="android.permission.MODIFY_PHONE_STATE"
218 android:process="system">
Yorke Lee6dc1c752014-09-23 18:50:35 -0700219 </receiver>
220
Santos Cordonfddf12e2014-09-25 15:08:57 -0700221 <service android:name="BluetoothPhoneService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800222 android:singleUser="true"
223 android:process="system">
Santos Cordonfddf12e2014-09-25 15:08:57 -0700224 <intent-filter>
225 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
226 </intent-filter>
227 </service>
228
Santos Cordonf987d1a2014-12-02 03:37:03 -0800229 <service android:name=".TelecomService"
Santos Cordone6a33f22014-12-02 13:19:00 -0800230 android:singleUser="true"
231 android:process="system">
Santos Cordonf987d1a2014-12-02 03:37:03 -0800232 <intent-filter>
233 <android android:name="android.telecom.ITelecomService" />
234 </intent-filter>
235 </service>
236
Ben Gilad4937ff92013-12-12 12:05:37 -0800237 </application>
238</manifest>