[Android Software Development] mlgmxyysd:
After unlocking the BootLoader, you may encounter the following situations:
- Software or hardware not working properly or even damaged.
- Loss of data stored in the device.
- Credit card theft, or other financial loss.

If you're experiencing any of the above, you should take all the responsibility yourself as this is the risk you may encounter when unlocking BootLoader.

This obviously does not cover all risks. You've been warned.

Introduction​

Magic Splash Wand is a set of scripts for unpacking and packaging the splash screen of Qualcomm series devices on boot, powered by PHP.

Supports logo and splash, excludes imagefv. Devices need to have BootLoader unlocked in order to be flashed.

It currently has two separated scripts, so you can use different scripts according to your device:​

Magic Splash!! Wand (for universal Qualcomm devices)​

Magic Splash Logo! Wand (for OPlus Qualcomm devices)​

View attachment 6091964​

✨ If you like my projects, you can buy me a coffee at:​

爱发电​

PayPal​

Patreon​

​

How to get splash image?​

Typically, it may have a partition name of "splash" or "logo". You can extract the splash image of the device from the Full-OTA or 9008 package.

If you have acquired root access, you also can extract directly from the device's partition. You can find the block file with the corresponding name under the partition path (for AB/Virtual-AB devices it may have the _a/_b suffix). Just copy it directly to a non-root readable area using a file manager.

The partition path is usually "/dev/block/bootdevice/by-name/", but may vary depending on the device.

If you don't have root access, but the system supports DSU feature. You can sideload a temporary system with root privileges to use for extracting partition images.

​

Why imagefv is not supported?​

Imagefv, unlike splash/logo, is a UEFI firmware. At device startup, Secure Boot validates the partition to prevent it from being illegally tampered with, and even if the BootLoader is unlocked, the validation cannot be skipped.

However, writing empty/erasing that partition directly will pass validation. Maybe you could try writing it empty and reusing the splash/logo format. Depending on the vendor settings, it may or may not work, who knows.

​

Preparation before use​

Download and install PHP 8.1.0+ for your system from the official PHP website.​

Rename"php.ini-development" to "php.ini".​

Enable GD extension ("extension=gd") in "php.ini".​

​

Usage​

Magic Splash!! Wand​

1. First unpack splash image.

View attachment 6091969

2. Customize the image you want to display at boot time. The image format is arbitrary and can be different from when unpacked, supporting all common formats. (AVIF, BMP, GD2, GD, GIF, JPEG, PNG, TGA, WBMP, WEBP, XBM, XPM, etc.)

View attachment 6091970

3. Then repack to splash image.

View attachment 6091971

4. Flash image to your device :)

​

Magic Splash Logo! Wand​

1. First unpack splash image.

View attachment 6091972

2. Customize the image you want to display at boot time. The image format is arbitrary and can be different from when unpacked, supporting all common formats. (AVIF, BMP, GD2, GD, GIF, JPEG, PNG, TGA, WBMP, WEBP, XBM, XPM, etc.)

View attachment 6091973

3. (Optional) Customize the metadata of splash image if you want. (e.g. Leave your signature in the splash description, or change compression settings)

View attachment 6091974

4. Then repack to splash image.

View attachment 6091975

5. Flash image to your device :)

​

Download & Source​

GitHub: MlgmXyysd/Magic-Splash-Wand

​

Changelog​

​

Spoiler content hidden.

​

Need Help?​

Leave your questions in this post or GitHub Issues.

​

License & Copyright​

No license, you are only allowed to use this project. All rights are reserved by MeowCat Studio, Meow Mobile and NekoYuzu (MlgmXyysd).​