-
Notifications
You must be signed in to change notification settings - Fork 4
/
AndroidManifest.xml
340 lines (310 loc) · 18.3 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2007 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
package="com.android.server.telecom"
coreApp="true"
android:sharedUserId="android.uid.system">
<protected-broadcast android:name="android.intent.action.SHOW_MISSED_CALLS_NOTIFICATION"/>
<protected-broadcast android:name="com.android.server.telecom.MESSAGE_SENT"/>
<uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"/>
<!-- Prevents the activity manager from delaying any activity-start
requests by this package, including requests immediately after
the user presses "home". -->
<uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE"/>
<uses-permission android:name="android.permission.BIND_INCALL_SERVICE"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED"/>
<uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO"/>
<uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"/>
<uses-permission android:name="android.permission.CALL_PRIVILEGED"/>
<uses-permission android:name="android.permission.HANDLE_CALL_INTENT"/>
<uses-permission android:name="android.permission.HANDLE_CAR_MODE_CHANGES"/>
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
<uses-permission android:name="android.permission.MANAGE_USERS"/>
<uses-permission android:name="android.permission.MANAGE_ROLE_HOLDERS"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<!-- Required to determine source of ongoing audio recordings. -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_CALL_LOG"/>
<!-- Required to check for direct to voicemail, to load custom ringtones for incoming calls
which are specified on a per contact basis, and also to determine user preferred
PhoneAccountHandles for outgoing calls. -->
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PROJECTION_STATE"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.STOP_APP_SWITCHES"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.READ_BLOCKED_NUMBERS"/>
<uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS"/>
<uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<uses-permission android:name="com.android.phone.permission.ACCESS_LAST_KNOWN_CELL_ID"/>
<permission android:name="android.permission.BROADCAST_CALLLOG_INFO"
android:label="Broadcast the call type/duration information"
android:protectionLevel="signature|system"/>
<permission android:name="android.permission.PROCESS_CALLLOG_INFO"
android:label="Register to handle the broadcasted call type/duration information"
android:protectionLevel="signature|system"/>
<permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
android:label="Broadcast phone account registration"
android:protectionLevel="signature|system"/>
<permission android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
android:label="Process phone account registration"
android:protectionLevel="signature|system"/>
<permission android:name="android.permission.HANDLE_CALL_INTENT"
android:label="Protects handling the call intent via the TelecomManager API."
android:protectionLevel="signature|system"/>
<application android:label="@string/telecommAppLabel"
android:icon="@mipmap/ic_launcher_phone"
android:allowBackup="false"
android:supportsRtl="true"
android:process="system"
android:usesCleartextTraffic="false"
android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true">
<!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
We have three different intents through which a call can be initiated each with its
own behavior.
1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
intent, an app can call any number except emergency numbers.
2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
permission, which is only held by the system dialer and the emergency dialer at the
time of this writing. Through this intent, an app can call any number including
emergency numbers.
3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
permission. Through this intent, an app can call *only* emergency numbers. -->
<!-- Activity that displays UI for managing blocked numbers. -->
<activity android:name=".settings.BlockedNumbersActivity"
android:label="@string/blocked_numbers"
android:configChanges="orientation|screenSize|keyboardHidden"
android:theme="@style/Theme.Telecom.BlockedNumbers"
android:process=":ui"
android:exported="true">
<intent-filter>
<action android:name="android.telecom.action.MANAGE_BLOCKED_NUMBERS"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".settings.CallBlockDisabledActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@style/Theme.Telecomm.Transparent"
android:process=":ui">
</activity>
<!-- Activity that starts the outgoing call process by listening to CALL intent which
contain contact information in the intent's data. CallActivity handles any data
URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
contacts provider entries. Any data not fitting the schema described is ignored. -->
<activity android:name=".components.UserCallActivity"
android:label="@string/userCallActivityLabel"
android:theme="@style/Theme.Telecomm.Transparent"
android:permission="android.permission.CALL_PHONE"
android:excludeFromRecents="true"
android:process=":ui"
android:exported="true">
<!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="tel"/>
</intent-filter>
<!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
icon for calls to SIP addresses. -->
<intent-filter android:icon="@drawable/ic_launcher_sip_call">
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="sip"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="voicemail"/>
</intent-filter>
<!-- Omit default category below so that all Intents sent to this filter must be
explicit. -->
<intent-filter>
<action android:name="android.intent.action.CALL"/>
<data android:mimeType="vnd.android.cursor.item/phone"/>
<data android:mimeType="vnd.android.cursor.item/phone_v2"/>
<data android:mimeType="vnd.android.cursor.item/person"/>
</intent-filter>
</activity>
<!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
processed. High priority of 1000 is used in all intent filters to prevent anything but
the system from processing this intent (b/8871505). -->
<activity-alias android:name="PrivilegedCallActivity"
android:targetActivity=".components.UserCallActivity"
android:permission="android.permission.CALL_PRIVILEGED"
android:exported="true"
android:process=":ui">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_PRIVILEGED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="tel"/>
</intent-filter>
<intent-filter android:priority="1000"
android:icon="@drawable/ic_launcher_sip_call">
<action android:name="android.intent.action.CALL_PRIVILEGED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="sip"/>
</intent-filter>
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_PRIVILEGED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="voicemail"/>
</intent-filter>
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_PRIVILEGED"/>
<data android:mimeType="vnd.android.cursor.item/phone"/>
<data android:mimeType="vnd.android.cursor.item/phone_v2"/>
<data android:mimeType="vnd.android.cursor.item/person"/>
</intent-filter>
</activity-alias>
<!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
1000 is used in all intent filters to prevent anything but the system from processing
this intent (b/8871505). -->
<!-- TODO: Is there really a notion of an emergency SIP number? If not, can
that scheme be removed from this activity? -->
<activity-alias android:name="EmergencyCallActivity"
android:targetActivity=".components.UserCallActivity"
android:permission="android.permission.CALL_PRIVILEGED"
android:exported="true"
android:process=":ui">
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_EMERGENCY"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="tel"/>
</intent-filter>
<intent-filter android:priority="1000"
android:icon="@drawable/ic_launcher_sip_call">
<action android:name="android.intent.action.CALL_EMERGENCY"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="sip"/>
</intent-filter>
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_EMERGENCY"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="voicemail"/>
</intent-filter>
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_EMERGENCY"/>
<data android:mimeType="vnd.android.cursor.item/phone"/>
<data android:mimeType="vnd.android.cursor.item/phone_v2"/>
<data android:mimeType="vnd.android.cursor.item/person"/>
</intent-filter>
</activity-alias>
<receiver android:name=".components.TelecomBroadcastReceiver"
android:exported="false"
android:process="system">
<intent-filter>
<action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS"/>
<action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION"/>
<action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION"/>
<action android:name="com.android.server.telecom.ACTION_ANSWER_FROM_NOTIFICATION"/>
<action android:name="com.android.server.telecom.ACTION_REJECT_FROM_NOTIFICATION"/>
<action android:name="com.android.server.telecom.PROCEED_WITH_CALL"/>
<action android:name="com.android.server.telecom.CANCEL_CALL"/>
<action android:name="com.android.server.telecom.PROCEED_WITH_REDIRECTED_CALL"/>
<action android:name="com.android.server.telecom.CANCEL_REDIRECTED_CALL"/>
</intent-filter>
</receiver>
<receiver android:name=".components.AppUninstallBroadcastReceiver"
android:process="system"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED"/>
<data android:scheme="package"/>
</intent-filter>
</receiver>
<activity android:name=".RespondViaSmsSettings"
android:label="@string/respond_via_sms_setting_title"
android:configChanges="orientation|screenSize|keyboardHidden"
android:theme="@style/CallSettingsWithoutDividerTheme"
android:process=":ui"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".settings.EnableAccountPreferenceActivity"
android:label="@string/enable_account_preference_title"
android:configChanges="orientation|screenSize|keyboardHidden"
android:theme="@style/Theme.Telecom.DialerSettings"
android:process=":ui"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".components.ErrorDialogActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@style/Theme.Telecomm.Transparent"
android:process=":ui">
</activity>
<activity android:name=".ui.ConfirmCallDialogActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@style/Theme.Telecomm.Transparent"
android:process=":ui">
</activity>
<activity android:name=".ui.CallRedirectionTimeoutDialogActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@style/Theme.Telecomm.Transparent"
android:process=":ui">
</activity>
<activity android:name=".ui.TelecomDeveloperMenu"
android:label="@string/developer_title"
android:exported="false"
android:process=":ui"/>
<service android:name=".components.BluetoothPhoneService"
android:singleUser="true"
android:process="system"
android:exported="true">
<intent-filter>
<action android:name="android.bluetooth.IBluetoothHeadsetPhone"/>
</intent-filter>
<intent-filter>
<action android:name="android.bluetooth.IBluetoothLeCallControlCallback" />
</intent-filter>
</service>
<service android:name=".components.TelecomService"
android:singleUser="true"
android:process="system"
android:exported="true">
<intent-filter>
<action android:name="android.telecom.ITelecomService"/>
</intent-filter>
</service>
</application>
</manifest>