(TMP) (SHIFT) Recovery: always allow downgrading
Change-Id: Ifb5e305ac2cbb0f72ea4600f243608e36d701510
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/recovery.cpp b/recovery.cpp
index ee03218..496a2ee 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -191,21 +191,29 @@
}
bool ask_to_continue_downgrade(Device* device) {
+#if 0
if (get_build_type() == "user") {
return false;
} else {
+#endif
device->GetUI()->SetProgressType(RecoveryUI::EMPTY);
return yes_no(device, "This package will downgrade your system", "Install anyway?");
+#if 0
}
+#endif
}
bool ask_to_continue_spl_downgrade(Device* device) {
+#if 0
if (get_build_type() == "user") {
return false;
} else {
+#endif
device->GetUI()->SetProgressType(RecoveryUI::EMPTY);
return yes_no(device, "This package will downgrade your SPL, which may cause data loss", "Install anyway?");
+#if 0
}
+#endif
}
static bool ask_to_wipe_data(Device* device) {