AndroidManifest.xml revision 4c77849c7e70cfb93239a220beefd35a243c7c56
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    <!-- Prevents the activity manager from delaying any activity-start
24         requests by this package, including requests immediately after
25         the user presses "home". -->
26    <uses-permission android:name="android.permission.BLUETOOTH" />
27    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
28    <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
29    <uses-permission android:name="android.permission.MANAGE_USERS" />
30    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
31    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
32    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
33    <uses-permission android:name="android.permission.READ_CALL_LOG" />
34    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
35    <uses-permission android:name="android.permission.VIBRATE" />
36    <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
37    <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
38    <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
39    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
40    <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
41    <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
42
43    <permission
44            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
53    <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
63    <!-- 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
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
73        <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
74             We have three different intents through which a call can be initiated each with its
75             own behavior.
76             1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
77             intent, an app can call any number except emergency numbers.
78             2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
79             permission, which is only held by the system dialer and the emergency dialer at the
80             time of this writing. Through this intent, an app can call any number including
81             emergency numbers.
82             3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
83             permission. Through this intent, an app can call *only* emergency numbers. -->
84
85        <!-- Activity that starts the outgoing call process by listening to CALL intent which
86             contain contact information in the intent's data. CallActivity handles any data
87             URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
88             contacts provider entries. Any data not fitting the schema described is ignored. -->
89        <activity android:name="CallActivity"
90                android:theme="@style/Theme.Telecomm.Transparent"
91                android:permission="android.permission.CALL_PHONE"
92                android:excludeFromRecents="true"
93                android:process=":ui">
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                android:process=":ui">
131            <intent-filter android:priority="1000">
132                <action android:name="android.intent.action.CALL_PRIVILEGED" />
133                <category android:name="android.intent.category.DEFAULT" />
134                <data android:scheme="tel" />
135            </intent-filter>
136            <intent-filter android:priority="1000"
137                    android:icon="@drawable/ic_launcher_sip_call">
138                <action android:name="android.intent.action.CALL_PRIVILEGED" />
139                <category android:name="android.intent.category.DEFAULT" />
140                <data android:scheme="sip" />
141            </intent-filter>
142            <intent-filter android:priority="1000">
143                <action android:name="android.intent.action.CALL_PRIVILEGED" />
144                <category android:name="android.intent.category.DEFAULT" />
145                <data android:scheme="voicemail" />
146            </intent-filter>
147            <intent-filter android:priority="1000">
148                <action android:name="android.intent.action.CALL_PRIVILEGED" />
149                <data android:mimeType="vnd.android.cursor.item/phone" />
150                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
151                <data android:mimeType="vnd.android.cursor.item/person" />
152            </intent-filter>
153        </activity-alias>
154
155        <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
156             CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
157             CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
158             1000 is used in all intent filters to prevent anything but the system from processing
159             this intent (b/8871505). -->
160        <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
161             that scheme be removed from this activity? -->
162        <activity-alias android:name="EmergencyCallActivity"
163                android:targetActivity="CallActivity"
164                android:permission="android.permission.CALL_PRIVILEGED"
165                android:process=":ui">
166            <intent-filter android:priority="1000">
167                <action android:name="android.intent.action.CALL_EMERGENCY" />
168                <category android:name="android.intent.category.DEFAULT" />
169                <data android:scheme="tel" />
170            </intent-filter>
171            <intent-filter android:priority="1000"
172                    android:icon="@drawable/ic_launcher_sip_call">
173                <action android:name="android.intent.action.CALL_EMERGENCY" />
174                <category android:name="android.intent.category.DEFAULT" />
175                <data android:scheme="sip" />
176            </intent-filter>
177            <intent-filter android:priority="1000">
178                <action android:name="android.intent.action.CALL_EMERGENCY" />
179                <category android:name="android.intent.category.DEFAULT" />
180                <data android:scheme="voicemail" />
181            </intent-filter>
182            <intent-filter android:priority="1000">
183                <action android:name="android.intent.action.CALL_EMERGENCY" />
184                <data android:mimeType="vnd.android.cursor.item/phone" />
185                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
186                <data android:mimeType="vnd.android.cursor.item/person" />
187            </intent-filter>
188        </activity-alias>
189
190        <receiver android:name="TelecomBroadcastReceiver" android:exported="false"
191                android:process="system">
192            <intent-filter>
193                <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
194                <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
195                <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
196            </intent-filter>
197        </receiver>
198
199        <receiver android:name="PhoneAccountBroadcastReceiver"
200                android:process="system">
201            <intent-filter>
202                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
203                <data android:scheme="package" />
204            </intent-filter>
205        </receiver>
206
207        <activity android:name=".RespondViaSmsSettings"
208                  android:label="@string/respond_via_sms_setting_title"
209                  android:configChanges="orientation|screenSize|keyboardHidden"
210                  android:theme="@style/Theme.Telecom.DialerSettings"
211                  android:process=":ui">
212            <intent-filter>
213                <action android:name="android.intent.action.MAIN" />
214                <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
215                <category android:name="android.intent.category.DEFAULT" />
216            </intent-filter>
217        </activity>
218
219        <activity android:name=".ErrorDialogActivity"
220                android:configChanges="orientation|screenSize|keyboardHidden"
221                android:excludeFromRecents="true"
222                android:launchMode="singleInstance"
223                android:theme="@style/Theme.Telecomm.Transparent"
224                android:process=":ui">
225        </activity>
226
227        <receiver android:name=".CallReceiver"
228                android:exported="true"
229                android:permission="android.permission.MODIFY_PHONE_STATE"
230                android:process="system">
231        </receiver>
232
233        <service android:name="BluetoothPhoneService"
234                android:singleUser="true"
235                android:process="system">
236            <intent-filter>
237                <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
238            </intent-filter>
239        </service>
240
241        <service android:name=".TelecomService"
242                android:singleUser="true"
243                android:process="system">
244            <intent-filter>
245                <android android:name="android.telecom.ITelecomService" />
246            </intent-filter>
247        </service>
248
249    </application>
250</manifest>
251