We were browsing the XDA Developers forum recently and realized that many people don’t know how to extract a boot image file. The boot image in Android is used to boot the operating system, thus it is quite common for those who are planning on installing custom firmware to have to tinker with it. Some rooting tools such as Magisk can often require a patched boot image that is different from the original.


Extracting the boot image is a simple process provided you have the right tools. You will need a tool that can unzip your files such as WinZip or 7-Zip. While WinZip is lauded as being the better tool in general, many Android experts recommend 7-Zip for tinkering with Android files because it is the one with more variety when it comes to compressing Android-related files. Thus, we also concur that 7-Zip would work well. But by no means do you have to use 7-Zip or WinZip for that matter.

What Is a Boot Image

The boot image is a file that both smartphones and desktop computers use to allow the software to boot its operating system and run. You will often read explanations about how boot images allow hardware to run, but when they say this, they’re referring to the software that’s on the hardware. Sometimes boot images on operating systems such as Windows can become corrupted. And other times on operating systems such as Android, people are looking for modified boot images to break security barriers.

How to Extract boot.img files from Samsung Firmware

1. Download the firmware and unpack the zip file.

2. Right-click on the file and rename the firmware file’s extension from .tar.md5 to .tar.

3. Open the .tar file and unpack the boot.img.lz4 file.

4. Unpack the boot.img.lz4 file.

You will now have the boot.img (boot image) file in front of you.

Note: The above guide may not work for every single Samsung device. And it certainly will not work for all devices that are not Samsung. One of the more common problems people have is they try to unpack the file and find a .pac file. PAC firmware files are associated with devices with Spreadtrum unisoc processors. You can read more about them in the linked article.

In conclusion, that is how to extract boot image files from Samsung firmware.