set_progress(0.0);
ui_print(" ");
ui_print("Nano NoODIN 20160412");
ui_print(" ");
set_progress(0.1);

ui_print("Mounting Partitions...");
run_program("/sbin/mount", "-t", "auto", "/system");
run_program("/sbin/mount", "-t", "auto", "/data");
run_program("/sbin/mount", "-t", "auto", "/cache");

ui_print("@Flashing Modem...");
package_extract_file("nano/modem.bin", "/dev/block/platform/15570000.ufs/by-name/RADIO");

ui_print("@Flashing Bootloader...");
package_extract_file("nano/sboot.bin", "/dev/block/sda1");

ui_print("It is recommended to restart recovery before flashing ROM");

set_progress(0.900000);

unmount("/system");
unmount("/data");
unmount("/cache");
set_progress(1.000000);
