From 53796e73334ac9d87d4cb5a355fc8c1d205104f6 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 11 Jan 2019 22:49:52 -0600 Subject: Use magiskboot to repack the boot partition Set TW_INCLUDE_REPACKTOOLS := true Must also have: AB_OTA_UPDATER := true Use magiskboot and provide GUI options to allow users to repack their existing boot image to install TWRP (or kernels) so we can stop having to provide installation zips for AB devices. There is also an option to try to fix a recovery bootloop if the kernel has been patched to always boot the ramdisk for root, etc. You will need to pull the below repo into external/magisk-prebuilt https://github.com/TeamWin/external_magisk-prebuilt Change-Id: I74196cc6f095a7576d61886dc96cbc18deba9b04 --- openrecoveryscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openrecoveryscript.cpp') diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index 9478cd751..165211523 100755 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp @@ -178,7 +178,7 @@ int OpenRecoveryScript::run_script_file(void) { strncpy(value2, tok, line_len - remove_nl); DataManager::SetValue(TW_BACKUP_NAME, value2); gui_msg(Msg("backup_folder_set=Backup folder set to '{1}'")(value2)); - if (PartitionManager.Check_Backup_Name(true) != 0) { + if (PartitionManager.Check_Backup_Name(value2, true, true) != 0) { ret_val = 1; continue; } -- cgit v1.2.3