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