adb_shell.transport.base_transport module
A base class for transports used to communicate with a device.
- class adb_shell.transport.base_transport.BaseTransport[source]
Bases:
ABC
A base transport class.
- _abc_impl = <_abc._abc_data object>
- abstract bulk_read(numbytes, transport_timeout_s)[source]
Read data from the device.
- Parameters:
numbytes (int) – The maximum amount of data to be received
transport_timeout_s (float, None) – A timeout for the read operation
- Returns:
The received data
- Return type:
bytes