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

Commit 57528475 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Fixing javadoc errors for pm#canRequestPackageInstalls

Fixed @see errrors and upper cased api to API

Test: 'make docs' followed by viewing PackageManager.html

Bug: 37325276
Change-Id: I26abc2f75a6b9f0b785b29d695461596e53108fb
parent 81bfe1f6
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -6245,18 +6245,18 @@ public abstract class PackageManager {

    /**
     * Checks whether the calling package is allowed to request package installs through package
     * installer. Apps are encouraged to call this api before launching the package installer via
     * installer. Apps are encouraged to call this API before launching the package installer via
     * intent {@link android.content.Intent#ACTION_INSTALL_PACKAGE}. Starting from Android O, the
     * user can explicitly choose what external sources they trust to install apps on the device.
     * If this api returns false, the install request will be blocked by the package installer and
     * If this API returns false, the install request will be blocked by the package installer and
     * a dialog will be shown to the user with an option to launch settings to change their
     * preference. An application must target Android O or higher and declare permission
     * {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES} in order to use this api.
     * {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES} in order to use this API.
     *
     * @return true if the calling package is trusted by the user to request install packages on
     * the device, false otherwise.
     * @see {@link android.content.Intent#ACTION_INSTALL_PACKAGE}
     * @see {@link android.provider.Settings#ACTION_MANAGE_UNKNOWN_APP_SOURCES}
     * @see android.content.Intent#ACTION_INSTALL_PACKAGE
     * @see android.provider.Settings#ACTION_MANAGE_UNKNOWN_APP_SOURCES
     */
    public abstract boolean canRequestPackageInstalls();