never keep system and vendor partitions readonly
Change-Id: I72b1740d406b16d066cfb86426529c8f9a4a9912
This commit is contained in:
2
data.cpp
2
data.cpp
@@ -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));
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user