never keep system and vendor partitions readonly

Change-Id: I72b1740d406b16d066cfb86426529c8f9a4a9912
This commit is contained in:
Konsta
2021-11-22 21:16:37 +02:00
parent 741644b3e2
commit 894efea684
2 changed files with 3 additions and 3 deletions

View File

@@ -910,7 +910,7 @@ void DataManager::SetDefaultValues()
mConst.SetValue("tw_has_mtp", "0");
mConst.SetValue("tw_mtp_enabled", "0");
#endif
mPersist.SetValue("tw_mount_system_ro", "2");
mPersist.SetValue("tw_mount_system_ro", "0");
mPersist.SetValue("tw_never_show_system_ro_page", "0");
mPersist.SetValue("tw_language", EXPAND(TW_DEFAULT_LANGUAGE));
LOGINFO("LANG: %s\n", EXPAND(TW_DEFAULT_LANGUAGE));

View File

@@ -466,7 +466,7 @@ 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;
Mount_Read_Only = false;
Make_Dir(PartitionManager.Get_Android_Root_Path(), true);
} else if (Mount_Point == "/product") {
Display_Name = "Product";
@@ -528,7 +528,7 @@ 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;
Mount_Read_Only = false;
}
#ifdef TW_EXTERNAL_STORAGE_PATH
if (Mount_Point == EXPAND(TW_EXTERNAL_STORAGE_PATH)) {