From a344ac6f2660ef29fc37609b8e67399c3fdedeb1 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 27 Jul 2018 11:49:24 -0500 Subject: Fix installing OTAs without decrypting Change-Id: Ica0c4033bc7148b1313b1671e91c5b92b09064c6 --- twrp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp.cpp') diff --git a/twrp.cpp b/twrp.cpp index c6b9fda7f..3102efdc0 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -304,7 +304,7 @@ int main(int argc, char **argv) { TWFunc::Fixup_Time_On_Boot(); // Run any outstanding OpenRecoveryScript - if (DataManager::GetIntValue(TW_IS_ENCRYPTED) == 0 && (TWFunc::Path_Exists(SCRIPT_FILE_TMP) || TWFunc::Path_Exists(SCRIPT_FILE_CACHE))) { + if ((DataManager::GetIntValue(TW_IS_ENCRYPTED) == 0 || SkipDecryption) && (TWFunc::Path_Exists(SCRIPT_FILE_TMP) || TWFunc::Path_Exists(SCRIPT_FILE_CACHE))) { OpenRecoveryScript::Run_OpenRecoveryScript(); } -- cgit v1.2.3