diff options
author | Vojtech Bocek <vbocek@gmail.com> | 2014-07-03 15:22:41 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-07-09 15:57:59 +0200 |
commit | 67351dca6670d3566405cb8e610f73a1550d282b (patch) | |
tree | 5e2cb4066451c92adbbee25fb880248d5d4cd05c /twrp.cpp | |
parent | Change ro.twrp.boot boolean to twrp.crash_counter (diff) | |
download | android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.tar android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.tar.gz android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.tar.bz2 android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.tar.lz android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.tar.xz android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.tar.zst android_bootable_recovery-67351dca6670d3566405cb8e610f73a1550d282b.zip |
Diffstat (limited to 'twrp.cpp')
-rw-r--r-- | twrp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -273,7 +273,8 @@ int main(int argc, char **argv) { DataManager::ReadSettingsFile(); // Fixup the RTC clock on devices which require it - TWFunc::Fixup_Time_On_Boot(); + if(crash_counter == 0) + 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))) { |