A command line tool unpack/repack oppo/realme/oneplus splash image
*** Need zlib-devel
make
python3 setup.py build
python3 setup.py install
import os
import opsplash as o
f = "splash.img"
# Unpack a splash image
if os.access(f, os.F_OK):
# o.readinfo(f)
o.unpack(f)
if os.access(f, os.F_OK):
o.repack(f, "new-splash.img")
In prebuilt dir
Have win64 python3.10 library
Have win64 dll library
./opsplash unpack -i splash.img -o pic
./opsplash repack -i splash.img -o new-splash.img
./opsplash readinfo -i splash.img