From b52433bf129253e3131d7d67bdc28136363d220c Mon Sep 17 00:00:00 2001 From: osm0sis Date: Mon, 28 Aug 2023 22:37:04 -0300 Subject: [PATCH] AK3: fix repack return check with magiskboot --- META-INF/com/google/android/updater-script | 2 +- tools/ak3-core.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index b073107..7266448 100644 --- a/META-INF/com/google/android/updater-script +++ b/META-INF/com/google/android/updater-script @@ -3,4 +3,4 @@ # Dummy file; update-binary is a shell script (DO NOT CHANGE) # # -# AK_BASE_VERSION=20230822 +# AK_BASE_VERSION=20230828 diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 9b4346e..eb20cea 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -386,12 +386,14 @@ flash_boot() { *) export PATCHVBMETAFLAG=false;; esac; $bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img; - unset PATCHVBMETAFLAG; fi; if [ $? != 0 ]; then abort "Repacking image failed. Aborting..."; fi; - [ -f .magisk ] && touch $home/magisk_patched; + if [ -f .magisk ]; then + touch $home/magisk_patched; + unset PATCHVBMETAFLAG; + fi; cd $home; if [ -f "$bin/futility" -a -d "$bin/chromeos" ]; then