blob: 88e90aed39dd07ed63f5be507d832a14ffe36237 [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
Santos Cordon0ceb5a12014-10-23 09:30:19 -070041 <permission
Yong Jiang271b9ae2014-10-09 12:08:54 -050042 android:name="android.permission.BROADCAST_CALLLOG_INFO"
43 android:label="Broadcast the call type/duration information"
44 android:protectionLevel="signature|system"/>
45
46 <permission
47 android:name="android.permission.PROCESS_CALLLOG_INFO"
48 android:label="Register to handle the broadcasted call type/duration information"
49 android:protectionLevel="signature|system"/>
50
Evan Charlton0958f532014-01-10 16:58:02 -080051 <!-- Declare which SDK level this application was built against. This is needed so that IDEs
52 can check for incompatible APIs. -->
53 <uses-sdk android:minSdkVersion="19" />
54
Tyler Gunn7cc70b42014-09-12 22:17:27 -070055 <application android:name="TelecomApp"
Evan Charlton5c670a92014-03-06 14:58:20 -080056 android:persistent="true"
Ben Gilad4937ff92013-12-12 12:05:37 -080057 android:label="@string/telecommAppLabel"
58 android:icon="@mipmap/ic_launcher_phone"
Jay Shraunerd5a71da2014-07-30 09:33:59 -070059 android:allowBackup="false"
Ben Gilad4937ff92013-12-12 12:05:37 -080060 android:supportsRtl="true">
Santos Cordon10e68322013-12-12 16:06:56 -080061
62 <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
63 We have three different intents through which a call can be initiated each with its
64 own behavior.
65 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
66 intent, an app can call any number except emergency numbers.
67 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
68 permission, which is only held by the system dialer and the emergency dialer at the
69 time of this writing. Through this intent, an app can call any number including
70 emergency numbers.
71 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
72 permission. Through this intent, an app can call *only* emergency numbers. -->
73
74 <!-- Activity that starts the outgoing call process by listening to CALL intent which
75 contain contact information in the intent's data. CallActivity handles any data
76 URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
77 contacts provider entries. Any data not fitting the schema described is ignored. -->
78 <activity android:name="CallActivity"
Yorke Leed7255872014-08-25 15:03:51 -070079 android:theme="@style/Theme.Telecomm.Transparent"
Santos Cordon10e68322013-12-12 16:06:56 -080080 android:permission="android.permission.CALL_PHONE"
81 android:excludeFromRecents="true">
82 <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
83 <intent-filter>
84 <action android:name="android.intent.action.CALL" />
85 <category android:name="android.intent.category.DEFAULT" />
86 <data android:scheme="tel" />
87 </intent-filter>
88 <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
89 icon for calls to SIP addresses. -->
90 <intent-filter android:icon="@drawable/ic_launcher_sip_call">
91 <action android:name="android.intent.action.CALL" />
92 <category android:name="android.intent.category.DEFAULT" />
93 <data android:scheme="sip" />
94 </intent-filter>
95 <intent-filter>
96 <action android:name="android.intent.action.CALL" />
97 <category android:name="android.intent.category.DEFAULT" />
98 <data android:scheme="voicemail" />
99 </intent-filter>
100 <!-- Omit default category below so that all Intents sent to this filter must be
101 explicit. -->
102 <intent-filter>
103 <action android:name="android.intent.action.CALL" />
104 <data android:mimeType="vnd.android.cursor.item/phone" />
105 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
106 <data android:mimeType="vnd.android.cursor.item/person" />
107 </intent-filter>
108 </activity>
109
110 <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
111 CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
112 Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
113 processed. High priority of 1000 is used in all intent filters to prevent anything but
114 the system from processing this intent (b/8871505). -->
115 <activity-alias android:name="PrivilegedCallActivity"
116 android:targetActivity="CallActivity"
117 android:permission="android.permission.CALL_PRIVILEGED">
118 <intent-filter android:priority="1000">
119 <action android:name="android.intent.action.CALL_PRIVILEGED" />
120 <category android:name="android.intent.category.DEFAULT" />
121 <data android:scheme="tel" />
122 </intent-filter>
123 <intent-filter android:priority="1000"
124 android:icon="@drawable/ic_launcher_sip_call">
125 <action android:name="android.intent.action.CALL_PRIVILEGED" />
126 <category android:name="android.intent.category.DEFAULT" />
127 <data android:scheme="sip" />
128 </intent-filter>
129 <intent-filter android:priority="1000">
130 <action android:name="android.intent.action.CALL_PRIVILEGED" />
131 <category android:name="android.intent.category.DEFAULT" />
132 <data android:scheme="voicemail" />
133 </intent-filter>
134 <intent-filter android:priority="1000">
135 <action android:name="android.intent.action.CALL_PRIVILEGED" />
136 <data android:mimeType="vnd.android.cursor.item/phone" />
137 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
138 <data android:mimeType="vnd.android.cursor.item/person" />
139 </intent-filter>
140 </activity-alias>
141
142 <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
143 CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
144 CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
145 1000 is used in all intent filters to prevent anything but the system from processing
146 this intent (b/8871505). -->
Santos Cordondf399862014-08-06 04:39:15 -0700147 <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
Santos Cordon10e68322013-12-12 16:06:56 -0800148 that scheme be removed from this activity? -->
149 <activity-alias android:name="EmergencyCallActivity"
150 android:targetActivity="CallActivity"
151 android:permission="android.permission.CALL_PRIVILEGED">
152 <intent-filter android:priority="1000">
153 <action android:name="android.intent.action.CALL_EMERGENCY" />
154 <category android:name="android.intent.category.DEFAULT" />
155 <data android:scheme="tel" />
156 </intent-filter>
157 <intent-filter android:priority="1000"
158 android:icon="@drawable/ic_launcher_sip_call">
159 <action android:name="android.intent.action.CALL_EMERGENCY" />
160 <category android:name="android.intent.category.DEFAULT" />
161 <data android:scheme="sip" />
162 </intent-filter>
163 <intent-filter android:priority="1000">
164 <action android:name="android.intent.action.CALL_EMERGENCY" />
165 <category android:name="android.intent.category.DEFAULT" />
166 <data android:scheme="voicemail" />
167 </intent-filter>
168 <intent-filter android:priority="1000">
169 <action android:name="android.intent.action.CALL_EMERGENCY" />
170 <data android:mimeType="vnd.android.cursor.item/phone" />
171 <data android:mimeType="vnd.android.cursor.item/phone_v2" />
172 <data android:mimeType="vnd.android.cursor.item/person" />
173 </intent-filter>
174 </activity-alias>
175
Nancy Chen6f5c08d2014-09-23 16:54:05 -0700176 <receiver android:name="TelecomBroadcastReceiver" android:exported="false">
177 <intent-filter>
178 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
179 <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
180 <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
181 </intent-filter>
182 </receiver>
183
184 <receiver android:name="PhoneAccountBroadcastReceiver">
185 <intent-filter>
186 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
187 <data android:scheme="package" />
188 </intent-filter>
189 </receiver>
Tyler Gunnd900ce62014-08-13 11:40:59 -0700190
Ihab Awadff7493a2014-06-10 13:47:44 -0700191 <activity android:name=".RespondViaSmsSettings$Settings"
192 android:label="@string/respond_via_sms_setting_title"
193 android:configChanges="orientation|screenSize|keyboardHidden">
194 <intent-filter>
195 <action android:name="android.intent.action.MAIN" />
196 </intent-filter>
197 </activity>
Ihab Awad104f8062014-07-17 11:29:35 -0700198
Yorke Leed7255872014-08-25 15:03:51 -0700199 <activity android:name=".ErrorDialogActivity"
200 android:configChanges="orientation|screenSize|keyboardHidden"
201 android:excludeFromRecents="true"
202 android:launchMode="singleInstance"
203 android:theme="@style/Theme.Telecomm.Transparent">
204 </activity>
205
Yorke Lee6dc1c752014-09-23 18:50:35 -0700206 <receiver android:name=".CallReceiver"
207 android:exported="false">
208 </receiver>
209
Santos Cordonfddf12e2014-09-25 15:08:57 -0700210 <service android:name="BluetoothPhoneService"
211 android:singleUser="true">
212 <intent-filter>
213 <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
214 </intent-filter>
215 </service>
216
Ben Gilad4937ff92013-12-12 12:05:37 -0800217 </application>
218</manifest>