Erase msadp on Qualcomm devices
This commit is contained in:
parent
e7c7978ee4
commit
ac256a43bb
@ -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 qualcommDevices = ["barbet", "redfin", "bramble", "sunfish", "coral", "flame", "bonito", "sargo", "crosshatch", "blueline"];
|
||||||
|
|
||||||
|
const legacyQualcommDevices = ["sunfish", "coral", "flame", "bonito", "sargo", "crosshatch", "blueline"];
|
||||||
|
|
||||||
const gs101Devices = ["raven", "oriole"];
|
const gs101Devices = ["raven", "oriole"];
|
||||||
|
|
||||||
async function getLatestRelease() {
|
async function getLatestRelease() {
|
||||||
@ -231,6 +233,11 @@ async function flashRelease(setProgress) {
|
|||||||
await device.runCommand("erase:apdp_a");
|
await device.runCommand("erase:apdp_a");
|
||||||
await device.runCommand("erase:apdp_b");
|
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)) {
|
if (gs101Devices.includes(product)) {
|
||||||
setProgress("Disabling FIPS...");
|
setProgress("Disabling FIPS...");
|
||||||
await device.runCommand("erase:fips");
|
await device.runCommand("erase:fips");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user