summaryrefslogtreecommitdiff
path: root/static/js/web-install.js
diff options
context:
space:
mode:
authorflawedworld <flawedworld@flawed.world>2021-12-17 22:03:36 +0000
committerDaniel Micay <danielmicay@gmail.com>2021-12-17 17:30:48 -0500
commitac256a43bb7341bdf7b96f6903509181c08f52b0 (patch)
treeb30e356d6eaf6b4cb2b48a3b6da7c66c89d3d59c /static/js/web-install.js
parente7c7978ee4702534f534e74f5c25c7af0532d9af (diff)
Erase msadp on Qualcomm devices
Diffstat (limited to 'static/js/web-install.js')
-rw-r--r--static/js/web-install.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/static/js/web-install.js b/static/js/web-install.js
index 9de23fae..17dd1482 100644
--- a/static/js/web-install.js
+++ b/static/js/web-install.js
@@ -144,6 +144,8 @@ const supportedDevices = ["raven", "oriole", "barbet", "redfin", "bramble", "sun
const qualcommDevices = ["barbet", "redfin", "bramble", "sunfish", "coral", "flame", "bonito", "sargo", "crosshatch", "blueline"];
+const legacyQualcommDevices = ["sunfish", "coral", "flame", "bonito", "sargo", "crosshatch", "blueline"];
+
const gs101Devices = ["raven", "oriole"];
async function getLatestRelease() {
@@ -231,6 +233,11 @@ async function flashRelease(setProgress) {
await device.runCommand("erase:apdp_a");
await device.runCommand("erase:apdp_b");
}
+ if (legacyQualcommDevices.includes(product)) {
+ setProgress("Erasing msadp...");
+ await device.runCommand("erase:msadp_a");
+ await device.runCommand("erase:msadp_b");
+ }
if (gs101Devices.includes(product)) {
setProgress("Disabling FIPS...");
await device.runCommand("erase:fips");