[Development] How to create a flashable zip for Mediatek or Unisoc / Spreadtrum
[Development] How to create a flashable zip for Mediatek or Unisoc / Spreadtrum
Quote:In this video tutorial, I'll be showing you how to create a flashable zip using Assayyed kitchen from boot.img and system.img. You might find a flashable zip helpful when you need to port a custom rom or need to flash your phone. but either don't have a PC or your phone's USB port is bad. In this case, you need to flash from recovery mode. Its very important you know that you cannot flash this kind of zip from stock recovery okay? so you need to have a custom recovery (e.g TWRP, Philz, CWM etc) installed before you can flash a zip like this.
Download Assayyed kitchen, check out website for the download link. You'll need the boot.img and system.img pasted in the PLACE folder. Launch Assayyed kitchen [resizing]. Select 1 (Start Creating Project) & tap Enter Its asking me where I want to get the ROM from. I'll just tap Enter since the default is PLACE folder. I have Stock IMG ROM which is by boot and system image. I type 1 and tap Enter. Its asking me to name the ROM I'll name it Hovatek then tap Enter. It'll copy, rename then extract. Some people start with system.new.dat
For that kind of situation, you use MTK extractor to convert from dat to img format then return to Assayyed Its very important you have enough space on your PC because you might run into the "Clean up working folder" error and you'll find out that system wasn't extracted. In that kind of situation, you either don't have enough space or you're trying to extract a signed image [rephrase]. We have a guide on how to unsign an image at our Forum After you unsign, you can the bring the image back to Assayyed. This process takes a while so be patient.
[extracting files from system.img]. Done extracting. What installer do you want? I go with Standalone (2) ROM name, I maintain Hovatek ROM. Wait while it generates the needed files (updater, meta-inf etc). Completed, press Enter to continue. I have my project details displayed; meta-inf, system unpacked You can begin to make any modification you want. I won't be making any. Once done, its time to repack
I'll select Build ROM for flashing (7) then tap Enter. Its asking how you want to pack, I usually go for RAW because it creates boot and system.img so you can decide to flash via fastboot or any flash tool you wish to use Now, its asking me for the /system mount point. I could select kernel (boot.img), device (I connect) or manual I advise you go for the default (kernel). If you encounter /system mount errors then get the mount point then go for manual. We have a guide on how to find the mount point of Mediatek or Spreadtrum at our Forum.
Type the name of your ROM, tap Enter. [Creating Symlinks]. Its asking If I want to expand my system.img I advise you go with No but If you know what you're doing, select Yes. Asking If I want to zipalign, I select No. [Creating system.img], [Converting Sparse Image to RAW EXT4]. Asking me to type the name of the zip file I maintain Hovatek ROM then tap enter. Compressin level (for the flashable zip), I seleect default (5) [packing in progress]. Asking If I want to sign the zip, I select No (tap Enter).
Done! To check the flashable zip open the ready folder. In my case, I have boot and system image. That's how to create a flashable zip (Mediatek & Spreadtrum) from the boot and system image using Assayyed kitchen.