FailureReason

The server's structured reason for a failed call (ServerException.reason). UNSPECIFIED means the failure did not come from the daemon (a transport failure, a proxy, a cancelled call) or carried a reason this client version does not know.

Entries

Link copied to clipboard
Link copied to clipboard

A bug in the daemon or host core. Report it with the daemon log.

Link copied to clipboard

Caller input the daemon rejected before doing anything.

Link copied to clipboard

Missing or wrong daemon token.

Link copied to clipboard

The client connection is not (or no longer) known to the daemon.

Link copied to clipboard

The attached device is not (or no longer) attached.

Link copied to clipboard

The device is attached by another client connection.

Link copied to clipboard

Another session holds the device's lock (DeviceBusyException).

Link copied to clipboard

The device's journal keeps it out of service (DeviceQuarantinedException).

Link copied to clipboard

A host-side wait (app process, window, idle) ran out of time (WaitTimeoutException).

Link copied to clipboard

An ADB command did not finish within its timeout.

Link copied to clipboard

An ADB command failed.

Link copied to clipboard

An ADB command left an uncertain residual; the device may have changed.

Link copied to clipboard

An app lifecycle postcondition did not hold (AppLifecycleException).

Link copied to clipboard

The installed driver is not the build this daemon expects.

Link copied to clipboard

The driver could not be started or authenticated.

Link copied to clipboard

The driver connection was lost around a host-issued command.

Link copied to clipboard

A host-issued driver command failed.

Link copied to clipboard

The session can no longer run operations: detach and attach again.

Link copied to clipboard

The daemon cannot serve the request in its current state.

Link copied to clipboard

The ref is not in the attached device's latest screen snapshot.

Link copied to clipboard

The ref's node had no selector that matched it alone.

Link copied to clipboard

The device's API level is too low for the call (detail REQUIRES_API_<n>).

Link copied to clipboard

A device setting did not read back as written (or could not be restored).

Link copied to clipboard

A device file was not written or read as asked: it exists and this device handle did not create it, its directory is missing, it is not a regular file, or it did not read back.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

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