November 14, 2017 Unpack Repack boot.img File and Port Custom ROM Any Kernel

Unpack Repack boot.img File and Port Custom ROM Any Kernel

(Last Updated On: August 5, 2018)




Unpack Repack boot.img File and Port Custom ROM Any Kernel

Lets learn to Unpack Repack boot.img File and Port Custom ROM Any Kernel. This is the tutorial for those who are searching the web how to unpack repack boot.img file. And also for those who don’t have any idea how to port any custom ROM with same chipset and same kernel but with different device. So here is a complete guide to Unpack Repack boot.img File and Port Custom ROM Any Kernel.

Download the software used for packing and unpacking boot.img from here.


Download boot.img


How to Unpack the boot.img image file

Step 1:
After downloading extract the file to the desktop with folder name boot.img

Step 2:
Now make two folders on desktop one for stock ROM and one for port ROM (the ROM which you want to port). For example: My device is Micromax E313 so i will make a folder name Micromax E313 – Stock. And I want to port Amigo OS for my device. So i will make another folder with name Amigo OS- Custom. So that we have 3 folders on desktop like this

Lets learn to Unpack Repack boot.img File and Port Custom ROM Any Kernel


Step 3:
Now import boot.img file from stock ROM & Custom ROM to their respective folder on desktop. For example I imported boot.img file from Micromax E313 stock ROM to folder Micromax E313 – Stock. And also imported boot.img file from Amigo OS Custom ROM to folder Amigo OS-Custom.

Unpack-Repack-boot.img-File-and-Port-Custom-ROM-Any-Kernel-2

Step 4:
Now copy the boot.img image from Stock Folder (Micromax E313 – Stock) to boot.img folder containing boot.img file.
Unpack Repack boot.img File and Port Custom ROM

Step 5:
Inside “boot.img” folder, Press SHIFT + RIGHT BUTTON .
If you are on windows 7 , then try CTRL + RIGHT BUTTON
Then Select ” Open command window here ”



Unpack Repack boot.img File and Port Custom ROM

Step 6:
On CMD window type this command or simply copy paste this command

bootimg.exe – -unpack-bootimg boot.img

Unpack Repack boot.img File and Port Custom ROM

Step 7:
Now you have unpacked your boot.img. So cut all the files from that folder except boot.img software and paste it to a new folder called Stock

Unpack Repack boot.img File and Port Custom ROM

Step 8:
In the same way also unpack the boot.img image from Custom Folder (Amigo OS – Custom) and at last cut all the files from that folder except boot.img software and paste it to a new folder called Ported.



Unpack Repack boot.img File and Port Custom ROM


How to Port Custom ROM any Kernel from boot.img extracted files

Step 9:


After completing unpack operation , Replace a file on Ported folder named kernel from Stock folder with the kernel file.

Unpack Repack boot.img File and Port Custom ROM

Step 10:
In some case , if you get a bootloop , so replace a file from stock to ported called ” ueventd.rc ” to location (/initrd/ueventd)

Unpack Repack boot.img File and Port Custom ROM

Now your ROM is completely ported. So its time to repack the extracted file to new boot.img file.


How to repack the boot.img image file

Step 11:
Now copy all the files from Ported folder and paste it on boot.img folder containing boot.img software

Unpack Repack boot.img File and Port Custom ROM


Step 12:
Open command window by Shift+Right Click and write or copy-paste this code to CMD and press Enter:

bootimg.exe –repack-bootimg

Unpack Repack boot.img File and Port Custom ROM
You are done !! You will get a file called ” boot-new ” . This is your patched boot.img

Step 13:
Now rename boot-new file as boot and copy this file to custom ROM that you are going to flash on your device.

Unpack Repack boot.img File and Port Custom ROM

So this was the tutorial how to Unpack Repack boot.img File and Port Custom ROM Any Kernel.


Video Tutorial

If you didn’t understand the above written tutorial then follow this video. Its simple and complete step by step guide.



Leave a Reply

Ask a Question ?