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