allow specification of WebUSB instance to support non-browser environments #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Similar to your (@kdrag0n) webinstaller, I try to develop an more universal installer supporting a wider range of devices and other ROMS like Lineage.
for easier development (and some people would even prefer it) I first did a CLI variant using
fastboot.js
in node, which didn't work out of the box.One obstacle is, that this project expects
navigator.usb
to be present, which makes it difficult to use WebUSB implementation in node like (e.g npm:usb)Full node support still not given due to following other expectations, which are not handled in this PR:
Blob
requiredcrypto
requiredProgressEvent
required[email protected]
doesn't support node