From c2e33f95d10e0788460715f1f146daa969b8c0b6 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Wed, 8 Feb 2023 12:52:52 -0400 Subject: [PATCH] AK3+Backend: support AMLogic devices where A-only sets slot=normal --- META-INF/com/google/android/update-binary | 1 + tools/ak3-core.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 75479b6..5aa9030 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -38,6 +38,7 @@ find_slot() { [ "$slot" ] || slot=$($BB grep -o 'androidboot.slot=.*$' /proc/cmdline | $BB cut -d\ -f1 | $BB cut -d= -f2); [ "$slot" ] && slot=_$slot; fi; + [ "$slot" == "normal" ] && unset slot; [ "$slot" ] && echo "$slot"; } setup_mountpoint() { diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 43d173e..15c8c13 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -765,6 +765,7 @@ setup_ak() { [ "$slot" ] || slot=$(grep -o 'androidboot.slot=.*$' /proc/cmdline | cut -d\ -f1 | cut -d= -f2); [ "$slot" ] && slot=_$slot; fi; + [ "$slot" == "normal" ] && unset slot; if [ "$slot" ]; then if [ -d /postinstall/tmp -a ! "$slot_select" ]; then slot_select=inactive;