From 77f38b5d376ed61409cda4315a6caf498039fff0 Mon Sep 17 00:00:00 2001 From: bigbiff Date: Thu, 25 Aug 2022 18:32:11 -0400 Subject: [PATCH] flashing: unlock block partitions before installing a zip Change-Id: I48b3db34116a9097a9206162468bc009993ef7d1 (cherry picked from commit d56818f5af1807d388657ba60b0900c79bcbc05b) --- twrpinstall/twinstall.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/twrpinstall/twinstall.cpp b/twrpinstall/twinstall.cpp index 7975a978..6805a2f0 100755 --- a/twrpinstall/twinstall.cpp +++ b/twrpinstall/twinstall.cpp @@ -342,6 +342,7 @@ int TWinstall_zip(const char* path, int* wipe_cache, bool check_for_digest) { if (!system_mount_state) PartitionManager.UnMount_By_Path(PartitionManager.Get_Android_Root_Path(), false); if (android::base::GetBoolProperty("ro.virtual_ab.enabled", false)) { + PartitionManager.Unlock_Block_Partitions(); PartitionManager.Prepare_All_Super_Volumes(); gui_warn("mount_vab_partitions=Devices on super may not mount until rebooting recovery."); }