

@classmethod
def Command(cls, usb, service, command='', timeout_ms=None):
    'One complete set of USB packets for a single command.\n\n    Sends service:command in a new connection, reading the data for the\n    response. All the data is held in memory, large responses will be slow and\n    can fill up memory.\n\n    Args:\n      usb: USB device handle with BulkRead and BulkWrite methods.\n      service: The service on the device to talk to.\n      command: The command to send to the service.\n      timeout_ms: Timeout for USB packets, in milliseconds.\n\n    Raises:\n      InterleavedDataError: Multiple streams running over usb.\n      InvalidCommandError: Got an unexpected response command.\n\n    Returns:\n      The response from the service.\n    '
    return ''.join(cls.StreamingCommand(usb, service, command, timeout_ms))

dataset/ETHPy150Open google/python-adb/adb/adb_protocol.py AdbMessage.Command/original