From 1338f3ffc9752d675a16339f36e4fd727ef9db22 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 8 Mar 2026 14:32:52 -0700 Subject: [PATCH] works like fastboot now --- flash_kernel.sh | 14 +------------- flash_system.sh | 15 +-------------- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/flash_kernel.sh b/flash_kernel.sh index 8d29e1b..5be1c07 100755 --- a/flash_kernel.sh +++ b/flash_kernel.sh @@ -4,16 +4,4 @@ set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" cd $DIR -echo "Checking active slot..." -ACTIVE_SLOT=$(tools/qdl getactiveslot) - -if [[ "$ACTIVE_SLOT" != "a" && "$ACTIVE_SLOT" != "b" ]]; then - echo "Invalid active slot: '$ACTIVE_SLOT'" - exit 1 -fi - -echo "Active slot: $ACTIVE_SLOT" -echo "Flashing boot_$ACTIVE_SLOT..." -tools/qdl flash boot_$ACTIVE_SLOT $DIR/output/boot.img - -echo "Flashed boot_$ACTIVE_SLOT!" +tools/qdl flash boot $DIR/output/boot.img diff --git a/flash_system.sh b/flash_system.sh index a3d99d2..7e88e8f 100755 --- a/flash_system.sh +++ b/flash_system.sh @@ -4,18 +4,5 @@ set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" cd $DIR -echo "Checking active slot..." -ACTIVE_SLOT=$(tools/qdl getactiveslot) - -if [[ "$ACTIVE_SLOT" != "a" && "$ACTIVE_SLOT" != "b" ]]; then - echo "Invalid active slot: '$ACTIVE_SLOT'" - exit 1 -fi - -echo "Active slot: $ACTIVE_SLOT" -echo "Flashing system_$ACTIVE_SLOT..." -tools/qdl flash system_$ACTIVE_SLOT $DIR/output/system.img - +tools/qdl flash system $DIR/output/system.img tools/qdl reset - -echo "Flashed system_$ACTIVE_SLOT!"