diff options
| author | flawedworld <flawedworld@flawed.world> | 2021-12-17 21:56:22 +0000 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-12-17 17:12:59 -0500 |
| commit | 5b46fb8036c7f400f88d69863ad6c77dcf4cd2fb (patch) | |
| tree | 1c9242941a71b0bf97f6782c4cd10b547c3bd4c3 /static/js/web-install.js | |
| parent | 408ace9b8765f8434da32ff5bd6ccc51c19fd768 (diff) | |
Erase FIPS partition on GS101 devices
Diffstat (limited to 'static/js/web-install.js')
| -rw-r--r-- | static/js/web-install.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/static/js/web-install.js b/static/js/web-install.js index 57f07643..9de23fae 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 gs101Devices = ["raven", "oriole"]; + async function getLatestRelease() { let product = await device.getVariable("product"); if (!supportedDevices.includes(product)) { @@ -229,6 +231,10 @@ async function flashRelease(setProgress) { await device.runCommand("erase:apdp_a"); await device.runCommand("erase:apdp_b"); } + if (gs101Devices.includes(product)) { + setProgress("Disabling FIPS..."); + await device.runCommand("erase:fips"); + } } finally { safeToLeave = true; } |
