Commit 011c79d8 authored by Dennis Rassmann's avatar Dennis Rassmann

flasher: fastboot: erase cache after flashing boot.img

Signed-off-by: Dennis Rassmann's avatarshowp1984 <showp1984@gmail.com>
parent 48e6a7ee
......@@ -667,7 +667,25 @@ qDebug() << p_out;
}
}
ui->txt_out->append("boot.img flashed...");
ui->txt_out->append("Rebooting device...");
ui->txt_out->append(" ");
p.terminate();
p_out = "";
#ifdef Q_WS_X11
p.start( "tools/fastboot -p " + device + " erase cache");
#endif
#ifdef Q_WS_MAC
p.start( "tools/fastboot-mac -p " + device + " erase cache");
#endif
#ifdef Q_WS_WIN
p.start( "tools\\fastboot.exe -p " + device + " erase cache");
#endif
p.waitForFinished(-1);
p_out = p.readAllStandardOutput();
if (!p_out.isEmpty()) {
ui->txt_out->append(p_out);
}
ui->txt_out->append(" ");
p.terminate();
p_out = "";
#ifdef Q_WS_X11
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment