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:
- device
- offline
- 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
-
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
-