Force zip verification in OEM builds
Change-Id: Ie894b5f5cda64f83b1bb58bb977024230b0337f2
diff --git a/twinstall.cpp b/twinstall.cpp
index 4b055a3..d95efed 100644
--- a/twinstall.cpp
+++ b/twinstall.cpp
@@ -252,7 +252,7 @@
}
extern "C" int TWinstall_zip(const char* path, int* wipe_cache) {
- int ret_val, zip_verify, md5_return, key_count;
+ int ret_val, zip_verify = 1, md5_return, key_count;
twrpDigest md5sum;
string strpath = path;
ZipArchive Zip;
@@ -269,7 +269,9 @@
} else if (md5_return == 0)
gui_print("Zip MD5 matched.\n"); // MD5 found and matched.
+#ifndef TW_OEM_BUILD
DataManager::GetValue(TW_SIGNED_ZIP_VERIFY_VAR, zip_verify);
+#endif
DataManager::SetProgress(0);
if (zip_verify) {
gui_print("Verifying zip signature...\n");