blob: a8d1f991beaf43e2ccaba0ab06b4a0099a6dfa54 [file] [log] [blame]
<?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.telecomm"
coreApp="true"
android:sharedUserId="android.uid.phone">
<!-- 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.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.MANAGE_USERS" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<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.BIND_CONNECTION_SERVICE" />
<!-- Protects the ability to register any PhoneAccount with a capability flags of either
PhoneAccount#CAPABILITY_CALL_PROVIDER or PhoneAccount#CAPABILITY_SIM_SUBSCRIPTION. -->
<permission
android:name="com.android.telecomm.permission.REGISTER_PROVIDER_OR_SUBSCRIPTION"
android:label="Register CALL_PROVIDER or SIM_SUBSCRIPTION PhoneAccount"
android:protectionLevel="signature"/>
<!-- Declare which SDK level this application was built against. This is needed so that IDEs
can check for incompatible APIs. -->
<uses-sdk android:minSdkVersion="19" />
<application android:name="TelecommApp"
android:persistent="true"
android:label="@string/telecommAppLabel"
android:icon="@mipmap/ic_launcher_phone"
android:allowBackup="false"
android:supportsRtl="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 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="CallActivity"
android:theme="@android:style/Theme.NoDisplay"
android:permission="android.permission.CALL_PHONE"
android:excludeFromRecents="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="CallActivity"
android:permission="android.permission.CALL_PRIVILEGED">
<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="CallActivity"
android:permission="android.permission.CALL_PRIVILEGED">
<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>
<activity-alias android:name="IncomingCallActivity"
android:targetActivity="CallActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.INCOMING_CALL" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity-alias>
<receiver android:name="TelecommBroadcastReceiver" android:exported="false">
<intent-filter>
<action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" />
<action android:name="com.android.telecomm.ACTION_CALL_BACK_FROM_NOTIFICATION" />
<action android:name="com.android.telecomm.ACTION_SEND_SMS_FROM_NOTIFICATION" />
</intent-filter>
</receiver>
<receiver android:name="PhoneAccountBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<activity android:name=".RespondViaSmsSettings$Settings"
android:label="@string/respond_via_sms_setting_title"
android:configChanges="orientation|screenSize|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:name=".PhoneAccountPreferencesActivity"
android:label="@string/phone_account_preferences_title"
android:configChanges="orientation|screenSize|keyboardHidden">
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>