From 3f6de4a48201c9d56307be4188f64f7b563e693b Mon Sep 17 00:00:00 2001
From: Daniel Micay
Date: Sat, 16 Jan 2021 17:28:20 -0500
Subject: [PATCH] simpler to avoid using adb like the current guide
---
static/js/web-install.js | 18 ------------------
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 @@
-
+
@@ -125,10 +125,7 @@
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:
-
- Reboot to bootloader with ADB
+ 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: