AndroidManifest.xml revision 115c06ee64e209cda99abdc1fbd23fd65aa6da47
1<?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"
19        package="com.android.server.telecom"
20        coreApp="true"
21        android:sharedUserId="android.uid.system">
22
23    <protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION" />
24
25    <!-- Prevents the activity manager from delaying any activity-start
26         requests by this package, including requests immediately after
27         the user presses "home". -->
28    <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
29    <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
30    <uses-permission android:name="android.permission.BLUETOOTH" />
31    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
32    <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
33    <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
34    <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
35    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
36    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
37    <uses-permission android:name="android.permission.MANAGE_USERS" />
38    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
39    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
40    <uses-permission android:name="android.permission.READ_CALL_LOG" />
41    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
42    <uses-permission android:name="android.permission.VIBRATE" />
43    <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
44    <uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS" />
45    <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS" />
46
47    <permission
48            android:name="android.permission.BROADCAST_CALLLOG_INFO"
49            android:label="Broadcast the call type/duration information"
50            android:protectionLevel="signature|system"/>
51
52    <permission
53            android:name="android.permission.PROCESS_CALLLOG_INFO"
54            android:label="Register to handle the broadcasted call type/duration information"
55            android:protectionLevel="signature|system"/>
56
57    <permission
58            android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
59            android:label="Broadcast phone account registration"
60            android:protectionLevel="signature|system"/>
61
62    <permission
63            android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
64            android:label="Process phone account registration"
65            android:protectionLevel="signature|system"/>
66
67    <application android:label="@string/telecommAppLabel"
68            android:icon="@mipmap/ic_launcher_phone"
69            android:allowBackup="false"
70            android:supportsRtl="true"
71            android:process="system"
72            android:usesCleartextTraffic="false"
73            android:defaultToDeviceProtectedStorage="true"
74            android:directBootAware="true">
75
76        <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
77             We have three different intents through which a call can be initiated each with its
78             own behavior.
79             1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
80             intent, an app can call any number except emergency numbers.
81             2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
82             permission, which is only held by the system dialer and the emergency dialer at the
83             time of this writing. Through this intent, an app can call any number including
84             emergency numbers.
85             3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
86             permission. Through this intent, an app can call *only* emergency numbers. -->
87
88        <!-- Activity that displays UI for managing blocked numbers. -->
89        <activity android:name=".settings.BlockedNumbersActivity"
90                  android:label="@string/blocked_numbers"
91                  android:configChanges="orientation|screenSize|keyboardHidden"
92                  android:theme="@style/Theme.Telecom.BlockedNumbers"
93                  android:process=":ui"
94                  android:exported="true">
95            <intent-filter>
96                <action android:name="android.telecom.action.MANAGE_BLOCKED_NUMBERS" />
97                <category android:name="android.intent.category.DEFAULT" />
98            </intent-filter>
99        </activity>
100        <!-- Activity that starts the outgoing call process by listening to CALL intent which
101             contain contact information in the intent's data. CallActivity handles any data
102             URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
103             contacts provider entries. Any data not fitting the schema described is ignored. -->
104        <activity android:name=".components.UserCallActivity"
105                android:label="@string/userCallActivityLabel"
106                android:theme="@style/Theme.Telecomm.Transparent"
107                android:permission="android.permission.CALL_PHONE"
108                android:excludeFromRecents="true"
109                android:process=":ui">
110            <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
111            <intent-filter>
112                <action android:name="android.intent.action.CALL" />
113                <category android:name="android.intent.category.DEFAULT" />
114                <data android:scheme="tel" />
115            </intent-filter>
116            <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
117                 icon for calls to SIP addresses. -->
118            <intent-filter android:icon="@drawable/ic_launcher_sip_call">
119                <action android:name="android.intent.action.CALL" />
120                <category android:name="android.intent.category.DEFAULT" />
121                <data android:scheme="sip" />
122            </intent-filter>
123            <intent-filter>
124                <action android:name="android.intent.action.CALL" />
125                <category android:name="android.intent.category.DEFAULT" />
126                <data android:scheme="voicemail" />
127            </intent-filter>
128            <!-- Omit default category below so that all Intents sent to this filter must be
129                 explicit. -->
130            <intent-filter>
131                <action android:name="android.intent.action.CALL" />
132                <data android:mimeType="vnd.android.cursor.item/phone" />
133                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
134                <data android:mimeType="vnd.android.cursor.item/person" />
135            </intent-filter>
136        </activity>
137
138        <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
139             CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
140             Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
141             processed. High priority of 1000 is used in all intent filters to prevent anything but
142             the system from processing this intent (b/8871505). -->
143        <activity-alias android:name="PrivilegedCallActivity"
144                android:targetActivity=".components.UserCallActivity"
145                android:permission="android.permission.CALL_PRIVILEGED"
146                android:process=":ui">
147            <intent-filter android:priority="1000">
148                <action android:name="android.intent.action.CALL_PRIVILEGED" />
149                <category android:name="android.intent.category.DEFAULT" />
150                <data android:scheme="tel" />
151            </intent-filter>
152            <intent-filter android:priority="1000"
153                    android:icon="@drawable/ic_launcher_sip_call">
154                <action android:name="android.intent.action.CALL_PRIVILEGED" />
155                <category android:name="android.intent.category.DEFAULT" />
156                <data android:scheme="sip" />
157            </intent-filter>
158            <intent-filter android:priority="1000">
159                <action android:name="android.intent.action.CALL_PRIVILEGED" />
160                <category android:name="android.intent.category.DEFAULT" />
161                <data android:scheme="voicemail" />
162            </intent-filter>
163            <intent-filter android:priority="1000">
164                <action android:name="android.intent.action.CALL_PRIVILEGED" />
165                <data android:mimeType="vnd.android.cursor.item/phone" />
166                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
167                <data android:mimeType="vnd.android.cursor.item/person" />
168            </intent-filter>
169        </activity-alias>
170
171        <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
172             CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
173             CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
174             1000 is used in all intent filters to prevent anything but the system from processing
175             this intent (b/8871505). -->
176        <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
177             that scheme be removed from this activity? -->
178        <activity-alias android:name="EmergencyCallActivity"
179                android:targetActivity=".components.UserCallActivity"
180                android:permission="android.permission.CALL_PRIVILEGED"
181                android:process=":ui">
182            <intent-filter android:priority="1000">
183                <action android:name="android.intent.action.CALL_EMERGENCY" />
184                <category android:name="android.intent.category.DEFAULT" />
185                <data android:scheme="tel" />
186            </intent-filter>
187            <intent-filter android:priority="1000"
188                    android:icon="@drawable/ic_launcher_sip_call">
189                <action android:name="android.intent.action.CALL_EMERGENCY" />
190                <category android:name="android.intent.category.DEFAULT" />
191                <data android:scheme="sip" />
192            </intent-filter>
193            <intent-filter android:priority="1000">
194                <action android:name="android.intent.action.CALL_EMERGENCY" />
195                <category android:name="android.intent.category.DEFAULT" />
196                <data android:scheme="voicemail" />
197            </intent-filter>
198            <intent-filter android:priority="1000">
199                <action android:name="android.intent.action.CALL_EMERGENCY" />
200                <data android:mimeType="vnd.android.cursor.item/phone" />
201                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
202                <data android:mimeType="vnd.android.cursor.item/person" />
203            </intent-filter>
204        </activity-alias>
205
206        <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
207                android:process="system">
208            <intent-filter>
209                <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
210                <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
211                <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
212            </intent-filter>
213        </receiver>
214
215        <receiver android:name=".components.PhoneAccountBroadcastReceiver"
216                android:process="system">
217            <intent-filter>
218                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
219                <data android:scheme="package" />
220            </intent-filter>
221        </receiver>
222
223        <activity android:name=".RespondViaSmsSettings"
224                  android:label="@string/respond_via_sms_setting_title"
225                  android:configChanges="orientation|screenSize|keyboardHidden"
226                  android:theme="@style/Theme.Telecom.DialerSettings"
227                  android:process=":ui">
228            <intent-filter>
229                <action android:name="android.intent.action.MAIN" />
230                <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
231                <category android:name="android.intent.category.DEFAULT" />
232            </intent-filter>
233        </activity>
234
235        <activity android:name=".settings.EnableAccountPreferenceActivity"
236                  android:label="@string/enable_account_preference_title"
237                  android:configChanges="orientation|screenSize|keyboardHidden"
238                  android:theme="@style/Theme.Telecom.DialerSettings"
239                  android:process=":ui">
240            <intent-filter>
241                <action android:name="android.intent.action.MAIN" />
242                <category android:name="android.intent.category.DEFAULT" />
243            </intent-filter>
244        </activity>
245
246        <activity android:name=".components.ErrorDialogActivity"
247                android:configChanges="orientation|screenSize|keyboardHidden"
248                android:excludeFromRecents="true"
249                android:launchMode="singleInstance"
250                android:theme="@style/Theme.Telecomm.Transparent"
251                android:process=":ui">
252        </activity>
253
254        <activity android:name=".components.ChangeDefaultDialerDialog"
255                  android:label="@string/change_default_dialer_dialog_title"
256                  android:excludeFromRecents="true"
257                  android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
258                  android:priority="1000"
259                  android:process=":ui" >
260            <intent-filter>
261                <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
262                <category android:name="android.intent.category.DEFAULT" />
263            </intent-filter>
264        </activity>
265        <activity android:name=".testapps.IncomingSelfManagedCallActivity" />
266
267        <receiver android:name=".components.PrimaryCallReceiver"
268                android:exported="true"
269                android:permission="android.permission.MODIFY_PHONE_STATE"
270                android:process="system">
271        </receiver>
272
273        <service android:name=".components.BluetoothPhoneService"
274                android:singleUser="true"
275                android:process="system">
276            <intent-filter>
277                <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
278            </intent-filter>
279        </service>
280
281        <service android:name=".components.TelecomService"
282                android:singleUser="true"
283                android:process="system">
284            <intent-filter>
285                <action android:name="android.telecom.ITelecomService" />
286            </intent-filter>
287        </service>
288
289    </application>
290</manifest>
291