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