From 3f6de4a48201c9d56307be4188f64f7b563e693b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 16 Jan 2021 17:28:20 -0500 Subject: simpler to avoid using adb like the current guide --- static/js/web-install.js | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'static/js') 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; -- cgit v1.3.1