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