diff options
| -rw-r--r-- | core/java/android/content/Intent.java | 6 | ||||
| -rw-r--r-- | services/core/java/com/android/server/pm/InstantAppResolver.java | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index bad452cef977..d1e12aa02c34 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -4455,6 +4455,12 @@ public class Intent implements Parcelable, Cloneable { public static final String EXTRA_EPHEMERAL_TOKEN = "android.intent.extra.EPHEMERAL_TOKEN"; /** + * The action that triggered an instant application resolution. + * @hide + */ + public static final String EXTRA_INSTANT_APP_ACTION = "android.intent.extra.INSTANT_APP_ACTION"; + + /** * The version code of the app to install components from. * @hide */ diff --git a/services/core/java/com/android/server/pm/InstantAppResolver.java b/services/core/java/com/android/server/pm/InstantAppResolver.java index 5f54c67a35a1..e5e9a378d55d 100644 --- a/services/core/java/com/android/server/pm/InstantAppResolver.java +++ b/services/core/java/com/android/server/pm/InstantAppResolver.java @@ -258,6 +258,7 @@ public abstract class InstantAppResolver { if (origIntent.getData() != null) { intent.putExtra(Intent.EXTRA_EPHEMERAL_HOSTNAME, origIntent.getData().getHost()); } + intent.putExtra(Intent.EXTRA_INSTANT_APP_ACTION, origIntent.getAction()); // We have all of the data we need; just start the installer without a second phase if (!needsPhaseTwo) { |