Skip to content

Commit

Permalink
Fixed Preloader.bin
Browse files Browse the repository at this point in the history
:)))
  • Loading branch information
Angxddeep committed Jun 24, 2024
1 parent 900d4bd commit 7f21fef
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=()
Expand Down Expand Up @@ -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..."
Expand Down

0 comments on commit 7f21fef

Please sign in to comment.