From 713b4ef564ad41d42b1d1d8a83753a9684f26001 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Fri, 22 Jan 2021 20:14:00 -0800 Subject: Implement web install using fastboot.js This implements the WebUSB-based web installer using fastboot.js to act as a fastboot client. A bare minimum UI with a plain-text status/progress caption for each step is included, as well as a plain button to trigger it and basic error handling. WebADB has been removed now that we are only using fastboot.js. Initial features: - Unlocking and locking the bootloader - Downloading the latest GrapheneOS release available for the device - Flashing the factory images zip - Reusing USB connections --- static/web-install.html | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'static/web-install.html') diff --git a/static/web-install.html b/static/web-install.html index 8834e0fd..3c3023de 100644 --- a/static/web-install.html +++ b/static/web-install.html @@ -26,8 +26,12 @@ - - + + + + + +
@@ -129,11 +133,13 @@

Unlock the bootloader to allow flashing the OS and firmware:

- +

The command needs to be confirmed on the device and will wipe all data. Use one of the volume keys to switch the selection to accepting it and the power button to confirm.

+ +

@@ -144,9 +150,9 @@

Press the button below to start the download:

- + -

Download not implemented yet.

+

@@ -155,14 +161,13 @@

The initial install will be performed by flashing the factory images. This will replace the existing OS installation and wipe all the existing data.

-

Needs to be implemented based on extracting and flashing images from - the downloaded zip (or a split approach to downloading files).

- - +

Wait for the flashing process to complete and proceed to locking the bootloader before using the device as locking wipes the data again.

+ +

@@ -177,11 +182,13 @@

In the bootloader interface, set it to locked:

- +

The command needs to be confirmed on the device and will wipe all data. Use one of the volume buttons to switch the selection to accepting it and the power button to confirm.

+ +

-- cgit v1.3.1