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