How noxcis/xaiomi-bootlogo-editior works
This repository is a Xiaomi UEFI boot-logo extraction and replacement tool. Its main workflow is to obtain an imagefv partition dump, inspect its nested ELF/FV/FFS and compressed LOGO!!!! data, extract editable logos and metadata, then rebuild the image with replacements. The README also documents partition inspection and device dumping. The shell script’s implementation was not sampled, so its internal detection and dump steps are not expanded; flashing is an external user action.
Main entry points: logo_tool.py Command interface · dump_logo.sh Partition dumper
Components 18
Device acquisition
- Partition dumper
dump_logo.sh - imagefv dump
Image parsing
- Command interface
logo_tool.py - ELF / FV parser
logo_tool.py - Inner FV decoder
logo_tool.py - Logo FFS locator
logo_tool.py
Logo editing
- LOGO decoder
logo_tool.py - Logo metadata
logo_tool.py - BMP / PNG logos
Image rebuilding
- Logo encoder
logo_tool.py - FFS / FV patcher
logo_tool.py - LZMA encoder
logo_tool.py - ELF writer
logo_tool.py - Repacked imagefv
Other components
- Device owner
- Xiaomi device
- Image editor
- Fastboot
Connections 22
- Device owner → Partition dumper: runs dump
README.md - Partition dumper → Xiaomi device: reads partition
README.md - Partition dumper → imagefv dump: writes dump
README.md - Device owner → Command interface: runs command
README.md - imagefv dump → Command interface: provides input
README.md - Command interface → ELF / FV parser: parses structure
logo_tool.py - ELF / FV parser → Inner FV decoder: locates compressed FV
logo_tool.py - Inner FV decoder → Logo FFS locator: finds logo FFS
logo_tool.py - Logo FFS locator → LOGO decoder: provides logo section
logo_tool.py - LOGO decoder → BMP / PNG logos: writes images
README.md - LOGO decoder → Logo metadata: writes metadata
README.md - Device owner → Image editor: edits logos
README.md - BMP / PNG logos → Image editor: opens images
README.md - Image editor → BMP / PNG logos: saves replacements
README.md - Command interface → Logo encoder: repack command
README.md - BMP / PNG logos → Logo encoder: reads replacements
README.md - Logo metadata → Logo encoder: provides slot data
README.md - Logo encoder → FFS / FV patcher: builds logo section
logo_tool.py - FFS / FV patcher → LZMA encoder: compresses inner FV
README.md - LZMA encoder → ELF writer: provides compressed FV
README.md - ELF writer → Repacked imagefv: writes image
README.md - Repacked imagefv → Fastboot: flashed by user
README.md