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
It will need to identify the device model, download the correct factory image zip, extract images and metadata from the zip and feed the right commands / data into the fastboot protocol. Needs an implementation of guiding the user through the locking / unlocking workflow too.
2
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
Show replies
Show more replies

