From d976629141919ec3e9b1ef0b56c41e3f5b1847e8 Mon Sep 17 00:00:00 2001 From: Darth9 Date: Fri, 26 Aug 2022 09:03:33 +0100 Subject: [PATCH] Unblock partitions before reflashing current TWRP Change-Id: Idf54f302824cfbddb5d5be50b676dbc58435ef51 (cherry picked from commit 5c4a0aa453927a51e6ac740243ca0786893c7c5e) --- twrpRepacker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/twrpRepacker.cpp b/twrpRepacker.cpp index 6ac2ce90..1da19e26 100755 --- a/twrpRepacker.cpp +++ b/twrpRepacker.cpp @@ -270,6 +270,7 @@ if (!TWFunc::Path_Exists("/ramdisk-files.txt")) { LOGERR("can not find ramdisk-files.txt"); return false; } + PartitionManager.Unlock_Block_Partitions(); Repack_Options_struct Repack_Options; Repack_Options.Disable_Verity = false; Repack_Options.Disable_Force_Encrypt = false;