diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-04-14 15:59:35 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-04-15 15:27:00 +0200 |
commit | d5801c5fe2c1ad72162259c6f1ba79fdd14128e7 (patch) | |
tree | f334cdb39ce622d858129415e325d0205bd47f91 /twinstall.cpp | |
parent | Add find file class to search for files (diff) | |
download | android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.tar android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.tar.gz android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.tar.bz2 android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.tar.lz android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.tar.xz android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.tar.zst android_bootable_recovery-d5801c5fe2c1ad72162259c6f1ba79fdd14128e7.zip |
Diffstat (limited to 'twinstall.cpp')
-rw-r--r-- | twinstall.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/twinstall.cpp b/twinstall.cpp index 4b055a3aa..d95efed13 100644 --- a/twinstall.cpp +++ b/twinstall.cpp @@ -252,7 +252,7 @@ static int Run_Update_Binary(const char *path, ZipArchive *Zip, int* wipe_cache) } 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 @@ extern "C" int TWinstall_zip(const char* path, int* wipe_cache) { } 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"); |