AnierinBliss / opsplash

A command line tool unpack/repack oppo/realme/oneplus splash image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opsplash

A command line tool unpack/repack oppo/realme/oneplus splash image

How to compile

Main program

*** Need zlib-devel

make

As python library

python3 setup.py build
python3 setup.py install

Use python library

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")

Prebuilt library

In prebuilt dir
Have win64 python3.10 library
Have win64 dll library

Usage

Unpack oppo splash image

./opsplash unpack -i splash.img -o pic

Repack oppo splash image

./opsplash repack -i splash.img -o new-splash.img

Only read image info

./opsplash readinfo -i splash.img

About

A command line tool unpack/repack oppo/realme/oneplus splash image

License:GNU General Public License v3.0


Languages

Language:C 96.8%Language:Python 1.9%Language:Makefile 1.4%