AndroidManifest.xml revision fddf12ed41b47446cd34c730e3d391989a99c32d
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.phone">
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_FULL" />
31    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
32    <uses-permission android:name="android.permission.READ_CALL_LOG" />
33    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
34    <uses-permission android:name="android.permission.VIBRATE" />
35    <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
36    <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
37    <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
38    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
39
40    <!-- Protects the ability to register any PhoneAccount with a capability flags of either
41         PhoneAccount#CAPABILITY_CALL_PROVIDER or PhoneAccount#CAPABILITY_SIM_SUBSCRIPTION. -->
42    <permission
43            android:name="com.android.server.telecom.permission.REGISTER_PROVIDER_OR_SUBSCRIPTION"
44            android:label="Register CALL_PROVIDER or SIM_SUBSCRIPTION PhoneAccount"
45            android:protectionLevel="signature"/>
46
47    <!-- Declare which SDK level this application was built against. This is needed so that IDEs
48         can check for incompatible APIs. -->
49    <uses-sdk android:minSdkVersion="19" />
50
51    <application android:name="TelecomApp"
52            android:persistent="true"
53            android:label="@string/telecommAppLabel"
54            android:icon="@mipmap/ic_launcher_phone"
55            android:allowBackup="false"
56            android:supportsRtl="true">
57
58        <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
59             We have three different intents through which a call can be initiated each with its
60             own behavior.
61             1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
62             intent, an app can call any number except emergency numbers.
63             2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
64             permission, which is only held by the system dialer and the emergency dialer at the
65             time of this writing. Through this intent, an app can call any number including
66             emergency numbers.
67             3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
68             permission. Through this intent, an app can call *only* emergency numbers. -->
69
70        <!-- Activity that starts the outgoing call process by listening to CALL intent which
71             contain contact information in the intent's data. CallActivity handles any data
72             URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
73             contacts provider entries. Any data not fitting the schema described is ignored. -->
74        <activity android:name="CallActivity"
75                android:theme="@style/Theme.Telecomm.Transparent"
76                android:permission="android.permission.CALL_PHONE"
77                android:excludeFromRecents="true">
78            <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
79            <intent-filter>
80                <action android:name="android.intent.action.CALL" />
81                <category android:name="android.intent.category.DEFAULT" />
82                <data android:scheme="tel" />
83            </intent-filter>
84            <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
85                 icon for calls to SIP addresses. -->
86            <intent-filter android:icon="@drawable/ic_launcher_sip_call">
87                <action android:name="android.intent.action.CALL" />
88                <category android:name="android.intent.category.DEFAULT" />
89                <data android:scheme="sip" />
90            </intent-filter>
91            <intent-filter>
92                <action android:name="android.intent.action.CALL" />
93                <category android:name="android.intent.category.DEFAULT" />
94                <data android:scheme="voicemail" />
95            </intent-filter>
96            <!-- Omit default category below so that all Intents sent to this filter must be
97                 explicit. -->
98            <intent-filter>
99                <action android:name="android.intent.action.CALL" />
100                <data android:mimeType="vnd.android.cursor.item/phone" />
101                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
102                <data android:mimeType="vnd.android.cursor.item/person" />
103            </intent-filter>
104        </activity>
105
106        <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
107             CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
108             Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
109             processed. High priority of 1000 is used in all intent filters to prevent anything but
110             the system from processing this intent (b/8871505). -->
111        <activity-alias android:name="PrivilegedCallActivity"
112                android:targetActivity="CallActivity"
113                android:permission="android.permission.CALL_PRIVILEGED">
114            <intent-filter android:priority="1000">
115                <action android:name="android.intent.action.CALL_PRIVILEGED" />
116                <category android:name="android.intent.category.DEFAULT" />
117                <data android:scheme="tel" />
118            </intent-filter>
119            <intent-filter android:priority="1000"
120                    android:icon="@drawable/ic_launcher_sip_call">
121                <action android:name="android.intent.action.CALL_PRIVILEGED" />
122                <category android:name="android.intent.category.DEFAULT" />
123                <data android:scheme="sip" />
124            </intent-filter>
125            <intent-filter android:priority="1000">
126                <action android:name="android.intent.action.CALL_PRIVILEGED" />
127                <category android:name="android.intent.category.DEFAULT" />
128                <data android:scheme="voicemail" />
129            </intent-filter>
130            <intent-filter android:priority="1000">
131                <action android:name="android.intent.action.CALL_PRIVILEGED" />
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-alias>
137
138        <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
139             CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
140             CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
141             1000 is used in all intent filters to prevent anything but the system from processing
142             this intent (b/8871505). -->
143        <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
144             that scheme be removed from this activity? -->
145        <activity-alias android:name="EmergencyCallActivity"
146                android:targetActivity="CallActivity"
147                android:permission="android.permission.CALL_PRIVILEGED">
148            <intent-filter android:priority="1000">
149                <action android:name="android.intent.action.CALL_EMERGENCY" />
150                <category android:name="android.intent.category.DEFAULT" />
151                <data android:scheme="tel" />
152            </intent-filter>
153            <intent-filter android:priority="1000"
154                    android:icon="@drawable/ic_launcher_sip_call">
155                <action android:name="android.intent.action.CALL_EMERGENCY" />
156                <category android:name="android.intent.category.DEFAULT" />
157                <data android:scheme="sip" />
158            </intent-filter>
159            <intent-filter android:priority="1000">
160                <action android:name="android.intent.action.CALL_EMERGENCY" />
161                <category android:name="android.intent.category.DEFAULT" />
162                <data android:scheme="voicemail" />
163            </intent-filter>
164            <intent-filter android:priority="1000">
165                <action android:name="android.intent.action.CALL_EMERGENCY" />
166                <data android:mimeType="vnd.android.cursor.item/phone" />
167                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
168                <data android:mimeType="vnd.android.cursor.item/person" />
169            </intent-filter>
170        </activity-alias>
171
172        <activity-alias android:name="IncomingCallActivity"
173                android:targetActivity="CallActivity"
174                android:exported="true">
175            <intent-filter>
176                <action android:name="android.telecom.action.INCOMING_CALL" />
177                <category android:name="android.intent.category.DEFAULT" />
178            </intent-filter>
179        </activity-alias>
180
181        <receiver android:name="TelecomBroadcastReceiver" android:exported="false">
182            <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
189        <receiver android:name="PhoneAccountBroadcastReceiver">
190            <intent-filter>
191                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
192                <data android:scheme="package" />
193            </intent-filter>
194        </receiver>
195
196        <activity android:name=".RespondViaSmsSettings$Settings"
197                  android:label="@string/respond_via_sms_setting_title"
198                  android:configChanges="orientation|screenSize|keyboardHidden">
199            <intent-filter>
200                <action android:name="android.intent.action.MAIN" />
201            </intent-filter>
202        </activity>
203
204        <activity android:name=".ErrorDialogActivity"
205                android:configChanges="orientation|screenSize|keyboardHidden"
206                android:excludeFromRecents="true"
207                android:launchMode="singleInstance"
208                android:theme="@style/Theme.Telecomm.Transparent">
209        </activity>
210
211        <receiver android:name=".CallReceiver"
212            android:exported="false">
213        </receiver>
214
215        <service android:name="BluetoothPhoneService"
216                android:singleUser="true">
217            <intent-filter>
218                <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
219            </intent-filter>
220        </service>
221
222    </application>
223</manifest>
224