This guide presents you the steps to unpack and repack MIUI Fastboot ROM. The illustration shows the repacking process of MIUI 7 boot.img file for Redmi Note 3 (Kenzo) but the same steps are most likely applicable on other MIUI devices such as Redmi 3. The process makes use of Android Image Kitchen tool, a Windows based program developed by an XDA Member.
Moving on, the steps below cook MIUI 7 (China Developer Build) boot.img file so that it will be compatible for TWRP flashing on Redmi Note 3. Read on!
- A Windows based computer either laptop or PC.
- Download Android Image Kitchen tool into your computer.
- Download corresponding MIUI Fastboot ROM (.tgz) package – use correct version according to your device model.
- Do it on your own risks. We hold no responsibilities of any possible damage.
Thanks to feds64 at MIUI Forum. All credits belong to him.
Step 1 – Extract the Android Image Kitchen package you’ve just downloaded. You can use either Winzip or Winrar to do so.
Step 2 – Extract the MIUI Fastboot ROM .tgz. For this task you can use either Winrar or 7zip.
At this point, you will have two folders: (1) Folder of Android Image Kitchen (2) Folder of MIUI Fastboot ROM
Step 3 – Go to the extracted Fastboot ROM and find the raw boot.img file within. Have found it? Now move that file to another folder: the Android Image Kitchen folder. You can right-click on the boot.img file > select cut > go to the Android Image Kitchen > then right-click > Paste.
Step 4 – Now still in the Android Image Kitchen folder, do these : right-click and hold the boot.img file > drag it onto unpackimg.bat file until you see “Open with unpackimg.bat” then release it.
Step 5 – You’ll then see a Security Warning pops out. Simply click the Run button.
Step 6 – Now you have to simply wait for the tool to proceed the unpacking mechanism.
Step 7 – Go back to Windows Explorer and still in the same folder, you’ll see a folder named ramdisk. Open it up / go into it.
Step 8 – Inside the ramdisk folder, find the fstab.qcom file. Have found it? Open it using Notepad.
Step 9 – Hit Control+F on your keyboard to launch Notepad’s search feature. Use it to find ,verify anywhere inside the text. Have found it? Now carefully delete that part. Remember, there is a comma before “verify“.
Do not forget to save the change (Control+S) then quit Notepad.
Step 10 – Finally, you then need to repack the modded boot.img file. Doing so is easy, double-click on the repackimg.bat file to execute the process.
Step 11 – Just wait till the process of repacking Android boot image finished.
Step 12 – Once the process has done, you’ll get a new file named image-new.img file.
Congratulation! You now have new MIUI boot.img file. In many cases you can simply rename the image-new.img into boot.img file and use it accordingly. Do not hesitate to leave comment below this article.