summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2018-07-27 18:49:24 +0200
committerDees Troy <dees_troy@teamw.in>2018-07-27 19:03:09 +0200
commita344ac6f2660ef29fc37609b8e67399c3fdedeb1 (patch)
tree4f167700e7f715b3d59394ded9d76ee893a72a01
parentFix ld.config.txt errors on Android 8.1 system root devices (diff)
downloadandroid_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.tar
android_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.tar.gz
android_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.tar.bz2
android_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.tar.lz
android_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.tar.xz
android_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.tar.zst
android_bootable_recovery-a344ac6f2660ef29fc37609b8e67399c3fdedeb1.zip
-rw-r--r--twrp.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}