mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
find_boot_image: test GKI 1.0
This commit is contained in:
parent
4b724c7257
commit
2cbec20238
@ -371,7 +371,7 @@ find_boot_image() {
|
|||||||
BOOTIMAGE=
|
BOOTIMAGE=
|
||||||
if $RECOVERYMODE; then
|
if $RECOVERYMODE; then
|
||||||
BOOTIMAGE=$(find_block "recovery$SLOT" "sos")
|
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
|
# 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.
|
# 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"
|
BOOTIMAGE="/dev/block/by-name/init_boot$SLOT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user