summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-04-04 17:59:28 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-04-04 17:59:52 +0200
commit83e82578af038e85cf75cf6675dc76120ec84860 (patch)
tree4fa14b6da998fa07e1ac10978bd4b717bdcb2f54 /partition.cpp
parentStop printing Unable to mount to console if storage is removable. We will still print to (diff)
downloadandroid_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.gz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.bz2
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.lz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.xz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.zst
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index 56cae1e08..2e434595a 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1312,7 +1312,9 @@ bool TWPartition::Wipe_Encryption() {
if (Has_Data_Media && !Symlink_Mount_Point.empty()) {
Recreate_Media_Folder();
}
+#ifndef TW_OEM_BUILD
gui_print("You may need to reboot recovery to be able to use /data again.\n");
+#endif
return true;
} else {
Has_Data_Media = Save_Data_Media;
@@ -1556,6 +1558,10 @@ bool TWPartition::Wipe_F2FS() {
}
bool TWPartition::Wipe_Data_Without_Wiping_Media() {
+#ifdef TW_OEM_BUILD
+ // In an OEM Build we want to do a full format
+ return Wipe_Encryption();
+#else
string dir;
#ifdef HAVE_SELINUX
fixPermissions perms;
@@ -1599,6 +1605,7 @@ bool TWPartition::Wipe_Data_Without_Wiping_Media() {
}
gui_print("Dirent failed to open /data, error!\n");
return false;
+#endif // ifdef TW_OEM_BUILD
}
bool TWPartition::Backup_Tar(string backup_folder) {