log_error() echo -e "$RED[ERROR]$NC $1"

# Make executable chmod +x install_recovery_ramdisk.sh

Download the factory image for your device. Inside the zip, look for boot.img or vendor_boot.img . If your device uses vendor_boot for recovery, that is the file you need. Copy this file to your phone.