From cea8f976cd17c3b2c625989c9ca7a8956db4c7a4 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Sun, 28 Jun 2026 07:48:14 -0300 Subject: [PATCH] AK3+Backend: remove all backwards compat (it's been years) --- META-INF/com/google/android/update-binary | 3 --- META-INF/com/google/android/updater-script | 2 +- tools/ak3-core.sh | 19 ------------------- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 9b321d0..8c7006e 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -563,9 +563,6 @@ do_levelcheck; do_vendorlevelcheck; ui_print "Installing..."; -# hack to maintain support for anykernel.sh files that weren't updated correctly along with the AK core -CORE=$(grep -oE 'ak.*core.sh' anykernel.sh); -[ -f tools/$CORE ] || ln -s $AKHOME/tools/ak*-core.sh $AKHOME/tools/$CORE; ash anykernel.sh; if [ $? != 0 ]; then abort; diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index ae970e8..3ea995c 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=20260225 +# AK_BASE_VERSION=20260628 diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index c19b9b4..d9d8f41 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -564,9 +564,6 @@ flash_generic() { fi; } -# flash_dtbo (backwards compatibility for flash_generic) -flash_dtbo() { flash_generic dtbo; } - ### write_boot (repack ramdisk then build, sign and write image, vendor_dlkm and dtbo) write_boot() { repack_ramdisk; @@ -785,10 +782,6 @@ patch_ueventd() { reset_ak() { local current i; - # Backwards compatibility for old API - [ "$no_block_display" ] && NO_BLOCK_DISPLAY="$no_block_display"; - unset no_block_display; - current=$(dirname $AKHOME/*-files/current); if [ -d "$current" ]; then for i in $BOOTIMG $AKHOME/boot-new.img; do @@ -816,17 +809,6 @@ reset_ak() { setup_ak() { local blockfiles plistboot plistinit plistreco parttype name part mtdmount mtdpart mtdname target; - # Backwards compatibility for old API - [ "$block" ] && BLOCK="$block"; - [ "$is_slot_device" ] && IS_SLOT_DEVICE="$is_slot_device"; - [ "$ramdisk_compression" ] && RAMDISK_COMPRESSION="$ramdisk_compression"; - [ "$patch_vbmeta_flag" ] && PATCH_VBMETA_FLAG="$patch_vbmeta_flag"; - [ "$customdd" ] && CUSTOMDD="$customdd"; - [ "$slot_select" ] && SLOT_SELECT="$slot_select"; - [ "$no_block_display" ] && NO_BLOCK_DISPLAY="$no_block_display"; - [ "$no_magisk_check" ] && NO_MAGISK_CHECK="$no_magisk_check"; - unset block is_slot_device ramdisk_compression patch_vbmeta_flag customdd slot_select no_block_display no_magisk_check; - # slot detection enabled by IS_SLOT_DEVICE=1 or auto (from anykernel.sh) case $IS_SLOT_DEVICE in 1|auto) @@ -956,7 +938,6 @@ setup_ak() { fi; # run attributes function for current block if it exists - type attributes >/dev/null 2>&1 && attributes; # backwards compatibility type ${name}_attributes >/dev/null 2>&1 && ${name}_attributes; } ###