Adb Class

class adbpy.adb.Adb(address=None, adb_path='adb')[source]
address

The address of the ADB server in the form (host, port)

devices()[source]

Return a list of connected devices in the form (serial, status) where status can be any of the following:

  1. device
  2. offline
  3. unauthorized
Returns:A list of tuples representing connected devices
get_product(target='any')[source]

Get the product name corresponding to target.

Returns:The product name
get_serialno(target='any')[source]

Get the serial number of target

Returns:The serial number
kill()[source]

Kill the current ADB server.

Returns:True if the ADB server was killed.
start()[source]

Start the ADB server on the port specified in Adb.address during initialization. Throws an error if the server doesn’t actually start on the expected port.

Raises:AdbError
version()[source]

Get the version of the ADB server (for example 1.0.31).

Returns:The version of the ADB server (ex.