From 7f21fef099f018026384686a16d59610b7a96859 Mon Sep 17 00:00:00 2001 From: Angaddeep Singh <159604852+Angxddeep@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:11:15 +0530 Subject: [PATCH] Fixed Preloader.bin :))) --- installer.sh | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/installer.sh b/installer.sh index fa9c496..47eff69 100644 --- a/installer.sh +++ b/installer.sh @@ -103,17 +103,17 @@ flash_rom() { echo "Verifying additional images..." # List of required images -requiredImages=( - "apusys.img" "audio_dsp.img" "ccu.img" "dpm.img" "dtbo.img" "gpueb.img" - "gz.img" "lk.img" "mcf_ota.img" "mcupm.img" "md1img.img" "mvpu_algo.img" - "pi_img.img" "preloader_xaga.bin" "scp.img" "spmfw.img" "sspm.img" "tee.img" - "vcp.img" "vbmeta.img" "vendor_boot.img" "vbmeta_system.img" "vbmeta_vendor.img" -) - -# Additional required files -additionalRequiredFiles=( - "super.img" -) + requiredImages=( + "apusys.img" "audio_dsp.img" "ccu.img" "dpm.img" "dtbo.img" "gpueb.img" + "gz.img" "lk.img" "mcf_ota.img" "mcupm.img" "md1img.img" "mvpu_algo.img" + "pi_img.img" "scp.img" "spmfw.img" "sspm.img" "tee.img" + "vcp.img" "vbmeta.img" "vendor_boot.img" "vbmeta_system.img" "vbmeta_vendor.img" + ) + + # Additional required files + additionalRequiredFiles=( + "super.img" "preloader_xaga.bin" + ) # Check for missing images missingImages=() @@ -153,6 +153,15 @@ if [ -f "super.img" ]; then echo "super.img flashed successfully." fi +# Flash preloader image + if [ -f "preloader_xaga.bin" ]; then + echo "Flashing preloader image..." + $fastboot flash preloader1 preloader_xaga.bin + $fastboot flash preloader2 preloader_xaga.bin + echo "preloader_xaga.bin flashed successfully." + fi + + if [ -f "logo.img" ]; then echo "Flashing logo..."