The “stock ROM” is often compressed as a QFIL package containing rawprogram0.xml and patch0.xml , plus multiple *.bin files.