概述
在酷安看到一张表情包,素材是MIUI fastboot界面图片,但是不够清晰,于是考虑自己提取。
原理
splash.img (or splash.bin or logo.img or logo.bin) is the raw file in which the boot logo (splash screen - the picture displayed when the device is booted) is stored.
It is stored under the partition: splash or logo in many Snapdragon devices (might vary for devices)
MTK
导出logo分区
1 | dd if=/dev/block/bootdevice/by-name/logo of=/sdcard/logo.bin |
提取图片
使用LogoBuilder提取。
高通
导出splash分区
1 | dd if=/dev/block/bootdevice/by-name/splash of=/sdcard/splash.img |
提取图片
使用binwalk分析splash.img
(建议使用Linux操作)
1 | binwalk -e splash.img |
结果类似于:
1 | DECIMAL HEXADECIMAL DESCRIPTION |
然后使用dd命令或十六进制编辑器,提取BMP图片即可。
结果
2040x1080:
1920x1080:
参考
[GUIDE] How to Change Boot Logo (Splash Screen) for Snapdragon Devices (splash.img)
Changing boot logo (logo.bin) program