Merge "Fix links in setRequireUserAction docs" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f43a7b8d5c
@@ -2111,28 +2111,28 @@ public class PackageInstaller {
|
|||||||
* <p>
|
* <p>
|
||||||
* Defaults to {@link #USER_ACTION_UNSPECIFIED} unless otherwise set. When unspecified for
|
* Defaults to {@link #USER_ACTION_UNSPECIFIED} unless otherwise set. When unspecified for
|
||||||
* installers using the
|
* installers using the
|
||||||
* {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES android.permission
|
* {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES REQUEST_INSTALL_PACKAGES}
|
||||||
* #REQUEST_INSTALL_PACKAGES} permission will behave as if set to
|
* permission will behave as if set to {@link #USER_ACTION_REQUIRED}, and
|
||||||
* {@link #USER_ACTION_REQUIRED}, and {@link #USER_ACTION_NOT_REQUIRED} otherwise.
|
* {@link #USER_ACTION_NOT_REQUIRED} otherwise. When {@code requireUserAction} is set to
|
||||||
* When {@code requireUserAction} is set to {@link #USER_ACTION_REQUIRED}, installers will
|
* {@link #USER_ACTION_REQUIRED}, installers will receive a
|
||||||
* receive a {@link #STATUS_PENDING_USER_ACTION} callback once the session is committed,
|
* {@link #STATUS_PENDING_USER_ACTION} callback once the session is committed, indicating
|
||||||
* indicating that user action is required for the install to proceed.
|
* that user action is required for the install to proceed.
|
||||||
* <p>
|
* <p>
|
||||||
* For installers that have been granted the
|
* For installers that have been granted the
|
||||||
* {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES android.permission
|
* {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES REQUEST_INSTALL_PACKAGES}
|
||||||
* .REQUEST_INSTALL_PACKAGES} permission, user action will not be required when all of
|
* permission, user action will not be required when all of the following conditions are
|
||||||
* the following conditions are met:
|
* met:
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>{@code requireUserAction} is set to {@link #USER_ACTION_NOT_REQUIRED}.</li>
|
* <li>{@code requireUserAction} is set to {@link #USER_ACTION_NOT_REQUIRED}.</li>
|
||||||
* <li>The app being installed targets {@link android.os.Build.VERSION_CODES#Q API 29}
|
* <li>The app being installed targets {@link android.os.Build.VERSION_CODES#Q API 29}
|
||||||
* or higher.</li>
|
* or higher.</li>
|
||||||
* <li>The installer is the {@link InstallSourceInfo#getInstallingPackageName()
|
* <li>The installer is the {@link InstallSourceInfo#getInstallingPackageName()
|
||||||
* installer of record} of an existing version of the app (i.e.: this install session
|
* installer of record} of an existing version of the app (in other words, this install
|
||||||
* is an app update) or the installer is updating itself.</li>
|
* session is an app update) or the installer is updating itself.</li>
|
||||||
* <li>The installer declares the
|
* <li>The installer declares the
|
||||||
* {@link android.Manifest.permission#UPDATE_PACKAGES_WITHOUT_USER_ACTION android
|
* {@link android.Manifest.permission#UPDATE_PACKAGES_WITHOUT_USER_ACTION
|
||||||
* .permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION} permission.</li>
|
* UPDATE_PACKAGES_WITHOUT_USER_ACTION} permission.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* <p>
|
* <p>
|
||||||
* Note: The target API level requirement will advance in future Android versions.
|
* Note: The target API level requirement will advance in future Android versions.
|
||||||
|
|||||||
Reference in New Issue
Block a user