Skip to main content

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.

Metadata

Release files for logobin 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logobin 1.0.3
File Size Uploaded
logobin-1.0.3.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logobin 1.0.3
File Interpreter ABI Platform
logobin-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / logobin-1.0.3.tar.gz

Download URL logobin-1.0.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0dbcd251eb93b33e0041eef58d5c3065959399e5ff42dc427b576ba15accccd3
BLAKE2b-256 checksum
How to use checksums
0f0391d1a061629396d5335fa26349937633c75cc624ada691a7f42058569fd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / logobin-1.0.3-py3-none-any.whl

Download URL logobin-1.0.3-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aff90ade43cdc61f46d366826f3f64ce852d9db8052daa3887302dbf0232411
BLAKE2b-256 checksum
How to use checksums
0a47017728a91e989042f74d2d94196ddd8e4362d1078f8cc9003aab2b11a0f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page