def Devices(args):
  """Lists the available devices.

  Mimics 'adb devices' output:
    List of devices attached
    015DB7591102001A        device        1,2
  """
  for d in adb_commands.AdbCommands.Devices():
    if args.output_port_path:
      print('%s\tdevice\t%s' % (
            d.serial_number, ','.join(str(p) for p in d.port_path)))
    else:
      print('%s\tdevice' % d.serial_number)
  return 0
dataset/ETHPy150Open google/python-adb/adb/adb_debug.py/Devices/original