Change handling of /cache due to AB devices not having cache
Change-Id: Ia9b97ed19eb3d400d9d399255108cac79361bca4
diff --git a/twrp.cpp b/twrp.cpp
index 3cd716f..3531279 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -153,7 +153,7 @@
{ // Check to ensure SELinux can be supported by the kernel
char *contexts = NULL;
- if (PartitionManager.Mount_By_Path("/cache", true) && TWFunc::Path_Exists("/cache/recovery")) {
+ if (PartitionManager.Mount_By_Path("/cache", false) && TWFunc::Path_Exists("/cache/recovery")) {
lgetfilecon("/cache/recovery", &contexts);
if (!contexts) {
lsetfilecon("/cache/recovery", "test");
@@ -174,7 +174,7 @@
gui_warn("no_selinux=No SELinux support (no libselinux).");
#endif
- PartitionManager.Mount_By_Path("/cache", true);
+ PartitionManager.Mount_By_Path("/cache", false);
bool Shutdown = false, Sideload = false;
string Send_Intent = "";