summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-10-14 17:04:44 +0200
committerDees Troy <dees_troy@teamw.in>2014-10-20 14:42:47 +0200
commit5ef301ec95cb340da8ee410027e4042b5b0657b6 (patch)
treeb21464194bc80f8709fc91bce2798270b4140beb
parentFix placement of Android Secure and SD-EXT on wipe page (diff)
downloadandroid_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.tar
android_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.tar.gz
android_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.tar.bz2
android_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.tar.lz
android_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.tar.xz
android_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.tar.zst
android_bootable_recovery-5ef301ec95cb340da8ee410027e4042b5b0657b6.zip
-rw-r--r--partition.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/partition.cpp b/partition.cpp
index 3fadfb980..6c1c3e50b 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1733,10 +1733,6 @@ bool TWPartition::Wipe_Data_Without_Wiping_Media() {
}
closedir(d);
- #ifdef HAVE_SELINUX
- perms.fixDataInternalContexts();
- #endif
-
gui_print("Done.\n");
return true;
}
@@ -2076,9 +2072,9 @@ void TWPartition::Recreate_Media_Folder(void) {
PartitionManager.Mount_By_Path(Symlink_Mount_Point, true);
LOGINFO("Recreating /data/media folder.\n");
mkdir("/data/media", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
- #ifdef HAVE_SELINUX
+#ifdef HAVE_SELINUX
perms.fixDataInternalContexts();
- #endif
+#endif
// Toggle mount to ensure that "internal sdcard" gets mounted
PartitionManager.UnMount_By_Path(Symlink_Mount_Point, true);
PartitionManager.Mount_By_Path(Symlink_Mount_Point, true);