summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
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 /twrp-functions.hpp
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 'twrp-functions.hpp')
-rw-r--r--twrp-functions.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index 9c149ea18..a1f67f237 100644
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -88,7 +88,7 @@ public:
static string System_Property_Get(string Prop_Name); // Returns value of Prop_Name from reading /system/build.prop
static string Get_Current_Date(void); // Returns the current date in ccyy-m-dd--hh-nn-ss format
static void Auto_Generate_Backup_Name(); // Populates TW_BACKUP_NAME with a backup name based on current date and ro.build.display.id from /system/build.prop
- static void Fixup_Time_On_Boot(); // Fixes time on devices which need it
+ static void Fixup_Time_On_Boot(const string& time_paths = ""); // Fixes time on devices which need it (time_paths is a space separated list of paths to check for ats_* files)
static std::vector<std::string> Split_String(const std::string& str, const std::string& delimiter, bool removeEmpty = true); // Splits string by delimiter
static bool Create_Dir_Recursive(const std::string& path, mode_t mode = 0755, uid_t uid = -1, gid_t gid = -1); // Create directory and it's parents, if they don't exist. mode, uid and gid are set to all _newly_ created folders. If whole path exists, do nothing.
static int Set_Brightness(std::string brightness_value); // Well, you can read, it does what it says, passing return int from TWFunc::Write_File ;)