[FP4S-562][5] workaround for "mfg_util --do_factoryreset"
* FACTORY RESET
* 1. user selects "factory reset" in MMITest.
* 2. after "factory reset", run "mfg_util --do_factoryreset" command to
check
* if user has skipped SetupWizard, command will shows failed.
Change-Id: I14e94e9f8a190ce9c6d4c6cfb516a68732350144
diff --git a/recovery.cpp b/recovery.cpp
index 549013e..f763079 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -921,11 +921,11 @@
} else {
//+ FP4S-562, workaround for "mfg_util --do_factoryreset"
//ui->ShowText(true);
- ui->Print("reason is [%s]\n", device->GetReason().value_or("").c_str());
+ //ui->Print("reason is [%s]\n", device->GetReason().value_or("").c_str());
bool is_mmitest = android::base::StartsWith(device->GetReason().value(), "MMITest");
if (is_mmitest) {
ui->Print("reason is MMITest.\n");
- if(set_mmitest_factory_reset_flag(ui)) {
+ if(!set_mmitest_factory_reset_flag(ui)) {
status = INSTALL_ERROR;
}
} else {