diff --git a/static/js/web-install.js b/static/js/web-install.js index 85cd195b..eaebe471 100644 --- a/static/js/web-install.js +++ b/static/js/web-install.js @@ -1,19 +1,5 @@ // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT -async function adbRebootBootloader() { - const webusb = await Adb.open("WebUSB"); - - if (!webusb.isAdb()) { - console.log("error: not in adb mode"); - return; - } - - console.log("connecting with adb"); - - const adb = await webusb.connectAdb("host::"); - await adb.reboot("bootloader"); -} - async function unlockBootloader() { const webusb = await Adb.open("WebUSB"); @@ -75,10 +61,6 @@ async function lockBootloader() { if ("usb" in navigator) { console.log("WebUSB available"); - const adbRebootBootloaderButton = document.getElementById("adb-reboot-bootloader"); - adbRebootBootloaderButton.disabled = false; - adbRebootBootloaderButton.onclick = adbRebootBootloader; - const unlockBootloaderButton = document.getElementById("unlock-bootloader"); unlockBootloaderButton.disabled = false; unlockBootloaderButton.onclick = unlockBootloader; diff --git a/static/web-install.html b/static/web-install.html index a7cf99b1..695fe3f4 100644 --- a/static/web-install.html +++ b/static/web-install.html @@ -27,7 +27,7 @@ - +
@@ -125,10 +125,7 @@

Unlocking the bootloader

First, boot into the bootloader interface. You can do this by turning off the - device and then turning it on by holding both the Volume Down and Power buttons. - Alternatively, use ADB to reboot to the bootloader with the button below:

- - + device and then turning it on by holding both the Volume Down and Power buttons.

Unlock the bootloader to allow flashing the OS and firmware: