summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2017-12-16 15:26:42 +0100
committerDees Troy <dees_troy@teamw.in>2018-01-17 20:42:17 +0100
commit98fc399c2660727a6bde66e1a51e8460aaf3c7e7 (patch)
tree50626f61a9be342328cbdc46016427c893482cad /partition.cpp
parentMerge "Relink adbd needed in android 8.1" into android-8.1 (diff)
downloadandroid_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.gz
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.bz2
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.lz
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.xz
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.tar.zst
android_bootable_recovery-98fc399c2660727a6bde66e1a51e8460aaf3c7e7.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index 3957c6542..59bd16831 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -581,6 +581,18 @@ bool TWPartition::Process_Fstab_Line(const char *fstab_line, bool Display_Error,
Process_TW_Flags(flagptr, Display_Error, 1); // Forcing the fstab to ver 1 because this data is coming from the /etc/twrp.flags which should be using the TWRP v1 flags format
}
}
+
+ if (Mount_Point == "/persist" && Can_Be_Mounted) {
+ bool mounted = Is_Mounted();
+ if (mounted || Mount(false)) {
+ // Read the backup settings file
+ DataManager::LoadPersistValues();
+ TWFunc::Fixup_Time_On_Boot("/persist/time/");
+ if (!mounted)
+ UnMount(false);
+ }
+ }
+
return true;
}