Language

PackageInstallScenario Enum

Definition

public enum PackageInstallScenario
type PackageInstallScenario = 
Inheritance
PackageInstallScenario

Fields

Name Value Description
Default 0

A value to indicate the lack of CUJ information, disabling all installation scenario logic.

Android reference for android.content.pm.PackageManager.INSTALL_SCENARIO_DEFAULT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fast 1

Installation scenario providing the fastest "install button to launch" experience possible.

Android reference for android.content.pm.PackageManager.INSTALL_SCENARIO_FAST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Bulk 2

Installation scenario indicating a bulk operation with the desired result of a fully optimized application. If the system is busy or resources are scarce the system will perform less work to avoid impacting system health. Examples of bulk installation scenarios might include device restore, background updates of multiple applications, or user-triggered updates for all applications. The decision to use BULK or BULK_SECONDARY should be based on the desired user experience. BULK_SECONDARY operations may take less time to complete but, when they do, will produce less optimized applications. The device state (e.g. memory usage or battery status) should not be considered when making this decision as those factors are taken into account by the Package Manager when acting on the installation scenario.

Android reference for android.content.pm.PackageManager.INSTALL_SCENARIO_BULK.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

BulkSecondary 3

Installation scenario indicating a bulk operation that prioritizes minimal system health impact over application optimization. The application may undergo additional optimization if the system is idle and system resources are abundant. The more elements of a bulk operation that are marked BULK_SECONDARY, the faster the entire bulk operation will be. See the comments for INSTALL_SCENARIO_BULK for more information.

Android reference for android.content.pm.PackageManager.INSTALL_SCENARIO_BULK_SECONDARY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to