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