diff options
| author | Patrick Baumann <patb@google.com> | 2020-03-06 10:34:17 -0800 |
|---|---|---|
| committer | Sterling Huber <hubers@google.com> | 2020-06-26 16:23:36 +0000 |
| commit | b059bd3947610c40cedc20ed02e0e1c4d9c237b2 (patch) | |
| tree | 64fc8f55c843643c6ad1ac7e6616c5f29b2f9852 /core/java | |
| parent | 272fa3ada7e83b4ccffce574c62fc36325b08cd1 (diff) | |
Do not set referrerUri on SessionInfo for non-owners
This change leaves the referrerUri field null when the caller leading to
its production is not the owner of the session.
Bug: 142125338
Test: atest SessionReferrerUriTest
Merged-In: I84679ea0636aa2097e25e23813c48134c9cc1d75
Change-Id: I84679ea0636aa2097e25e23813c48134c9cc1d75
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/PackageInstaller.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index a15caa09bb60..44842c62a3c8 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -2082,6 +2082,7 @@ public class PackageInstaller { /** * Get the value set in {@link SessionParams#setOriginatingUri(Uri)}. + * Note: This value will only be non-null for the owner of the session. */ public @Nullable Uri getOriginatingUri() { return originatingUri; @@ -2096,6 +2097,7 @@ public class PackageInstaller { /** * Get the value set in {@link SessionParams#setReferrerUri(Uri)} + * Note: This value will only be non-null for the owner of the session. */ public @Nullable Uri getReferrerUri() { return referrerUri; |
