summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorHashcode <hashcode0f@gmail.com>2013-08-30 07:45:30 +0200
committerHashcode <hashcode0f@gmail.com>2013-08-30 19:28:15 +0200
commitdabfd49bd4e5bd89eb3b4975deca4242534b4fd7 (patch)
treea1a2e0b750fbb9f643de1332617a96048cbef493 /partition.cpp
parentBetter compatibility by fixing up ext4 & selinux flags (diff)
downloadandroid_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.tar
android_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.tar.gz
android_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.tar.bz2
android_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.tar.lz
android_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.tar.xz
android_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.tar.zst
android_bootable_recovery-dabfd49bd4e5bd89eb3b4975deca4242534b4fd7.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index 5359503bc..8b2e09798 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -404,6 +404,8 @@ bool TWPartition::Process_Flags(string Flags, bool Display_Error) {
Is_Storage = true;
} else if (strcmp(ptr, "canbewiped") == 0) {
Can_Be_Wiped = true;
+ } else if (strcmp(ptr, "usermrf") == 0) {
+ Use_Rm_Rf = true;
} else if (ptr_len > 7 && strncmp(ptr, "backup=", 7) == 0) {
ptr += 7;
if (*ptr == '1' || *ptr == 'y' || *ptr == 'Y')
@@ -994,7 +996,7 @@ bool TWPartition::Wipe(string New_File_System) {
DataManager::GetValue(TW_RM_RF_VAR, check);
- if (check)
+ if (check || Use_Rm_Rf)
wiped = Wipe_RMRF();
else if (New_File_System == "ext4")
wiped = Wipe_EXT4();