Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54a10e65 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

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
parent 81bfe1f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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