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 --- gui/theme/common/landscape.xml | 169 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) (limited to 'gui/theme/common/landscape.xml') diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index a3e6ed82a..bb9878fd6 100755 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -3398,6 +3398,41 @@ confirm_action + + + + + + + tw_repack_kernel=0 + repackselect + + + + + + + + + tw_repack_kernel=1 + repackselect + + + + + + + + + tw_back=advanced + tw_action=fixabrecoverybootloop + tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?} + tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...} + tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete} + tw_slider_text={@swipe_to_confirm=Swipe to Confirm} + confirm_action + + @@ -3657,6 +3692,140 @@ + +