Show devices in target selection dropdown & improve error handling
Thanks to this CL we are able to show the android devices
connected in the target selection dropdown list.
Now the last error from the record session is displayed, and after
an error the state of the UI is resetted, so that to be able to
start another trace.
Change-Id: I4093dd33dbe6436bbf3df3e856d575dc5bc8f403
diff --git a/ui/src/controller/adb_jsdomtest.ts b/ui/src/controller/adb_jsdomtest.ts
index f2b757f..83d05fd 100644
--- a/ui/src/controller/adb_jsdomtest.ts
+++ b/ui/src/controller/adb_jsdomtest.ts
@@ -19,7 +19,6 @@
AdbOverWebUsb,
AdbState,
DEFAULT_MAX_PAYLOAD_BYTES,
- VERSION_NO_CHECKSUM,
VERSION_WITH_CHECKSUM
} from './adb';
@@ -34,10 +33,10 @@
const expectedAuthMessage = AdbMsgImpl.create({
cmd: 'CNXN',
- arg0: VERSION_NO_CHECKSUM,
+ arg0: VERSION_WITH_CHECKSUM,
arg1: DEFAULT_MAX_PAYLOAD_BYTES,
data: 'host:1:UsbADB',
- useChecksum: false
+ useChecksum: true
});
await adb.startAuthentication();
@@ -60,7 +59,7 @@
arg0: VERSION_WITH_CHECKSUM,
arg1: expectedMaxPayload,
data: new TextEncoder().encode('device'),
- useChecksum: false
+ useChecksum: true
});
await adb.onMessage(connectedMsg);