summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-12-10 16:04:41 +0100
committerDees Troy <dees_troy@teamw.in>2016-12-13 21:26:57 +0100
commitff2b7881c96c81d510481b92982d099e9101dbec (patch)
tree756d577a0784f8b6caa4b1f2e8f54daaa57dfdf6 /twrp.cpp
parentSupport backup/restore of FBE policies (diff)
downloadandroid_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.tar
android_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.tar.gz
android_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.tar.bz2
android_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.tar.lz
android_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.tar.xz
android_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.tar.zst
android_bootable_recovery-ff2b7881c96c81d510481b92982d099e9101dbec.zip
Diffstat (limited to '')
-rw-r--r--twrp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 3cd716f71..353127943 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -153,7 +153,7 @@ int main(int argc, char **argv) {
{ // 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 @@ int main(int argc, char **argv) {
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 = "";