summaryrefslogtreecommitdiffstats
path: root/twrp-functions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'twrp-functions.hpp')
-rwxr-xr-x[-rw-r--r--]twrp-functions.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/twrp-functions.hpp b/twrp-functions.hpp
index 0efbdc947..7847aed4a 100644..100755
--- a/twrp-functions.hpp
+++ b/twrp-functions.hpp
@@ -26,6 +26,9 @@
using namespace std;
+#define NON_AB_CACHE_DIR "/cache/"
+#define AB_CACHE_DIR "/data/cache/"
+
typedef enum
{
rb_current = 0,
@@ -99,6 +102,8 @@ public:
static void copy_kernel_log(string curr_storage); // Copy Kernel Log to Current Storage (PSTORE/KMSG)
static bool isNumber(string strtocheck); // return true if number, false if not a number
static int stream_adb_backup(string &Restore_Name); // Tell ADB Backup to Stream to TWRP from GUI selection
+ static std::string get_cache_dir(); // return the cache partition existence
+ static void check_selinux_support(); // print whether selinux support is enabled to console
private:
static void Copy_Log(string Source, string Destination);