ui_print(" ");
ui_print(" ");
ui_print("|||||| ||  || |||||| |||||| ||||||");
ui_print("||  || ||  || ||     ||  || ||  ||");
ui_print("|||||| |||||| |||||| ||  || ||  ||");
ui_print("||     ||  || ||     ||  || ||  ||");
ui_print("||     ||  || |||||| ||  || ||||||");
ui_print("::::::::::::::::::::::::::::::::::");
ui_print("   ||||   |||||| |||||| ||||||");
ui_print("     ||   ||  || ||  ||     ||");
ui_print("     ||   |||||| |||||| ||||||");
ui_print("     ||       ||     || ||");
ui_print("   |||||| |||||| |||||| ||||||");
ui_print(" ");
ui_print("Installing crackling bootloader and seed NCL17F modem...");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
package_extract_file("emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");
package_extract_file("hyp.mbn", "/dev/block/bootdevice/by-name/hyp");
package_extract_file("modem.img", "/dev/block/bootdevice/by-name/modem");
package_extract_file("rpm.mbn", "/dev/block/bootdevice/by-name/rpm");
package_extract_file("sbl1.mbn", "/dev/block/bootdevice/by-name/sbl1");
package_extract_file("tz.mbn", "/dev/block/bootdevice/by-name/tz");
ui_print("Writing Splash Logo...");
package_extract_file("cyanogen_google.img", "/dev/block/bootdevice/by-name/splash");
ui_print(" ");
ui_print("Installing TWRP 3.0.2-5 crackling");
delete("/system/etc/install-recovery.sh");
package_extract_file("recovery.img", "/dev/block/bootdevice/by-name/recovery");
unmount("/system");
ui_print("Installation done! ");
ui_print("Reboot recovery after installation...");
ui_print("Enjoy crackling ROMS!");
ui_print(" ");
ui_print("Tip:");
ui_print("Reboot to bootloader, via TWRP recovery reboot options or Power and Volume Up buttons if power is off, after flashing this zip. If you see the logo CYANOGEN and FASTBOOT MODE and its options below it, then you are good to go.");
ui_print("Then select reboot to recovery by pressing volume up or down button for navigation and power button to select.");
ui_print("Thanks to beroid and xda-developers.com");
ui_print("Done.");