It would be relatively easy to extend this script to unpack and pack the whole RKFW/RKAF file. This would remove our dependence on imgrepackrk and remove additional reads of the entire data for MD5/CRC purposes.
It might even be possible to attach a loop device directly to the system part of the file and do our modifications in-place is we can generate the offsets.
The script should get an option to copy it's input and name the modified output file
It would be relatively easy to extend this script to unpack and pack the whole RKFW/RKAF file. This would remove our dependence on imgrepackrk and remove additional reads of the entire data for MD5/CRC purposes.
It might even be possible to attach a loop device directly to the system part of the file and do our modifications in-place is we can generate the offsets.
The script should get an option to copy it's input and name the modified output file