Command.CustomAppOperationStatus.OperationStatus

enum Command.CustomAppOperationStatus.OperationStatus


Current status of the operation.

Summary

Enum Values

OPERATION_STATUS_UNSPECIFIED

Unspecified.

STATUS_FAILURE

The operation failed in a generic way.

STATUS_FAILURE_ABORTED

The operation failed because it was actively aborted.

STATUS_FAILURE_APP_NOT_FOUND

The operation failed because the app was not found.

STATUS_FAILURE_BLOCKED

The operation failed because it was blocked.

STATUS_FAILURE_CONFLICT

The operation failed because it conflicts (or is inconsistent with) with another package already installed on the device.

STATUS_FAILURE_INCOMPATIBLE

The operation failed because it is fundamentally incompatible with this device.

STATUS_FAILURE_INCOMPATIBLE_CERTIFICATES

The operation failed because of incompatible certificates.

STATUS_FAILURE_INVALID

The operation failed because the APK was invalid.

STATUS_FAILURE_INVALID_PACKAGE_URI

The operation failed because the package URI is not a content URI.

STATUS_FAILURE_NOT_CUSTOM

The operation failed because the package name is not specified in the [`ApplicationPolicy`][https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#applicationpolicy] with `installType` set to `CUSTOM`.

STATUS_FAILURE_STORAGE

The operation failed because of storage issues.

STATUS_FAILURE_SYSTEM_APP

The operation failed because the app is a system app and cannot be installed/uninstalled.

STATUS_SUCCESS

The operation succeeded.

STATUS_UNKNOWN

The operation status is unknown to Android Management API.

Public functions

java-static Command.CustomAppOperationStatus.OperationStatus!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<Command.CustomAppOperationStatus.OperationStatus!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

STATUS_FAILURE

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURECommand.CustomAppOperationStatus.OperationStatus

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.

See also `statusMessage`.

STATUS_FAILURE_ABORTED

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_ABORTEDCommand.CustomAppOperationStatus.OperationStatus

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

STATUS_FAILURE_APP_NOT_FOUND

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_APP_NOT_FOUNDCommand.CustomAppOperationStatus.OperationStatus

The operation failed because the app was not found.

STATUS_FAILURE_BLOCKED

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_BLOCKEDCommand.CustomAppOperationStatus.OperationStatus

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 `otherPackageName` with the specific package blocking the install.

STATUS_FAILURE_CONFLICT

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_CONFLICTCommand.CustomAppOperationStatus.OperationStatus

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 `otherPackageName` with the specific package identified as the cause of the conflict.

STATUS_FAILURE_INCOMPATIBLE

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_INCOMPATIBLECommand.CustomAppOperationStatus.OperationStatus

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.

See also `statusMessage`.

STATUS_FAILURE_INCOMPATIBLE_CERTIFICATES

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_INCOMPATIBLE_CERTIFICATESCommand.CustomAppOperationStatus.OperationStatus

The operation failed because of incompatible certificates. This could happen if the certificate in the [`ApplicationPolicy`][https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#applicationpolicy] does not match the certificate of the app.

STATUS_FAILURE_INVALID

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_INVALIDCommand.CustomAppOperationStatus.OperationStatus

The operation failed because the APK was invalid. For example, it might be malformed, corrupt, incorrectly signed, mismatched, etc.

See also `statusMessage`.

STATUS_FAILURE_INVALID_PACKAGE_URI

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_INVALID_PACKAGE_URICommand.CustomAppOperationStatus.OperationStatus

The operation failed because the package URI is not a content URI.

STATUS_FAILURE_NOT_CUSTOM

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_NOT_CUSTOMCommand.CustomAppOperationStatus.OperationStatus

The operation failed because the package name is not specified in the [`ApplicationPolicy`][https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#applicationpolicy] with `installType` set to `CUSTOM`.

STATUS_FAILURE_STORAGE

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_STORAGECommand.CustomAppOperationStatus.OperationStatus

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 `storagePath` with the path to the storage device that caused the failure.

STATUS_FAILURE_SYSTEM_APP

val Command.CustomAppOperationStatus.OperationStatus.STATUS_FAILURE_SYSTEM_APPCommand.CustomAppOperationStatus.OperationStatus

The operation failed because the app is a system app and cannot be installed/uninstalled.

STATUS_UNKNOWN

val Command.CustomAppOperationStatus.OperationStatus.STATUS_UNKNOWNCommand.CustomAppOperationStatus.OperationStatus

The operation status is unknown to Android Management API.

Public functions

valueOf

java-static fun valueOf(name: String!): Command.CustomAppOperationStatus.OperationStatus!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
Command.CustomAppOperationStatus.OperationStatus!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<Command.CustomAppOperationStatus.OperationStatus!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<Command.CustomAppOperationStatus.OperationStatus!>!

an array containing the constants of this enum type, in the order they're declared