Set highest priority on phone for CALL intents.
This prevents third party apps from handling these intents, which they
were never meant to.
bug:8950263
Change-Id: Ic3c8bfd5a7d3b4676f5eca1bce9b4d02560a0e9a
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7e21b99..7ec8007 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -172,22 +172,23 @@
<activity-alias android:name="EmergencyOutgoingCallBroadcaster"
android:targetActivity="OutgoingCallBroadcaster"
android:permission="android.permission.CALL_PRIVILEGED">
- <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="tel" />
</intent-filter>
- <intent-filter android:icon="@drawable/ic_launcher_sip_call">
+ <intent-filter android:icon="@drawable/ic_launcher_sip_call"
+ android:priority="1000">
<action android:name="android.intent.action.CALL_EMERGENCY" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sip" />
</intent-filter>
- <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>
+ <intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_EMERGENCY" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/phone" />
@@ -198,22 +199,23 @@
<activity-alias android:name="PrivilegedOutgoingCallBroadcaster"
android:targetActivity="OutgoingCallBroadcaster"
android:permission="android.permission.CALL_PRIVILEGED">
- <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="tel" />
</intent-filter>
- <intent-filter android:icon="@drawable/ic_launcher_sip_call">
+ <intent-filter android:icon="@drawable/ic_launcher_sip_call"
+ android:priority="1000">
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sip" />
</intent-filter>
- <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>
+ <intent-filter android:priority="1000">
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/phone" />