From 1e9626e798c5ad1abd98dafac6fa215bb1258f6a Mon Sep 17 00:00:00 2001 From: me-cafebabe Date: Thu, 28 Jul 2022 01:21:34 +0800 Subject: [PATCH] partition: Don't force system partitions to read-only Let's follow fstab flags. Change-Id: I9c8d8c9a998df242256e820065716558dc56b908 (cherry picked from commit c49e34af4721f637edb850acbe1e94fc1ac9edd5) --- partition.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/partition.cpp b/partition.cpp index 9832cfed..315a159a 100755 --- a/partition.cpp +++ b/partition.cpp @@ -470,7 +470,6 @@ bool TWPartition::Process_Fstab_Line(const char *fstab_line, bool Display_Error, 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 @@ bool TWPartition::Process_Fstab_Line(const char *fstab_line, bool Display_Error, 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 @@ bool TWPartition::Process_Fstab_Line(const char *fstab_line, bool Display_Error, 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)) {