From c51f1f994ada7b46224f672481c0dacf3894c70b Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 20 Sep 2012 15:32:13 -0400 Subject: Various fixes Modify AOSP mount and wipe functions to use Partition Manager. Update wipe code to reset the log file index when wiping cache. Add ADB sideload to 540x960 theme. --- partition.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index ad3198ba7..341dee704 100644 --- a/partition.cpp +++ b/partition.cpp @@ -42,6 +42,7 @@ extern "C" { #include "mtdutils/mtdutils.h" #include "mtdutils/mounts.h" #include "makelist.h" + #include "extra-functions.h" } TWPartition::TWPartition(void) { @@ -217,16 +218,19 @@ bool TWPartition::Process_Fstab_Line(string Line, bool Display_Error) { Wipe_During_Factory_Reset = true; Display_Name = "SD-Ext"; Wipe_Available_in_GUI = true; + Removable = true; } #ifdef TW_EXTERNAL_STORAGE_PATH if (Mount_Point == EXPAND(TW_EXTERNAL_STORAGE_PATH)) { Is_Storage = true; Storage_Path = EXPAND(TW_EXTERNAL_STORAGE_PATH); + Removable = true; } #else if (Mount_Point == "/sdcard") { Is_Storage = true; Storage_Path = "/sdcard"; + Removable = true; } #endif #ifdef TW_INTERNAL_STORAGE_PATH @@ -662,6 +666,9 @@ bool TWPartition::Wipe() { return false; } + if (Mount_Point == "/cache") + tmplog_offset = 0; + if (Has_Data_Media) return Wipe_Data_Without_Wiping_Media(); -- cgit v1.2.3