Support multiple ways to provide package name

This lets people who want to open the application details settings to
specify the package via intent extra or data schemes.

Bug: 136284009
Bug: 136525444

Test: manual
adb shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS --es "android.provider.extra.APP_PACKAGE" "com.android.car.messenger"
adb shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS -d "package:com.android.car.messenger"

Merged-In: I8a8d1ab24a7a718962a17d2b0186dea912de43ec
Change-Id: I8a8d1ab24a7a718962a17d2b0186dea912de43ec
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d9500f4..c165d2e 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -140,6 +140,11 @@
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
 
+            <!-- The following intent actions are listed twice in order to support multiple ways to
+                 provide the package name. -->
+            <!-- This intent filter expects to receive the package name via the data field.
+                 i.e. adb shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS \
+                      -d "package:<package name>" -->
             <intent-filter android:priority="100">
                 <action android:name="android.settings.APPLICATION_DETAILS_SETTINGS" />
                 <action android:name="android.settings.NOTIFICATION_SETTINGS" />
@@ -149,6 +154,17 @@
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
 
+            <!-- This intent filter expects to receive the package name via an extra string.
+                 i.e. adb shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS
+                      -e "android.provider.extra.APP_PACKAGE" "<package name>" -->
+            <intent-filter android:priority="100">
+                <action android:name="android.settings.APPLICATION_DETAILS_SETTINGS" />
+                <action android:name="android.settings.NOTIFICATION_SETTINGS" />
+                <action android:name="android.settings.CHANNEL_NOTIFICATION_SETTINGS" />
+                <action android:name="android.settings.APP_NOTIFICATION_SETTINGS" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+
             <intent-filter android:priority="100">
                 <action android:name="android.settings.MANAGE_DEFAULT_APPS_SETTINGS" />
                 <category android:name="android.intent.category.DEFAULT" />