system.img is usually a raw EXT4 filesystem.
Better yet, look for Python-based open-source alternatives (like mstar-unpack.py on GitLab) and modify them to add the exclusive features yourself. dump mstar unpack repack tool exclusive
Before starting, ensure you have a Python environment installed and the following dependencies from the mstar-tools repository : : To deconstruct the firmware. pack.py : To rebuild the firmware. system