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.
How to Unpack the boot.img image file
After downloading extract the file to the desktop with folder name boot.img
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
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.
Now copy the boot.img image from Stock Folder (Micromax E313 – Stock) to boot.img folder containing boot.img file.
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 “
On CMD window type this command or simply copy paste this command
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
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.
How to Port Custom ROM any Kernel from boot.img extracted files
After completing unpack operation , Replace a file on Ported folder named kernel from Stock folder with the kernel file.
In some case , if you get a bootloop , so replace a file from stock to ported called ” ueventd.rc ” to location (/initrd/ueventd)
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
Now copy all the files from Ported folder and paste it on boot.img folder containing boot.img software
Open command window by Shift+Right Click and write or copy-paste this code to CMD and press Enter:
You are done !! You will get a file called ” boot-new ” . This is your patched boot.img
Now rename boot-new file as boot and copy this file to custom ROM that you are going to flash on your device.
So this was the tutorial how to Unpack Repack boot.img File and Port Custom ROM Any Kernel.
If you didn’t understand the above written tutorial then follow this video. Its simple and complete step by step guide.