diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index dfa796b..bf1af46 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=20211207 +# AK_BASE_VERSION=20211210 diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index cf8200b..a913049 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -349,13 +349,19 @@ flash_boot() { *-dtb) rm -f kernel_dtb;; esac; fi; - unset magisk_patched KEEPFORCEENCRYPT KEEPVERITY SHA1 TWOSTAGEINIT; + unset magisk_patched KEEPFORCEENCRYPT KEEPVERITY SHA1 TWOSTAGEINIT; # leave KEEPVBMETAFLAG set for repack ;; esac; case $ramdisk_compression in none|cpio) nocompflag="-n";; esac; + case $keep_vbmeta_flag in + auto) [ "$KEEPVBMETAFLAG" ] || export KEEPVBMETAFLAG=false;; + 1) export KEEPVBMETAFLAG=true;; + *) export KEEPVBMETAFLAG=false;; + esac; $bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img; + unset KEEPVBMETAFLAG; fi; if [ $? != 0 ]; then abort "Repacking image failed. Aborting...";