TWRP Flashable BootSplash ZIP

Search This thread

Whiskey103

Senior Moderator / Member Advocate Admin / DC / RT
Staff member
Jun 6, 2009
10,012
20,442
44
Tell me, I’m lost . . .
www.whiskey103.nl
Just a simple TWRP Flashable BootSplash Zip for example to replace the warnings when you unlocked/rooted your device.
It will open up_param.bin and repack it with the jpg,s inside the zip.
Simply replace svb_orange.jpg , logo.jpg and booting_warning.jpg with a jpg of your own choice.
Make sure the images don't exceed 500kb, and keep exact same resolution (1440x3040 24bbp)

logo5g.jpg


*** Download ***

Script:
Code:
#!/sbin/sh

OUTFD=$2
ZIP=$3

ui_print() {
  echo -n -e "ui_print $1\n" > /proc/self/fd/$OUTFD
  echo -n -e "ui_print\n" > /proc/self/fd/$OUTFD
}

cd /tmp
rm -rf arter97
mkdir arter97
cd arter97
unzip -o "$ZIP"

ui_print " - mounting data partition"
mount /data

if [ ! -e /data/media/0/up_param.bak ]; then
	ui_print " - backing up current up_param to /sdcard/up_param.bak"
	cat /dev/block/platform/13d60000.ufs/by-name/up_param > /data/media/0/up_param.bak
	chown 1023:1023 /data/media/0/up_param.bak
	chmod 664 /data/media/0/up_param.bak
fi

ui_print " - installing new logo.jpg"
chmod 755 tar
mkdir tartemp
cd tartemp
/tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
cp /tmp/arter97/logo.jpg .
chown root:root *
chmod 444 logo.jpg
touch *
/tmp/arter97/tar -pcvf ../new.tar *
cd ..
cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param

ui_print " - installing new svb_orange.jpg"
chmod 755 tar
mkdir tartemp
cd tartemp
/tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
cp /tmp/arter97/svb_orange.jpg .
chown root:root *
chmod 444 svb_orange.jpg
touch *
/tmp/arter97/tar -pcvf ../new.tar *
cd ..
cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param

ui_print " - installing new booting_warning.jpg"
chmod 755 tar
mkdir tartemp
cd tartemp
/tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
cp /tmp/arter97/booting_warning.jpg .
chown root:root *
chmod 444 booting_warning.jpg
touch *
/tmp/arter97/tar -pcvf ../new.tar *
cd ..
cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param

ui_print " - unmounting partition /data"
umount /data > /dev/null 2>&1

ui_print " "
ui_print "finished"
ui_print "Edited for s10+ by Whiskey103"
cd /
rm -rf /tmp/arter97
sync

Credits:
@Radzian - used his base zip and edited for s10+
@ianmacd for pointing to the error in my first attempt.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Just a simple TWRP Flashable BootSplash Zip for example to replace the warnings when you unlocked/rooted your device.
    It will open up_param.bin and repack it with the jpg,s inside the zip.
    Simply replace svb_orange.jpg , logo.jpg and booting_warning.jpg with a jpg of your own choice.
    Make sure the images don't exceed 500kb, and keep exact same resolution (1440x3040 24bbp)

    logo5g.jpg


    *** Download ***

    Script:
    Code:
    #!/sbin/sh
    
    OUTFD=$2
    ZIP=$3
    
    ui_print() {
      echo -n -e "ui_print $1\n" > /proc/self/fd/$OUTFD
      echo -n -e "ui_print\n" > /proc/self/fd/$OUTFD
    }
    
    cd /tmp
    rm -rf arter97
    mkdir arter97
    cd arter97
    unzip -o "$ZIP"
    
    ui_print " - mounting data partition"
    mount /data
    
    if [ ! -e /data/media/0/up_param.bak ]; then
    	ui_print " - backing up current up_param to /sdcard/up_param.bak"
    	cat /dev/block/platform/13d60000.ufs/by-name/up_param > /data/media/0/up_param.bak
    	chown 1023:1023 /data/media/0/up_param.bak
    	chmod 664 /data/media/0/up_param.bak
    fi
    
    ui_print " - installing new logo.jpg"
    chmod 755 tar
    mkdir tartemp
    cd tartemp
    /tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
    cp /tmp/arter97/logo.jpg .
    chown root:root *
    chmod 444 logo.jpg
    touch *
    /tmp/arter97/tar -pcvf ../new.tar *
    cd ..
    cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param
    
    ui_print " - installing new svb_orange.jpg"
    chmod 755 tar
    mkdir tartemp
    cd tartemp
    /tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
    cp /tmp/arter97/svb_orange.jpg .
    chown root:root *
    chmod 444 svb_orange.jpg
    touch *
    /tmp/arter97/tar -pcvf ../new.tar *
    cd ..
    cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param
    
    ui_print " - installing new booting_warning.jpg"
    chmod 755 tar
    mkdir tartemp
    cd tartemp
    /tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
    cp /tmp/arter97/booting_warning.jpg .
    chown root:root *
    chmod 444 booting_warning.jpg
    touch *
    /tmp/arter97/tar -pcvf ../new.tar *
    cd ..
    cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param
    
    ui_print " - unmounting partition /data"
    umount /data > /dev/null 2>&1
    
    ui_print " "
    ui_print "finished"
    ui_print "Edited for s10+ by Whiskey103"
    cd /
    rm -rf /tmp/arter97
    sync

    Credits:
    @Radzian - used his base zip and edited for s10+
    @ianmacd for pointing to the error in my first attempt.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone