updater-script for flashing raw partition image
Seems like write_raw_image works only from filesystem and does what dd does.
Proper way would be to just extract the images

package_extract_file("aboot.img", "/dev/block/mmcblk0p5");
package_extract_file("modem.img", "/dev/block/mmcblk0p1");