readonly: fix condition showing readonly checkbox
Non dynamic partition devices need this if accidentally turned off. Change-Id: I0a212a8fc6446dfa6d82cf1103f4e4e80e680f89
This commit is contained in:
@@ -722,6 +722,9 @@ void DataManager::SetDefaultValues()
|
||||
#ifdef PRODUCT_USE_DYNAMIC_PARTITIONS
|
||||
printf("PRODUCT_USE_DYNAMIC_PARTITIONS := true\n");
|
||||
mConst.SetValue(TW_FASTBOOT_MODE, "1");
|
||||
mConst.SetValue(TW_IS_SUPER, "1");
|
||||
#else
|
||||
mConst.SetValue(TW_IS_SUPER, "0");
|
||||
#endif
|
||||
#ifdef TW_INCLUDE_CRYPTO
|
||||
mConst.SetValue(TW_HAS_CRYPTO, "1");
|
||||
@@ -780,7 +783,6 @@ void DataManager::SetDefaultValues()
|
||||
mData.SetValue("tw_background_thread_running", "0");
|
||||
mData.SetValue(TW_RESTORE_FILE_DATE, "0");
|
||||
mPersist.SetValue("tw_military_time", "0");
|
||||
mData.SetValue(TW_IS_SUPER, "0");
|
||||
|
||||
#ifdef TW_INCLUDE_CRYPTO
|
||||
mPersist.SetValue(TW_USE_SHA2, "1");
|
||||
|
||||
@@ -2582,7 +2582,7 @@
|
||||
|
||||
<button style="checkbox">
|
||||
<conditions>
|
||||
<condition var1="tw_mount_system_ro" op="!=" var2="0"/>
|
||||
<condition var1="tw_mount_system_ro" op="=" var2="0"/>
|
||||
<condition var1="tw_is_super" op="=" var2="0"/>
|
||||
</conditions>
|
||||
<placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
|
||||
|
||||
@@ -2738,7 +2738,7 @@
|
||||
|
||||
<button style="checkbox">
|
||||
<conditions>
|
||||
<condition var1="tw_mount_system_ro" op="!=" var2="0"/>
|
||||
<condition var1="tw_mount_system_ro" op="=" var2="0"/>
|
||||
<condition var1="tw_is_super" op="=" var2="0"/>
|
||||
</conditions>
|
||||
<placement x="%indent%" y="%row15a_y%" textplacement="6"/>
|
||||
|
||||
@@ -3205,7 +3205,7 @@
|
||||
|
||||
<button style="checkbox">
|
||||
<conditions>
|
||||
<condition var1="tw_mount_system_ro" op="!=" var2="0"/>
|
||||
<condition var1="tw_mount_system_ro" op="=" var2="0"/>
|
||||
<condition var1="tw_is_super" op="=" var2="0"/>
|
||||
</conditions>
|
||||
<placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
|
||||
|
||||
Reference in New Issue
Block a user