[TOOL][MOD][A12/A13] Unpack & repack OPlus splash image (logo.img) [LINUX][WINDOWS]

Search This thread

AnierinB

Recognized Developer
While researching about Run-length-encoding (RLE) and modifying the source code of the splash image tool for the OnePlus 6 series to be compatible with 8 series (which was starting to look promising), I ended up stumbling upon this GitHub repository for a tool that already accomplishes the unpacking and repacking process of logo.img for various OPlus (Oppo + OnePlus = OPlus) devices.

This has been tested on both OOS12 and OOS13 firmware. Compatibility with older versions of the logo.img from previous OOS versions (OOS11 and below) is unknown at the time of writing this.

Usage

Unpack oplus splash image:
./opsplash unpack -i orig-logo.img -o pic

Editing:
You'll want to make your edits to the output file named "boot". I noticed that if "boot" exceeds the default size it will not show up during power on and will instead display a black screen. It is advised to keep the bitmap file the same size or less to work properly.

Repack oplus splash image:
./opsplash repack -i orig-logo.img -o new-logo.img

Only read image info:
./opsplash readinfo -i orig-logo.img

Flashing
This will need to be done in fastbootd rather than fastboot (bootloader), since regular fastboot (bootloader) prevents flashing critical partitions.

Original logo:
fastboot flash --slot=all logo orig-logo.img

New logo:
fastboot flash --slot=all logo new-logo.img

Side note:
I seem to have found some rather unusual images in the logo.img for instantnoodlep. You'll just have to unpack it and see for yourself -_-
 

Attachments

  • orig-logo.img
    16 MB · Views: 257
Last edited:

deepongi

Recognized Developer
Jul 12, 2008
6,060
14,963
40
Portugal
OnePlus 8
POCO X4 Pro
made this one, looks good. logo.img in attachment, plus original bmp, remove the *.pdf extension (xda impose upload rules)


boot.png
 

Attachments

  • new-logo.img
    585.7 KB · Views: 51
  • boot.bmp.pdf
    9.9 MB · Views: 114

halloweenm925

Member
Dec 3, 2022
34
10
why do i keep getting this error my stock boot.bmp is 7.41 MB
the one i want to replace is 6.67 mb

but i keep running to this error

whould you know why?
 

Attachments

  • Screenshot_45.png
    Screenshot_45.png
    948.3 KB · Views: 67

Rootk1t

Senior Member
Jun 2, 2013
1,968
811
why do i keep getting this error my stock boot.bmp is 7.41 MB
the one i want to replace is 6.67 mb

but i keep running to this error

whould you know why?
Your bmp file does not pass checks:
1. You bmp file header is doesn't equal to 0x36.
2. BMP file itself seems to be wrong or corrypted.
Also try to rename it to contain no spaces in filename.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    While researching about Run-length-encoding (RLE) and modifying the source code of the splash image tool for the OnePlus 6 series to be compatible with 8 series (which was starting to look promising), I ended up stumbling upon this GitHub repository for a tool that already accomplishes the unpacking and repacking process of logo.img for various OPlus (Oppo + OnePlus = OPlus) devices.

    This has been tested on both OOS12 and OOS13 firmware. Compatibility with older versions of the logo.img from previous OOS versions (OOS11 and below) is unknown at the time of writing this.

    Usage

    Unpack oplus splash image:
    ./opsplash unpack -i orig-logo.img -o pic

    Editing:
    You'll want to make your edits to the output file named "boot". I noticed that if "boot" exceeds the default size it will not show up during power on and will instead display a black screen. It is advised to keep the bitmap file the same size or less to work properly.

    Repack oplus splash image:
    ./opsplash repack -i orig-logo.img -o new-logo.img

    Only read image info:
    ./opsplash readinfo -i orig-logo.img

    Flashing
    This will need to be done in fastbootd rather than fastboot (bootloader), since regular fastboot (bootloader) prevents flashing critical partitions.

    Original logo:
    fastboot flash --slot=all logo orig-logo.img

    New logo:
    fastboot flash --slot=all logo new-logo.img

    Side note:
    I seem to have found some rather unusual images in the logo.img for instantnoodlep. You'll just have to unpack it and see for yourself -_-
    3
    made this one, looks good. logo.img in attachment, plus original bmp, remove the *.pdf extension (xda impose upload rules)


    boot.png