summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
diff options
context:
space:
mode:
authorxNUTx <nut@fun-industries.nl>2014-07-18 01:30:58 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-08-10 15:57:14 +0200
commite85f02dd9186079cf67a4d3e7d1657d248e28963 (patch)
tree839ccd8f8a2c9c67c33f84b6c96ec38405939c11 /twrp-functions.hpp
parentTW_SCREEN_BLANK_ON_BOOT will jolt the screen/touch driver. (diff)
downloadandroid_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.tar
android_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.tar.gz
android_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.tar.bz2
android_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.tar.lz
android_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.tar.xz
android_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.tar.zst
android_bootable_recovery-e85f02dd9186079cf67a4d3e7d1657d248e28963.zip
Diffstat (limited to 'twrp-functions.hpp')
-rw-r--r--twrp-functions.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index a0c715195..5f46d4ff4 100644
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -70,6 +70,7 @@ public:
static int32_t timespec_diff_ms(timespec& start, timespec& end); // Returns diff in ms
static int read_file(string fn, vector<string>& results); //read from file
static int read_file(string fn, string& results); //read from file
+ static int read_file(string fn, uint64_t& results); //read from file
static int write_file(string fn, string& line); //write from file
static int drop_caches(void); //drop linux cache memory
static int Check_su_Perms(void); // check perms and owner of su binary in various locations
@@ -83,6 +84,7 @@ public:
static void Fixup_Time_On_Boot(); // Fixes time on devices which need it
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 ;)
private:
static void Copy_Log(string Source, string Destination);