After applying the fix in github.com/webadb/webadb., webadb.js is usable for fastboot.
It's a very incomplete implementation compared to the adb support but at least it appears to deal with the protocol framing.
Not going to be as much painful low-level work as I expected for it.
Conversation
Replying to
is that actually needed? AFAIK fastbootd doesn't require a protocol reset and neither should the bootloader impls
1
(I ask because I hacked something together using webusb for DFU which *does* requires a USB reset, and on windows, the winusb driver doesn't actually support reset, so the webusb call will always fail)
1
Replying to
It does appear to be needed on Linux, and yeah, it appears to cause problems on Windows. Not sure what we need to do about that.
1
Maybe the exception just needs to be caught... It definitely doesn't work properly without this on Linux from my testing.

