de0u
Those are the correct code links.
de0u And if a user can provide the wrong file, some user will do so. Overall I can imagine that adding the feature could harm more users than would be helped.
This is not possible.
The web-install.js
code already has logic that, after the factory image file has been downloaded, ensures the file name is correct before proceeding with flashing.
https://github.com/GrapheneOS/grapheneos.org/blob/7a150800bd6d792ff69cd5655683297c05f43010/static/js/web-install.js#L291-L299
This alone already be sufficient enough. Additionally, fastboot.js
verifies the require board
value within the android-info.txt
file contained in a factory image file to ensure the destination device is correct.
https://github.com/kdrag0n/fastboot.js/blob/5b613332aa9d66cca5bebb49f147cd084a76c464/src/factory.ts#L131-L185
de0u I suspect it is possible to run a personally-tweaked copy of the installer on whichever browsers are able to run the official installer from the project web site.
The code changes seem easy, and this feature request could be implemented in a way that doesn't complicate the user experience. I'd make a custom installer myself, but I don't have another device to test the flash process on. I also don't know if there are limitations with loading HTML and JS locally using file://
. Those files might need to be served from an HTTP server to ensure correct behavior. That makes the process more complicated.