I'm trying to alter some files inside an ".img" file.
Example:
logo-x.squashfs.img
romfs-x.squashfs.img
safeEnv.img
sign.img
For that, I extracted the ".img" using 7-Zip and made the changes needed. Archiving these altered files with 7-Zip is not possible though, so I searched a tool to do that but could not find one that is capable of creating the ".img" as it was originally.
I tried to use ImgBurn but it seems to create a different file from the original one. Also tried to use DD but could not make it work with files instead of volumes.
Please, how could I read the original ".img" file to learn its format and create a new one from the new files?