blob: 427b24836f7010bff953ca57a627a8e8a26993cb [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"
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" />
Tyler Gunn61b92102014-08-19 07:42:20 -070037 <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
Jean-Michel Trivi5fcbe912014-09-04 17:53:25 -070038 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
Yong Jiang271b9ae2014-10-09 12:08:54 -050039 <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
Tyler Gunnd1607682014-08-15 11:29:12 -070040
Ihab Awadc17294c2014-08-04 19:23:37 -070041 <!-- Protects the ability to register any PhoneAccount with a capability flags of either
42 PhoneAccount#CAPABILITY_CALL_PROVIDER or PhoneAccount#CAPABILITY_SIM_SUBSCRIPTION. -->
43 <permission
Tyler Gunn7cc70b42014-09-12 22:17:27 -070044 android:name="com.android.server.telecom.permission.REGISTER_PROVIDER_OR_SUBSCRIPTION"
Ihab Awadc17294c2014-08-04 19:23:37 -070045 android:label="Register CALL_PROVIDER or SIM_SUBSCRIPTION PhoneAccount"
46 android:protectionLevel="signature"/>
Sailesh Nepal1cecc7c2014-03-10 17:03:08 -070047
Yong Jiang271b9ae2014-10-09 12:08:54 -050048 <permission
Santos Cordon0ceb5a12014-10-23 09:30:19 -070049 android:name="com.android.server.telecom.permission.REGISTER_CONNECTION_MANAGER"
50 android:label="Register CONNECTION_MANAGER PhoneAccount"
51 android:protectionLevel="signature"/>
52
53 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050054 android:name="android.permission.BROADCAST_CALLLOG_INFO"
55 android:label="Broadcast the call type/duration information"
56 android:protectionLevel="signature|system"/>
57
58 <permission
59 android:name="android.permission.PROCESS_CALLLOG_INFO"
60 android:label="Register to handle the broadcasted call type/duration information"
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
Tyler Gunn7cc70b42014-09-12 22:17:27 -070067 <application android:name="TelecomApp"
Evan Charlton5c670a92014-03-06 14:58:20 -080068 android:persistent="true"
Ben Gilad4937ff92013-12-12 12:05:37 -080069 android:label="@string/telecommAppLabel"
70 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070071 android:allowBackup="false"
Ben Gilad4937ff92013-12-12 12:05:37 -080072 android:supportsRtl="true">
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. -->
90 <activity android:name="CallActivity"
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"
93 android:excludeFromRecents="true">
94 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
95 <intent-filter>
96 <action android:name="android.intent.action.CALL" />
97 <category android:name="android.intent.category.DEFAULT" />
98 <data android:scheme="tel" />
99 </intent-filter>
100 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
101 icon for calls to SIP addresses. -->
102 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
103 <action android:name="android.intent.action.CALL" />
104 <category android:name="android.intent.category.DEFAULT" />
105 <data android:scheme="sip" />
106 </intent-filter>
107 <intent-filter>
108 <action android:name="android.intent.action.CALL" />
109 <category android:name="android.intent.category.DEFAULT" />
110 <data android:scheme="voicemail" />
111 </intent-filter>
112 <!-- Omit default category below so that all Intents sent to this filter must be
113 explicit. -->
114 <intent-filter>
115 <action android:name="android.intent.action.CALL" />
116 <data android:mimeType="vnd.android.cursor.item/phone" />
117 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
118 <data android:mimeType="vnd.android.cursor.item/person" />
119 </intent-filter>
120 </activity>
121
122 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
123 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
124 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
125 processed. High priority of 1000 is used in all intent filters to prevent anything but
126 the system from processing this intent (b/8871505). -->
127 <activity-alias android:name="PrivilegedCallActivity"
128 android:targetActivity="CallActivity"
129 android:permission="android.permission.CALL_PRIVILEGED">
130 <intent-filter android:priority="1000">
131 <action android:name="android.intent.action.CALL_PRIVILEGED" />
132 <category android:name="android.intent.category.DEFAULT" />
133 <data android:scheme="tel" />
134 </intent-filter>
135 <intent-filter android:priority="1000"
136 android:icon="@drawable/ic_launcher_sip_call">
137 <action android:name="android.intent.action.CALL_PRIVILEGED" />
138 <category android:name="android.intent.category.DEFAULT" />
139 <data android:scheme="sip" />
140 </intent-filter>
141 <intent-filter android:priority="1000">
142 <action android:name="android.intent.action.CALL_PRIVILEGED" />
143 <category android:name="android.intent.category.DEFAULT" />
144 <data android:scheme="voicemail" />
145 </intent-filter>
146 <intent-filter android:priority="1000">
147 <action android:name="android.intent.action.CALL_PRIVILEGED" />
148 <data android:mimeType="vnd.android.cursor.item/phone" />
149 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
150 <data android:mimeType="vnd.android.cursor.item/person" />
151 </intent-filter>
152 </activity-alias>
153
154 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
155 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
156 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
157 1000 is used in all intent filters to prevent anything but the system from processing
158 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700159 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800160 that scheme be removed from this activity? -->
161 <activity-alias android:name="EmergencyCallActivity"
162 android:targetActivity="CallActivity"
163 android:permission="android.permission.CALL_PRIVILEGED">
164 <intent-filter android:priority="1000">
165 <action android:name="android.intent.action.CALL_EMERGENCY" />
166 <category android:name="android.intent.category.DEFAULT" />
167 <data android:scheme="tel" />
168 </intent-filter>
169 <intent-filter android:priority="1000"
170 android:icon="@drawable/ic_launcher_sip_call">
171 <action android:name="android.intent.action.CALL_EMERGENCY" />
172 <category android:name="android.intent.category.DEFAULT" />
173 <data android:scheme="sip" />
174 </intent-filter>
175 <intent-filter android:priority="1000">
176 <action android:name="android.intent.action.CALL_EMERGENCY" />
177 <category android:name="android.intent.category.DEFAULT" />
178 <data android:scheme="voicemail" />
179 </intent-filter>
180 <intent-filter android:priority="1000">
181 <action android:name="android.intent.action.CALL_EMERGENCY" />
182 <data android:mimeType="vnd.android.cursor.item/phone" />
183 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
184 <data android:mimeType="vnd.android.cursor.item/person" />
185 </intent-filter>
186 </activity-alias>
187
Santos Cordon523f6052014-02-20 16:39:34 -0800188 <activity-alias android:name="IncomingCallActivity"
189 android:targetActivity="CallActivity"
190 android:exported="true">
Santos Cordon3e3b5412013-12-16 17:33:45 -0800191 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700192 <action android:name="android.telecom.action.INCOMING_CALL" />
Santos Cordon493e8f22014-02-19 03:15:12 -0800193 <category android:name="android.intent.category.DEFAULT" />
Santos Cordon3e3b5412013-12-16 17:33:45 -0800194 </intent-filter>
Santos Cordon523f6052014-02-20 16:39:34 -0800195 </activity-alias>
196
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700197 <receiver android:name="TelecomBroadcastReceiver" android:exported="false">
198 <intent-filter>
199 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
200 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
201 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
202 </intent-filter>
203 </receiver>
204
205 <receiver android:name="PhoneAccountBroadcastReceiver">
206 <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
Ihab Awadff7493a2014-06-10 13:47:44 -0700212 <activity android:name=".RespondViaSmsSettings$Settings"
213 android:label="@string/respond_via_sms_setting_title"
214 android:configChanges="orientation|screenSize|keyboardHidden">
215 <intent-filter>
216 <action android:name="android.intent.action.MAIN" />
217 </intent-filter>
218 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700219
Yorke Leed7255872014-08-25 15:03:51 -0700220 <activity android:name=".ErrorDialogActivity"
221 android:configChanges="orientation|screenSize|keyboardHidden"
222 android:excludeFromRecents="true"
223 android:launchMode="singleInstance"
224 android:theme="@style/Theme.Telecomm.Transparent">
225 </activity>
226
Yorke Lee6dc1c752014-09-23 18:50:35 -0700227 <receiver android:name=".CallReceiver"
228 android:exported="false">
229 </receiver>
230
Santos Cordonfddf12e2014-09-25 15:08:57 -0700231 <service android:name="BluetoothPhoneService"
232 android:singleUser="true">
233 <intent-filter>
234 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
235 </intent-filter>
236 </service>
237
Ben Gilad4937ff92013-12-12 12:05:37 -0800238 </application>
239</manifest>