AK3+Backend: remove all backwards compat (it's been years)

This commit is contained in:
osm0sis committed 2026-06-28 09:07:23 -03:00
1 parent 10a35863de
commit cea8f976cd
3 files changed
+1 -23

No files matched your search

@@ -563,9 +563,6 @@ do_levelcheck;
do_vendorlevelcheck; do_vendorlevelcheck;
ui_print "Installing..."; 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; ash anykernel.sh;
if [ $? != 0 ]; then if [ $? != 0 ]; then
abort; abort;
+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE) # Dummy file; update-binary is a shell script (DO NOT CHANGE)
# #
# #
# AK_BASE_VERSION=20260225 # AK_BASE_VERSION=20260628
-19
View File
@@ -564,9 +564,6 @@ flash_generic() {
fi; 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 then build, sign and write image, vendor_dlkm and dtbo)
write_boot() { write_boot() {
repack_ramdisk; repack_ramdisk;
@@ -785,10 +782,6 @@ patch_ueventd() {
reset_ak() { reset_ak() {
local current i; 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); current=$(dirname $AKHOME/*-files/current);
if [ -d "$current" ]; then if [ -d "$current" ]; then
for i in $BOOTIMG $AKHOME/boot-new.img; do for i in $BOOTIMG $AKHOME/boot-new.img; do
@@ -816,17 +809,6 @@ reset_ak() {
setup_ak() { setup_ak() {
local blockfiles plistboot plistinit plistreco parttype name part mtdmount mtdpart mtdname target; 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) # slot detection enabled by IS_SLOT_DEVICE=1 or auto (from anykernel.sh)
case $IS_SLOT_DEVICE in case $IS_SLOT_DEVICE in
1|auto) 1|auto)
@@ -956,7 +938,6 @@ setup_ak() {
fi; fi;
# run attributes function for current block if it exists # 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; type ${name}_attributes >/dev/null 2>&1 && ${name}_attributes;
} }
### ###