From 2cbec20238a9376c4c263956f5c55da9cfa85363 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 13 Aug 2024 03:29:21 +0800 Subject: [PATCH] find_boot_image: test GKI 1.0 --- scripts/util_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index 8a0441f85..b2afca9c0 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -371,7 +371,7 @@ find_boot_image() { BOOTIMAGE= if $RECOVERYMODE; then BOOTIMAGE=$(find_block "recovery$SLOT" "sos") - elif [ -e "/dev/block/by-name/init_boot$SLOT" ] && [ "$(uname -r | cut -d. -f1)" -ge 5 ] && uname -r | grep -vq "android12-"; then + elif [ -e "/dev/block/by-name/init_boot$SLOT" ] && [ "$(uname -r | cut -d. -f1)" -ge 5 ] && uname -r | grep -Evq "android12-|^5\.4"; then # init_boot is only used with GKI 13+. It is possible that some devices with init_boot # partition still uses Android 12 GKI or previous kernels, so we need to explicitly detect that scenario. BOOTIMAGE="/dev/block/by-name/init_boot$SLOT"