diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-01-16 17:28:20 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-16 17:28:51 -0500 |
| commit | 3f6de4a48201c9d56307be4188f64f7b563e693b (patch) | |
| tree | e95a4051aa615605bc4943ad7275851efb97448c /static | |
| parent | 3a6ea83559cd172105c669068110c9d2dfc62f10 (diff) | |
simpler to avoid using adb like the current guide
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/web-install.js | 18 | ||||
| -rw-r--r-- | static/web-install.html | 7 |
2 files changed, 2 insertions, 23 deletions
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 @@ <link rel="manifest" href="/manifest.webmanifest"/> <link rel="license" href="/LICENSE.txt"/> <script defer="defer" src="/js/webadb.js?0"></script> - <script defer="defer" src="/js/web-install.js?0"></script> + <script defer="defer" src="/js/web-install.js?1"></script> </head> <body> <header> @@ -125,10 +125,7 @@ <h2><a href="#unlocking-the-bootloader">Unlocking the bootloader</a></h2> <p>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:</p> - - <button id="adb-reboot-bootloader" disabled="disabled">Reboot to bootloader with ADB</button> + device and then turning it on by holding both the Volume Down and Power buttons.</p> <p>Unlock the bootloader to allow flashing the OS and firmware:</p> |
