diff options
| author | Suprabh Shukla <suprabh@google.com> | 2017-04-14 18:17:23 -0700 |
|---|---|---|
| committer | Suprabh Shukla <suprabh@google.com> | 2017-04-17 23:13:12 -0700 |
| commit | 54a10e6554debc6736181abf2d96fbc0c79bcf59 (patch) | |
| tree | a316be526de9374279809c730efa05c030f9e8aa /core/java/android | |
| parent | 81bfe1f62e5910f69159bcbb2925602823d73cb8 (diff) | |
Package installer related changes to javadoc
Permission REQUEST_INSTALL_PACKAGES is enforced starting from API 26 and
the scope of EXTRA_ORIGINATING_UID is restricted.
Test: make docs
Bug: 33351244
Change-Id: Id7ce9623289374c1c34d3c7b2a0fc0e0493f9923
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/Intent.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index a4b5ffd63ae1..4b7620497475 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1507,7 +1507,7 @@ public class Intent implements Parcelable, Cloneable { * Output: If {@link #EXTRA_RETURN_RESULT}, returns whether the install * succeeded. * <p> - * <strong>Note:</strong>If your app is targeting API level higher than 22 you + * <strong>Note:</strong>If your app is targeting API level higher than 25 you * need to hold {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES} * in order to launch the application installer. * </p> @@ -1646,6 +1646,8 @@ public class Intent implements Parcelable, Cloneable { /** * Used as an int extra field with {@link #ACTION_INSTALL_PACKAGE} and * {@link #ACTION_VIEW} to indicate the uid of the package that initiated the install + * Currently only a system app that hosts the provider authority "downloads" or holds the + * permission {@link android.Manifest.permission.MANAGE_DOCUMENTS} can use this. * @hide */ @SystemApi |
