show_progress(0.200000, 10);
assert(getprop("ro.product.device") == "Z01R" || getprop("ro.build.product") == "Z01R" ||
       getprop("ro.product.device") == "Z01RD" || getprop("ro.build.product") == "Z01RD" ||
       getprop("ro.product.device") == "ASUS_Z01RD" || getprop("ro.build.product") == "ASUS_Z01RD" ||
       getprop("ro.product.device") == "ASUS_Z01R_1" || getprop("ro.build.product") == "ASUS_Z01R_1" ||  abort("E3004: This package is for device: Z01R,Z01RD,ASUS_Z01RD,ASUS_Z01R_1; this device is " + getprop("ro.product.device") + "."););
ui_print("Target: asus/WW_Z01R/Z01R:10/QKQ1.191008.001/100.10.107.123:user/release-keys");
ui_print("Flashing abl");
package_extract_file("firmware-update/abl.img", "/dev/block/bootdevice/by-name/abl_a");
package_extract_file("firmware-update/abl.img", "/dev/block/bootdevice/by-name/abl_b");
ui_print("Flashing aop");
package_extract_file("firmware-update/aop.img", "/dev/block/bootdevice/by-name/aop_a");
package_extract_file("firmware-update/aop.img", "/dev/block/bootdevice/by-name/aop_b");
ui_print("Flashing Bluetooth");
package_extract_file("firmware-update/bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth");
ui_print("Flashing cmnlib");
package_extract_file("firmware-update/cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_a");
package_extract_file("firmware-update/cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_b");
ui_print("Flashing cmnlib64");
package_extract_file("firmware-update/cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_a");
package_extract_file("firmware-update/cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_b");
ui_print("Flashing devcfg");
package_extract_file("firmware-update/devcfg.img", "/dev/block/bootdevice/by-name/devcfg_a");
package_extract_file("firmware-update/devcfg.img", "/dev/block/bootdevice/by-name/devcfg_b");
ui_print("Flashing dsp");
package_extract_file("firmware-update/dsp.img", "/dev/block/bootdevice/by-name/dsp");
ui_print("Flashing hyp");
package_extract_file("firmware-update/hyp.img", "/dev/block/bootdevice/by-name/hyp_a");
package_extract_file("firmware-update/hyp.img", "/dev/block/bootdevice/by-name/hyp_b");
ui_print("Flashing ImageFv");
package_extract_file("firmware-update/ImageFv.img", "/dev/block/bootdevice/by-name/ImageFv_a");
package_extract_file("firmware-update/ImageFv.img", "/dev/block/bootdevice/by-name/ImageFv_b");
ui_print("Flashing keymaster");
package_extract_file("firmware-update/keymaster.img", "/dev/block/bootdevice/by-name/keymaster_a");
package_extract_file("firmware-update/keymaster.img", "/dev/block/bootdevice/by-name/keymaster_b");
ui_print("Flashing modem");
package_extract_file("firmware-update/modem.img", "/dev/block/bootdevice/by-name/modem");
ui_print("Flashing qupfw");
package_extract_file("firmware-update/qupfw.img", "/dev/block/bootdevice/by-name/qupfw_a");
package_extract_file("firmware-update/qupfw.img", "/dev/block/bootdevice/by-name/qupfw_b");
ui_print("Flashing storsec");
package_extract_file("firmware-update/storsec.img", "/dev/block/bootdevice/by-name/storsec_a");
package_extract_file("firmware-update/storsec.img", "/dev/block/bootdevice/by-name/storsec_b");
ui_print("Flashing tz");
package_extract_file("firmware-update/tz.img", "/dev/block/bootdevice/by-name/tz_a");
package_extract_file("firmware-update/tz.img", "/dev/block/bootdevice/by-name/tz_b");
ui_print("Flashing xbl");
package_extract_file("firmware-update/xbl.img", "/dev/block/bootdevice/by-name/xbl_a");
package_extract_file("firmware-update/xbl.img", "/dev/block/bootdevice/by-name/xbl_b");
ui_print("Flashing xbl_Config");
package_extract_file("firmware-update/xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_a");
package_extract_file("firmware-update/xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_b");

show_progress(0.100000, 2);
set_progress(1.000000);
