wahyu6070/jancox ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple command line tool for unpacking and repacking Android ROM zips on Android, Linux, and Windows.
I want to drop a ROM into an input folder, run unpack, edit the extracted partitions like system, vendor, product, and then run repack to create a new ROM zip in an output folder. It should handle the common ROM types, like recovery ROMs with new.dat and transfer.list, fastboot factory images, OTA zips with payload.bin, and ROMs with super.img. It should keep file permissions, owners, SELinux labels, symlinks, and capabilities so the rebuilt image still flashes correctly.
Make it work without root if possible, and make the same workflow usable from Termux on Android and from normal Linux or Windows. If needed, look up any current docs online, but keep the app itself straightforward for someone who just wants to unpack, edit, and repack a ROM safely.
Are you gonna build this?
make sure you review the code using coderabbit