summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2014-03-11 22:08:23 +0100
committerVojtech Bocek <vbocek@gmail.com>2014-03-13 14:55:12 +0100
commit05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f (patch)
treecc437d7f9e3166215dbbd973486ec6a43a590bab /twrp-functions.hpp
parentCheck to ensure that selinux_handle is populated before using (diff)
downloadandroid_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.tar
android_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.tar.gz
android_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.tar.bz2
android_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.tar.lz
android_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.tar.xz
android_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.tar.zst
android_bootable_recovery-05f87d6ccaa2d4666dd97cb1d2eeb88bd4e5306f.zip
Diffstat (limited to 'twrp-functions.hpp')
-rw-r--r--twrp-functions.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index 661ca02db..64a45f55b 100644
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -49,6 +49,7 @@ public:
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 unsigned long Get_File_Size(string Path); // Returns the size of a file
+ static std::string Remove_Trailing_Slashes(const std::string& path, bool leaveLast = false); // Normalizes the path, e.g /data//media/ -> /data/media
#ifndef BUILD_TWRPTAR_MAIN
static void install_htc_dumlock(void); // Installs HTC Dumlock