Mstar-bin-tool: Link

: Crucial for modern devices with Secure Boot enabled, this script extracts AES and RSA public keys from the MBOOT binary. These keys are necessary for decrypting or re-encrypting sensitive partitions like boot.img and recovery.img .

python3 mstar_pack.py -i unpacked/ -o new_firmware.bin mstar-bin-tool

Many MStar-based Android TVs come with bloatware, spyware, or region locks. By unpacking the firmware, you can remove unwanted APKs or modify build.prop settings before repacking and flashing. : Crucial for modern devices with Secure Boot

Sample output:

The suite consists of several key scripts, each serving a specific stage of the firmware modification process: mstar-bin-tool