PackageInstallReason Enum

Definition

public enum PackageInstallReason
type PackageInstallReason = 
Inheritance
PackageInstallReason

Fields

Name Value Description
Unknown 0

Code indicating that the reason for installing this package is unknown.

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

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.

Policy 1

Code indicating that this package was installed due to enterprise policy.

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

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.

DeviceRestore 2

Code indicating that this package was installed as part of restoring from another device.

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

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.

DeviceSetup 3

Code indicating that this package was installed as part of device setup.

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

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.

User 4

Code indicating that the package installation was initiated by the user.

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

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.

Remarks

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