Język

PackageInstallStatus Enum

Definition

Enumerates values returned by several methods of PackageInstallStatus.

public enum PackageInstallStatus
type PackageInstallStatus = 
Inheritance
PackageInstallStatus

Fields

Name Value Description
PendingUserAction -1

User action is currently required to proceed. You can launch the intent activity described by Intent.EXTRA_INTENT to involve the user and continue. You may choose to immediately launch the intent if the user is actively using your app. Otherwise, you should use a notification to guide the user back into your app before launching.

Android reference for android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION.

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.

Success 0

The operation succeeded.

Android reference for android.content.pm.PackageInstaller.STATUS_SUCCESS.

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.

Failure 1

The operation failed in a generic way. The system will always try to provide a more specific failure reason, but in some rare cases this may be delivered.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE.

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.

FailureBlocked 2

The operation failed because it was blocked. For example, a device policy may be blocking the operation, a package verifier may have blocked the operation, or the app may be required for core system operation. The result may also contain EXTRA_OTHER_PACKAGE_NAME with the specific package blocking the install.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_BLOCKED.

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.

FailureAborted 3

The operation failed because it was actively aborted. For example, the user actively declined requested permissions, or the session was abandoned.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_ABORTED.

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.

FailureInvalid 4

The operation failed because one or more of the APKs was invalid. For example, they might be malformed, corrupt, incorrectly signed, mismatched, etc.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID.

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.

FailureConflict 5

The operation failed because it conflicts (or is inconsistent with) with another package already installed on the device. For example, an existing permission, incompatible certificates, etc. The user may be able to uninstall another app to fix the issue. The result may also contain EXTRA_OTHER_PACKAGE_NAME with the specific package identified as the cause of the conflict.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_CONFLICT.

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.

FailureStorage 6

The operation failed because of storage issues. For example, the device may be running low on space, or external media may be unavailable. The user may be able to help free space or insert different external media. The result may also contain EXTRA_STORAGE_PATH with the path to the storage device that caused the failure.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_STORAGE.

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.

FailureIncompatible 7

The operation failed because it is fundamentally incompatible with this device. For example, the app may require a hardware feature that doesn't exist, it may be missing native code for the ABIs supported by the device, or it requires a newer SDK version, etc. Starting in Build.VERSION_CODES.UPSIDE_DOWN_CAKE, an app with only 32-bit native code can still be installed on a device that supports both 64-bit and 32-bit ABIs. However, a warning dialog will be displayed when the app is launched.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE.

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.

FailureTimeout 8

The operation failed because it didn't complete within the specified timeout.

Android reference for android.content.pm.PackageInstaller.STATUS_FAILURE_TIMEOUT.

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