summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2014-03-11 19:40:34 +0100
committerVojtech Bocek <vbocek@gmail.com>2014-03-11 19:40:34 +0100
commit2005a84b24467816ac5277cacc0bfa397aa7ae7f (patch)
tree76e1d05a31f0d431d8510d0f46d45e2ca26cbcfb /twrp.cpp
parentCheck to ensure that selinux_handle is populated before using (diff)
downloadandroid_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.tar
android_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.tar.gz
android_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.tar.bz2
android_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.tar.lz
android_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.tar.xz
android_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.tar.zst
android_bootable_recovery-2005a84b24467816ac5277cacc0bfa397aa7ae7f.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 230e1b40c..ec87dd5e7 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -264,13 +264,15 @@ int main(int argc, char **argv) {
// Read the settings file
DataManager::ReadSettingsFile();
+
+ // Fixup the RTC clock on devices which require it
+ 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))) {
OpenRecoveryScript::Run_OpenRecoveryScript();
}
- TWFunc::Fixup_Time_On_Boot();
-
// Launch the main GUI
gui_start();