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