From ce2fe779c028eeb198120b6d43e0a242a7113465 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 28 Sep 2012 12:34:33 -0400 Subject: Revert busybox for CM7 compatibility, add exclamation point to format data --- partition.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index 633011ba6..3ef206a80 100644 --- a/partition.cpp +++ b/partition.cpp @@ -209,9 +209,10 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { Display_Name = "Cache"; Wipe_Available_in_GUI = true; Wipe_During_Factory_Reset = true; - if (!TWFunc::Path_Exists("/cache/recovery")) { + if (Mount(false) && !TWFunc::Path_Exists("/cache/recovery/.")) { + string Recreate_Command = "cd /cache && mkdir recovery"; LOGI("Recreating /cache/recovery folder.\n"); - TWFunc::Recursive_Mkdir("/cache/recovery"); + system(Recreate_Command.c_str()); } } else if (Mount_Point == "/datadata") { Wipe_During_Factory_Reset = true; @@ -1373,9 +1374,10 @@ void TWPartition::Recreate_AndSec_Folder(void) { LOGE("Unable to recreate android secure folder.\n"); } else if (!TWFunc::Path_Exists(Symlink_Path)) { LOGI("Recreating android secure folder.\n"); - TWFunc::Recursive_Mkdir(Symlink_Path); Command = "umount " + Symlink_Mount_Point; system(Command.c_str()); + Command = "cd " + Mount_Point + " && mkdir .android_secure"; + system(Command.c_str()); Command = "mount " + Symlink_Path + " " + Symlink_Mount_Point; system(Command.c_str()); } -- cgit v1.2.3