[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: 124
Last edited:

deepongi

Recognized Developer
Jul 12, 2008
6,014
14,894
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: 30
  • boot.bmp.pdf
    9.9 MB · Views: 68
  • Like
Reactions: AnierinB and rodken

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    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 -_-
    2
    made this one, looks good. logo.img in attachment, plus original bmp, remove the *.pdf extension (xda impose upload rules)


    boot.png