I looked at how the CT worked to pack the level1 files into an IMG, and I saw that, after creating the PARTITION files, all it did was call some functions in the AmlImagePack DLL file. So I reproduced this behaviour in a tiny tool called AmlImagePacker. It's the exact opposite of this tool.
You can see the source code and download it here : https://github.com/natinusala/AmlImagePacker
It's very simple to use : put it in the Customization Tool folder, with the ROM and the DLL, and run it. It will automagically pack your level1 files in a burnable IMG file.
It doesn't update the level1 PARTITION files from the changes made in level2 BUT :
You can combine this tool with Aml_make_ext4fs.exe and create a script which updates the system partition from the files in the level2 folder and create a burnable IMG (it's very quick). With this, you just have to edit the files of the system folder and run your script without ever opening the CT to have a burnable image. Read the README file of the repository to see how.
Comment