partition: Don't force system partitions to read-only
Let's follow fstab flags.
Change-Id: I9c8d8c9a998df242256e820065716558dc56b908
diff --git a/partition.cpp b/partition.cpp
index 9832cfe..315a159 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -470,7 +470,6 @@
Wipe_Available_in_GUI = false;
Can_Be_Backed_Up = false;
Can_Be_Wiped = false;
- Mount_Read_Only = true;
Make_Dir(PartitionManager.Get_Android_Root_Path(), true);
} else if (Mount_Point == "/system_ext") {
Display_Name = "System_EXT";
@@ -484,14 +483,12 @@
Backup_Display_Name = Display_Name;
Storage_Name = Display_Name;
Can_Be_Backed_Up = Wipe_Available_in_GUI = Is_Super ? false : true;
- Mount_Read_Only = true;
} else if (Mount_Point == "/odm") {
Display_Name = "ODM";
Backup_Name = "ODM";
Backup_Display_Name = Display_Name;
Storage_Name = Display_Name;
Can_Be_Backed_Up = Wipe_Available_in_GUI = Is_Super ? false : true;
- Mount_Read_Only = true;
} else if (Mount_Point == "/data") {
Display_Name = "Data";
Backup_Display_Name = Display_Name;
@@ -538,7 +535,6 @@
Display_Name = "Vendor";
Backup_Display_Name = Display_Name;
Storage_Name = Display_Name;
- Mount_Read_Only = true;
}
#ifdef TW_EXTERNAL_STORAGE_PATH
if (Mount_Point == EXPAND(TW_EXTERNAL_STORAGE_PATH)) {