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
This commit is contained in:
Winson
2021-04-02 12:43:55 -07:00
parent aacf7bd6f0
commit ed6d733b5a

View File

@@ -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" />