flashing: unlock block partitions before installing a zip
Change-Id: I48b3db34116a9097a9206162468bc009993ef7d1 (cherry picked from commit d56818f5af1807d388657ba60b0900c79bcbc05b)
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user