Normalized digest check before installing zip

Change-Id: I5a3e82f103e7a80800be7790f1c8dc33c76413da
(cherry picked from commit 646f4f0c66a918f12e12784b22e7dc9a89837c37)
This commit is contained in:
epicX
2021-03-20 21:58:17 +05:30
committed by bigbiff
parent 2e344ab7fb
commit 9597b840bc
13 changed files with 98 additions and 57 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ int GUIAction::flash_zip(std::string filename, int* wipe_cache)
if (simulate) {
simulate_progress_bar();
} else {
ret_val = TWinstall_zip(filename.c_str(), wipe_cache, (bool) DataManager::GetIntValue(TW_SKIP_DIGEST_CHECK_VAR));
ret_val = TWinstall_zip(filename.c_str(), wipe_cache, (bool) !DataManager::GetIntValue(TW_SKIP_DIGEST_CHECK_ZIP_VAR));
PartitionManager.Unlock_Block_Partitions();
// Now, check if we need to ensure TWRP remains installed...
struct stat st;