Ensure only system-provided call settings is accessible via intent.
Ensure only the system provided ACTION_SHOW_CALL_SETTINGS screen is shown
by setting priority > 0 for the default telephony implementation of this
screen.
Remove config.xml overlay for settings package as it won't be needed since
only system apps can declare an intent-filter priority > 0.
Test: Manual test call forwarding notification redirects as expected.
Fixes: 184238873
Change-Id: I39d72d0c1dda900cb034cf93993be17805b6ecff
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 014fc17..15881b8 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -429,7 +429,7 @@
android:configChanges="orientation|screenSize|keyboardHidden"
android:exported="true"
android:theme="@style/DialerSettingsLight">
- <intent-filter>
+ <intent-filter android:priority="1">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" />
<action android:name="android.telecom.action.SHOW_CALL_SETTINGS" />