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
Built Distribution
File details
Details for the file logobin-1.0.3.tar.gz
.
File metadata
- Download URL: logobin-1.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbcd251eb93b33e0041eef58d5c3065959399e5ff42dc427b576ba15accccd3 |
|
MD5 | a7c9f6b4029cbef91433a131b3168cc3 |
|
BLAKE2b-256 | 0f0391d1a061629396d5335fa26349937633c75cc624ada691a7f42058569fd2 |
File details
Details for the file logobin-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: logobin-1.0.3-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aff90ade43cdc61f46d366826f3f64ce852d9db8052daa3887302dbf0232411 |
|
MD5 | 51c4a60ee23f1a14264634c04d044b09 |
|
BLAKE2b-256 | 0a47017728a91e989042f74d2d94196ddd8e4362d1078f8cc9003aab2b11a0f3 |