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.
diff --git a/partition.cpp b/partition.cpp
index ad3198b..341dee7 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -42,6 +42,7 @@
#include "mtdutils/mtdutils.h"
#include "mtdutils/mounts.h"
#include "makelist.h"
+ #include "extra-functions.h"
}
TWPartition::TWPartition(void) {
@@ -217,16 +218,19 @@
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 @@
return false;
}
+ if (Mount_Point == "/cache")
+ tmplog_offset = 0;
+
if (Has_Data_Media)
return Wipe_Data_Without_Wiping_Media();