diff --git a/data.cpp b/data.cpp
index 4567e6a58..d3c4a6188 100755
--- a/data.cpp
+++ b/data.cpp
@@ -1,5 +1,5 @@
/*
- Copyright 2012 to 2016 bigbiff/Dees_Troy TeamWin
+ Copyright 2012 to 2021 TeamWin
This file is part of TWRP/TeamWin Recovery Project.
TWRP is free software: you can redistribute it and/or modify
@@ -770,7 +770,7 @@ initSHRPVars(&mConst, &mData, &mPersist);
mPersist.SetValue(TW_TIME_ZONE_GUISEL, "CST6;CDT,M3.2.0,M11.1.0");
mPersist.SetValue(TW_TIME_ZONE_GUIOFFSET, "0");
mPersist.SetValue(TW_TIME_ZONE_GUIDST, "1");
- mPersist.SetValue(TW_AUTO_REFLASHTWRP_VAR, "0");
+ mPersist.SetValue(TW_AUTO_REFLASHTWRP_VAR, "0");
mData.SetValue(TW_ACTION_BUSY, "0");
mData.SetValue("tw_wipe_cache", "0");
@@ -817,6 +817,11 @@ initSHRPVars(&mConst, &mData, &mPersist);
mData.SetValue("tw_sleep", "5");
mData.SetValue("tw_enable_fastboot", "0");
+
+ if (android::base::GetBoolProperty("ro.virtual_ab.enabled", false))
+ mConst.SetValue("tw_virtual_ab.enabled", "1");
+ else
+ mConst.SetValue("tw_virtual_ab.enabled", "0");
// Brightness handling
string findbright;
#ifdef TW_BRIGHTNESS_PATH
diff --git a/data.hpp b/data.hpp
index 843bef207..d89966e6e 100755
--- a/data.hpp
+++ b/data.hpp
@@ -1,5 +1,5 @@
/*
- Copyright 2012 bigbiff/Dees_Troy TeamWin
+ Copyright 2012 to 2021 TeamWin
This file is part of TWRP/TeamWin Recovery Project.
TWRP is free software: you can redistribute it and/or modify
diff --git a/gui/theme/shrp_portrait_hdpi/pages/tweaks.xml b/gui/theme/shrp_portrait_hdpi/pages/tweaks.xml
index 09fd3636e..71ec05b47 100644
--- a/gui/theme/shrp_portrait_hdpi/pages/tweaks.xml
+++ b/gui/theme/shrp_portrait_hdpi/pages/tweaks.xml
@@ -101,6 +101,30 @@
confirm_action
+
+
+
+ tw_back=c_addons_native
+ tw_action=unmapsuperdevices
+ tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}
+ tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}
+ tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}
+ tw_slider_text={@swipe_to_confirm=Swipe to Confirm}
+ confirm_action
+
+
+
+
+
+ tw_back=c_addons_native
+ tw_action=mergesnapshots
+ tw_text1={@merge_snapshots_confirm=Merge Snapshots?}
+ tw_action_text1={@merging_snapshots=Merging Snapshots...}
+ tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}
+ tw_slider_text={@swipe_to_confirm=Swipe to Confirm}
+ confirm_action
+
+
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 1e22dacb6..56a15ec54 100755
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -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();
diff --git a/twrpinstall/twinstall.cpp b/twrpinstall/twinstall.cpp
index 7f9e8c002..849b3adad 100755
--- a/twrpinstall/twinstall.cpp
+++ b/twrpinstall/twinstall.cpp
@@ -346,7 +346,7 @@ int TWinstall_zip(const char* path, int* wipe_cache, bool check_for_digest) {
PartitionManager.UnMount_By_Path("/vendor", false);
if (!system_mount_state)
PartitionManager.UnMount_By_Path(PartitionManager.Get_Android_Root_Path(), false);
- if (android::base::GetBoolProperty("ro.virtual_ab.enabled", true)) {
+ if (android::base::GetBoolProperty("ro.virtual_ab.enabled", false)) {
PartitionManager.Prepare_All_Super_Volumes();
gui_warn("mount_vab_partitions=Devices on super may not mount until rebooting recovery.");
}