summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-01-20 01:23:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-01-20 01:23:36 +0000
commita2b1774d758b58fc5977f631eff76fa21d303906 (patch)
treea1a6aa98445caebfe9512764e0a7c5864e253ded /core/java/android
parentd48fed9b55849246313072b66d1947789155c2c2 (diff)
parent0e989d00ed1e95be0ccb77c29846ee0b6ac33356 (diff)
Merge "Grant access to ephemeral metadata"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/pm/PackageManagerInternal.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageManagerInternal.java b/core/java/android/content/pm/PackageManagerInternal.java
index 2590a6beda39..62f38483250a 100644
--- a/core/java/android/content/pm/PackageManagerInternal.java
+++ b/core/java/android/content/pm/PackageManagerInternal.java
@@ -223,6 +223,27 @@ public abstract class PackageManagerInternal {
int userId);
/**
+ * Grants access to the package metadata for an ephemeral application.
+ * <p>
+ * When an ephemeral application explicitly tries to interact with a full
+ * install application [via an activity, service or provider that has been
+ * exposed using the {@code visibleToInstantApp} attribute], the normal
+ * application must be able to see metadata about the connecting ephemeral
+ * app. If the ephemeral application uses an implicit intent [ie action VIEW,
+ * category BROWSABLE], it remains hidden from the launched activity.
+ * <p>
+ * If the {@code sourceUid} is not for an ephemeral app or {@code targetUid}
+ * is not for a fully installed app, this method will be a no-op.
+ *
+ * @param userId the user
+ * @param intent the intent that triggered the grant
+ * @param targetAppId The app ID of the fully installed application
+ * @param ephemeralAppId The app ID of the ephemeral application
+ */
+ public abstract void grantEphemeralAccess(int userId, Intent intent,
+ int targetAppId, int ephemeralAppId);
+
+ /**
* @return The SetupWizard package name.
*/
public abstract String getSetupWizardPackageName();