Disable UART during flashing

Co-authored-by: anupritaisno1 <www.anuprita804@gmail.com>
This commit is contained in:
flawedworld 2021-07-13 20:08:46 +00:00 committed by Daniel Micay
parent 0e2e39ad52
commit a3819e1050

View File

@ -217,6 +217,10 @@ async function flashRelease(setProgress) {
setProgress(`${userAction} ${userItem}...`, progress);
}
);
setProgress("Disabling UART...");
// See https://android.googlesource.com/platform/system/core/+/eclair-release/fastboot/fastboot.c#532
// for context as to why the trailing space is needed.
await device.runCommand("oem uart disable ");
} finally {
safeToLeave = true;
}