adb_shell.exceptions module
ADB-related exceptions.
- exception adb_shell.exceptions.AdbCommandFailureException[source]
Bases:
Exception
A
b'FAIL'
packet was received.
- exception adb_shell.exceptions.AdbConnectionError[source]
Bases:
Exception
ADB command not sent because a connection to the device has not been established.
- exception adb_shell.exceptions.AdbTimeoutError[source]
Bases:
Exception
ADB command did not complete within the specified time.
- exception adb_shell.exceptions.DeviceAuthError(message, *args)[source]
Bases:
Exception
Device authentication failed.
- exception adb_shell.exceptions.DevicePathInvalidError[source]
Bases:
Exception
A file command was passed an invalid path.
- exception adb_shell.exceptions.InvalidChecksumError[source]
Bases:
Exception
Checksum of data didn’t match expected checksum.
- exception adb_shell.exceptions.InvalidCommandError[source]
Bases:
Exception
Got an invalid command.
- exception adb_shell.exceptions.InvalidResponseError[source]
Bases:
Exception
Got an invalid response to our command.
- exception adb_shell.exceptions.InvalidTransportError[source]
Bases:
Exception
The provided transport does not implement the necessary methods:
close
,connect
,bulk_read
, andbulk_write
.
- exception adb_shell.exceptions.PushFailedError[source]
Bases:
Exception
Pushing a file failed for some reason.
- exception adb_shell.exceptions.TcpTimeoutException[source]
Bases:
Exception
TCP connection timed read/write operation exceeded the allowed time.
- exception adb_shell.exceptions.UsbReadFailedError(msg, usb_error)[source]
Bases:
Exception
TODO
- Parameters:
msg (str) – The error message
usb_error (libusb1.USBError) – An exception from
libusb1
- usb_error
An exception from
libusb1
- Type:
libusb1.USBError
- exception adb_shell.exceptions.UsbWriteFailedError[source]
Bases:
Exception
adb_shell.transport.usb_transport.UsbTransport.bulk_write()
failed.