AndroidManifest.xml revision 3e3b541d72e1ecf1ff9b6a5f92c7b2bc6aefb868
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.telecomm">
20
21    <!-- Prevents the activity manager from delaying any activity-start
22         requests by this package, including requests immediately after
23         the user presses "home". -->
24    <!-- TODO(gilad): Better understand/document this use case. -->
25    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
26
27    <application android:name="TelecommApp"
28            android:persistent="false"
29            android:label="@string/telecommAppLabel"
30            android:icon="@mipmap/ic_launcher_phone"
31            android:supportsRtl="true">
32
33        <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
34             We have three different intents through which a call can be initiated each with its
35             own behavior.
36             1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
37             intent, an app can call any number except emergency numbers.
38             2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
39             permission, which is only held by the system dialer and the emergency dialer at the
40             time of this writing. Through this intent, an app can call any number including
41             emergency numbers.
42             3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
43             permission. Through this intent, an app can call *only* emergency numbers. -->
44
45        <!-- Activity that starts the outgoing call process by listening to CALL intent which
46             contain contact information in the intent's data. CallActivity handles any data
47             URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
48             contacts provider entries. Any data not fitting the schema described is ignored. -->
49        <activity android:name="CallActivity"
50                android:theme="@android:style/Theme.NoDisplay"
51                android:permission="android.permission.CALL_PHONE"
52                android:excludeFromRecents="true">
53            <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
54            <intent-filter>
55                <action android:name="android.intent.action.CALL" />
56                <category android:name="android.intent.category.DEFAULT" />
57                <data android:scheme="tel" />
58            </intent-filter>
59            <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
60                 icon for calls to SIP addresses. -->
61            <intent-filter android:icon="@drawable/ic_launcher_sip_call">
62                <action android:name="android.intent.action.CALL" />
63                <category android:name="android.intent.category.DEFAULT" />
64                <data android:scheme="sip" />
65            </intent-filter>
66            <intent-filter>
67                <action android:name="android.intent.action.CALL" />
68                <category android:name="android.intent.category.DEFAULT" />
69                <data android:scheme="voicemail" />
70            </intent-filter>
71            <!-- Omit default category below so that all Intents sent to this filter must be
72                 explicit. -->
73            <intent-filter>
74                <action android:name="android.intent.action.CALL" />
75                <data android:mimeType="vnd.android.cursor.item/phone" />
76                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
77                <data android:mimeType="vnd.android.cursor.item/person" />
78            </intent-filter>
79        </activity>
80
81        <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
82             CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
83             Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
84             processed. High priority of 1000 is used in all intent filters to prevent anything but
85             the system from processing this intent (b/8871505). -->
86        <activity-alias android:name="PrivilegedCallActivity"
87                android:targetActivity="CallActivity"
88                android:permission="android.permission.CALL_PRIVILEGED">
89            <intent-filter android:priority="1000">
90                <action android:name="android.intent.action.CALL_PRIVILEGED" />
91                <category android:name="android.intent.category.DEFAULT" />
92                <data android:scheme="tel" />
93            </intent-filter>
94            <intent-filter android:priority="1000"
95                    android:icon="@drawable/ic_launcher_sip_call">
96                <action android:name="android.intent.action.CALL_PRIVILEGED" />
97                <category android:name="android.intent.category.DEFAULT" />
98                <data android:scheme="sip" />
99            </intent-filter>
100            <intent-filter android:priority="1000">
101                <action android:name="android.intent.action.CALL_PRIVILEGED" />
102                <category android:name="android.intent.category.DEFAULT" />
103                <data android:scheme="voicemail" />
104            </intent-filter>
105            <intent-filter android:priority="1000">
106                <action android:name="android.intent.action.CALL_PRIVILEGED" />
107                <data android:mimeType="vnd.android.cursor.item/phone" />
108                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
109                <data android:mimeType="vnd.android.cursor.item/person" />
110            </intent-filter>
111        </activity-alias>
112
113        <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
114             CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
115             CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
116             1000 is used in all intent filters to prevent anything but the system from processing
117             this intent (b/8871505). -->
118        <!-- TODO(santoscordon): Is there really a notion of an emergency SIP number? If not, can
119             that scheme be removed from this activity? -->
120        <activity-alias android:name="EmergencyCallActivity"
121                android:targetActivity="CallActivity"
122                android:permission="android.permission.CALL_PRIVILEGED">
123            <intent-filter android:priority="1000">
124                <action android:name="android.intent.action.CALL_EMERGENCY" />
125                <category android:name="android.intent.category.DEFAULT" />
126                <data android:scheme="tel" />
127            </intent-filter>
128            <intent-filter android:priority="1000"
129                    android:icon="@drawable/ic_launcher_sip_call">
130                <action android:name="android.intent.action.CALL_EMERGENCY" />
131                <category android:name="android.intent.category.DEFAULT" />
132                <data android:scheme="sip" />
133            </intent-filter>
134            <intent-filter android:priority="1000">
135                <action android:name="android.intent.action.CALL_EMERGENCY" />
136                <category android:name="android.intent.category.DEFAULT" />
137                <data android:scheme="voicemail" />
138            </intent-filter>
139            <intent-filter android:priority="1000">
140                <action android:name="android.intent.action.CALL_EMERGENCY" />
141                <data android:mimeType="vnd.android.cursor.item/phone" />
142                <data android:mimeType="vnd.android.cursor.item/phone_v2" />
143                <data android:mimeType="vnd.android.cursor.item/person" />
144            </intent-filter>
145        </activity-alias>
146
147        <receiver android:name="TelecommReceiver" android:exported="true">
148            <intent-filter>
149                <action android:name="com.android.telecomm.CONNECT_CALL_SERVICE" />
150            </intent-filter>
151        </receiver>
152    </application>
153</manifest>
154