Support multiple ways to provide package name
am: 1cb9106e2e
Change-Id: Id6219bbdef3ec48eec80fc845016bc12d96be4dd
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 6d0416d..3f0eac4 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -148,6 +148,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" />
@@ -157,6 +162,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.action.MANAGE_WRITE_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />