diff options
author | Dees_Troy <dees_troy@teamw.in> | 2013-01-30 22:00:05 +0100 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2013-01-30 22:00:05 +0100 |
commit | e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023 (patch) | |
tree | f8ee13ef845df07635e1bb186fe49082a7ee0ea2 | |
parent | Change version to 2.4.0.0 (diff) | |
download | android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.tar android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.tar.gz android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.tar.bz2 android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.tar.lz android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.tar.xz android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.tar.zst android_bootable_recovery-e2c8ba75eb908b0e8a370a2c24ebd54e9f06a023.zip |
Diffstat (limited to '')
-rw-r--r-- | twinstall.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/twinstall.cpp b/twinstall.cpp index 86a0979a3..40d715564 100644 --- a/twinstall.cpp +++ b/twinstall.cpp @@ -260,7 +260,7 @@ exit: } extern "C" int TWinstall_zip(const char* path, int* wipe_cache) { - int err, zip_verify, md5_return, md5_verify; + int err, zip_verify, md5_return; ui_print("Installing '%s'...\n", path); @@ -276,13 +276,7 @@ extern "C" int TWinstall_zip(const char* path, int* wipe_cache) { LOGE("Zip MD5 does not match.\nUnable to install zip.\n"); return INSTALL_CORRUPT; } else if (md5_return == -1) { - DataManager::GetValue(TW_FORCE_MD5_CHECK_VAR, md5_verify); - if (md5_verify == 1) { - // Forced MD5 checking is on and no MD5 file found. - LOGE("No MD5 file found for '%s'.\nDisable force MD5 check to avoid this error.\n", path); - return INSTALL_CORRUPT; - } else - ui_print("Skipping MD5 check: no MD5 file found.\n"); + ui_print("Skipping MD5 check: no MD5 file found.\n"); } else if (md5_return == 1) ui_print("Zip MD5 matched.\n"); // MD5 found and matched. |