Here is a simple to use script to build splash.img from 5 PNG's. The 5 PNG's are:
- Mi logo screen on locked bootloader
- Fastboot image
- Mi logo screen on unlocked bootloader
- 'System destroyed' image
- 'Please lock the bootloader' early splash.
Like the old script, there is still a size limit per splash. However there is an alternative mode or "hack" that lets you use a larger PNG for image #3, at the expense of rendering image #4 broken (and who cares about that one, right?).
Usage is simple - just download, replace the PNG's in "input" folder, and run the tool. If there are any errors it will say so, otherwise you will get a splash.img that you can flash in fastboot:
fastboot flash splash splash.img
Download from GitHub (Press the green 'Clone or Download' button -> 'Download ZIP'.
AV Warning: Some security software might flag the EXE as suspicious. It's written in a language called AutoIt which is a common language for keyloggers and bots and stuff because it's super easy and awesome to do all kinds of stuff with it. Ignore it/exclude it, or you can compile the included .au3 source yourself if you don't trust it.
Bonus: pre-made splash IMG's included in repo. Flashable ZIP's attached, credits to @GokulNC for the ZIP template.
- splash_rr.img - RR logo splash for seamless transition into RR boot animation