Caution
The logo encoding and decoding are based on the tool by @eriktim and script by carock.
This tool is only for unpacking the .png inside logo.bin image !
- A
logo.binimage from Motorola / Lenovo Hello UI. libpngpackage installed.
Mashopy@HollowBastion:~/moto-bootlogo$ make
g++ -Wall -c -g -I/usr/include/libpng16 -o build/main.o src/main.cpp
g++ -Wall -c -g -I/usr/include/libpng16 -o build/BinFile.o src/BinFile.cpp
g++ -Wall -c -g -I/usr/include/libpng16 -o build/BinHeader.o src/BinHeader.cpp
g++ -Wall -c -g -I/usr/include/libpng16 -o build/BinImage.o src/BinImage.cpp
g++ -Wall -g build/main.o build/BinFile.o build/BinHeader.o build/BinImage.o -lpng16 -o build/moto-bootlogoThis tool has been tested with the
logo.binimage from the Motorola Edge 70 Max / Lenovo Legion Y70 (New generation).
Mashopy@HollowBastion:~/moto-bootlogo$ build/moto-bootlogo logo.bin
Parsing header of 'logo.bin'.
Header size: 173 bytes.
Header logo: 'logo_boot', starts at byte 1024 and occupies 9951372 bytes.
Header logo: 'logo_battery', starts at byte 9952768 and occupies 61675 bytes.
Header logo: 'logo_lowpower', starts at byte 10014720 and occupies 1853800 bytes.
Header logo: 'logo_charge', starts at byte 11868672 and occupies 2164023 bytes.
Header logo: 'switchconsole', starts at byte 14032896 and occupies 44588 bytes.
Found 5 images.
Image size: 626 x 626
Image size: 1440 x 3168
Image size: 1440 x 3168
Image size: 1440 x 3168
Image size: 610 x 135This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
Key points to be aware of:
- You are free to use, modify, and distribute the software.
- If you modify and use the software publicly, you must release your source code.
- You must retain the same license (
AGPL-3.0) when redistributing modified versions. - You cannot keep modifications private if the software is used to provide a networked service.
For full details, please refer to the LICENSE file.