Skip to main content

Command line utility for creating or unpacking boot logos for 8227l-based Android head units

Project description

logobin

=== A simple command line utility for working with logo.bin files for Android head units based on the ac8227l SoC.

This utility is made to simplify the process of extracting the MediaTek header from a logo.bin file or adding it to an image file you want to use as your boot screen. All the units I've seen need a 1024x600 pixel bitmap image in 8-bit RGB color.

Help is available from the command line with the -h or --help option, but basic usage is as follows:

-c (file)             Test a file for the presence of a valid header.
-u (logo.bin file)    Unpack logo.bin to a header and image file.
-p [(header file) (image file) (optional: filename)]
						Pack header and image into a flashable binfile.If not given, filename defaults to
						logo.bin

Using logobin as a module:

If you'd like to use this script as a module in some other code, it exposes the following methods:

check(these_bytes): Accepts a list of bytes as input, and tests to see if they start with a valid header. logo_bin_pack(header, bmp, filename): Accepts an MTK header, a bitmap file and an optional output filename as input. Packs a logo.bin file. If not given, filename defaults to logo.bin
logo_bin_unpack(binfile): Accepts a logo.bin with a valid MTK header as input, and unpacks it, producing header.bin and logo.bmp

Questions or comments can be directed to threadreaper@gmail.com. Pull requests are welcome if you discover any issues.

Copyright \[2020\] \[Michael Podrybau\]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logobin-1.0.3.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

logobin-1.0.3-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page