pex.proto.adb.client
¶
Module Contents¶
- class pex.proto.adb.client.ADBClient(host: str, port: int, timeout: int = 10)¶
Bases:
object
Subclass of pex.proto.adb module.
This subclass of pex.proto.adb module represents the Python implementation of the Android Debug Bridge client.
- connect() None ¶
Connect to the socket pair.
- Return None:
None
- Raises:
RuntimeError – with trailing error message
- disconnect() None ¶
Disconnect the socket.
- Return None:
None
- send_command(command: str) str ¶
Send command to the socket.
- Parameters:
command (str) – command to send
- Return str:
command output
- Raises:
RuntimeError – with trailing error message