Mstar-bin-tool -
mstar-bin-tool provides secure_partition.py to handle this. You may need to use extract_keys.py to get the necessary keys from MBOOT first.
Note: Newer MediaTek chips (MTK 9xxx) use a different architecture and are not supported.
Once you have modified your target files (like pulling out specific system apps or replacing splash screens), you can combine them back into a flashable .bin asset using pack.py : python pack.py Use code with caution. Copied to clipboard 💡 python pack.py configs/letv-x355pro-full.ini mstar-bin-tool
python --version
: Since MStar devices support encryption, simply having the .img files isn't enough. boot.img and recovery.img are often scrambled. mstar-bin-tool provides secure_partition
: This script is used to encrypt images and generate sign files.
: Recompiles firmware components back into a single .bin file using a configuration file (e.g., .ini ) to define the structure. Once you have modified your target files (like
The output will be a directory (usually called output or based on the bin name) containing the extracted images: boot.img , system.img , recovery.img , and a header.bin . 2. Modifying the Firmware
Splits a monolithic MStar firmware container into its individual partition images (such as kernel, rootfs, and bootloader).