Loading
Fix flash reliability: data transfer timing, reconnect, and max-download-size parsing
- Add 250ms settle delay after data transfer before reading device
response, preventing bootloaders from missing the OKAY acknowledgment
- Yield to browser event loop between USB transfer chunks so Chrome's
USB stack can process completion events
- Verify bytesWritten on every transferOut to catch partial writes early
- Add post-flash getvar synchronization barrier so the device finishes
internal processing before the next download begins
- Reset USB device before close during reconnect to abort dangling
transferIn calls left by timed-out reads
- Fix max-download-size parsing: detect 0x prefix for hex, otherwise
parse as decimal (matches AOSP fastboot behavior). Qualcomm ABL
returns decimal strings which were incorrectly parsed as hex,
inflating the limit from 768 MB to 34 GB and preventing sparse
image splitting.
- Increase flash cooldown from 1000ms to 2500ms
Signed-off-by:
Jackeagle <jackeagle102@gmail.com>