diff options
author | Dees_Troy <dees_troy@teamw.in> | 2013-05-04 14:39:56 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@yahoo.com> | 2013-06-22 23:16:55 +0200 |
commit | 83bd483f3db1df4b69c1612030e1a1be05b303ad (patch) | |
tree | d5c7b468b831244bfcd90aadda98b9d359d0d280 /twrp-functions.hpp | |
parent | Fix building of updater binary (diff) | |
download | android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.tar android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.tar.gz android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.tar.bz2 android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.tar.lz android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.tar.xz android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.tar.zst android_bootable_recovery-83bd483f3db1df4b69c1612030e1a1be05b303ad.zip |
Diffstat (limited to 'twrp-functions.hpp')
-rw-r--r-- | twrp-functions.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp index 8e31e4242..9f6662181 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -50,6 +50,11 @@ public: static bool Fix_su_Perms(void); // sets proper permissions for su binaries and superuser apk static int tw_chmod(string fn, string mode); // chmod function that converts a 4 char string into st_mode automatically static bool Install_SuperSU(void); // Installs su binary and apk and sets proper permissions + static vector<string> split_string(const string &in, char del, bool skip_empty); + static int Get_File_Type(string fn); // Determines file type, 0 for unknown, 1 for gzip, 2 for OAES encrypted + static int Try_Decrypting_File(string fn, string password); // -1 for some error, 0 for failed to decrypt, 1 for decrypted, 3 for decrypted and found gzip format + static bool Try_Decrypting_Backup(string Restore_Path, string Password); // true for success, false for failed to decrypt + static int Wait_For_Child(pid_t pid, int *status, string Child_Name); // Waits for pid to exit and checks exit status private: static void Copy_Log(string Source, string Destination); |