Handle modern OPEN_BY_DEFAULT action
From API feedback, the constant was migrated to the standard format.
Settings needs to catch both the modern and legacy format.
Bug: 184370492
Test: manual, adb shell am start \
-a "android.settings.APP_OPEN_BY_DEFAULT_SETTINGS" \
-d "package:com.example.app"
Change-Id: I138383a65c7b8269696f401e250cc3b6f1cfd1d0
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index cb53a02..ce80fc5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1236,6 +1236,8 @@
android:label="@string/application_info_label"
android:exported="true">
<intent-filter android:priority="1">
+ <action android:name="android.settings.APP_OPEN_BY_DEFAULT_SETTINGS" />
+ <!-- Also catch legacy "com." prefixed action. -->
<action android:name="com.android.settings.APP_OPEN_BY_DEFAULT_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />