vab: correct default properties when vab is enabled

- do not show vab options in advanced
- do not perform merges when vab is disabled

Change-Id: I20997eca515600cb07fe896305b861ee9418c326
This commit is contained in:
bigbiff
2021-10-11 10:17:48 -04:00
parent 692a9e14d8
commit ab76bd7324
7 changed files with 16 additions and 5 deletions

View File

@@ -1594,7 +1594,7 @@ int TWPartitionManager::Format_Data(void) {
metadata->UnMount(false);
if (dat != NULL) {
if (android::base::GetBoolProperty("ro.virtual_ab.enabled", true)) {
if (android::base::GetBoolProperty("ro.virtual_ab.enabled", false)) {
#ifndef TW_EXCLUDE_APEX
twrpApex apex;
apex.Unmount();