Exceptions

AdbCommandError

class simpleadb.adbprocess.AdbCommandError(device_id: str, output: str, called_process_error: Optional[CalledProcessError] = None)

Adb command error exception.

Raised when adb command failed or the process returns a non-zero exit status.

Parameters
  • device_id (str) – Device ID or Host address.

  • output (str) – Adb command process output.

  • called_process_error (Optional[CalledProcessError]) – Process failed exception.

AdbCommandTimeoutExpired

class simpleadb.adbprocess.AdbCommandTimeoutExpired(device_id: str, timeout_expired: TimeoutExpired)
Adb command timeout expired exception. Raised when adb command timeout

expired.

Parameters
  • device_id (str) – Device ID or Host address.

  • timeout_expired (TimeoutExpired) – Process failed.