@classmethod
  def ConnectDevice(
      cls, port_path=None, serial=None, default_timeout_ms=None, chunk_kb=1024):
    usb = common.UsbHandle.FindAndOpen(
        DeviceIsAvailable, port_path=port_path, serial=serial,
        timeout_ms=default_timeout_ms)
    return cls(usb, chunk_kb=chunk_kb)
Convenience function to get an adb device from usb path or serial.
dataset/ETHPy150Open google/python-adb/adb/fastboot.py/FastbootCommands.ConnectDevice