Fix flash_device when used with pontis.

local_flashstation expects a real serial number, not an endpoint. Work
around this by grabbing the serial number in get_device_info() if a
remote endpoint is detected.

Note this fixes flashing, but waiting for adb will still fail if
flash_device was used over a remote fastboot connection.

Bug: N/A
Test: flash_device with fastboot or adb over pontis
Change-Id: I45dbb8489d52269f5ec00f0f87ceb57b9c4b98ec
1 file changed
tree: e6951a80553ae60d9f5e2270897fb43bec2029b4
  1. net/
  2. tools/
  3. METADATA