No. An Android kernel is not inherently an IMG file; IMG is a container format, while the kernel is the compiled binary that gets packaged inside boot images, kernel images, or vendor-specific containers depending on the device and bootloader. The two terms describe different layers of the same stack, and mixing them up causes real problems when someone tries to flash the wrong artifact.
The practical consequence matters. If you download a file called boot.img and flash it expecting a new kernel, you're replacing the entire boot partition—kernel, ramdisk, and possibly device tree and vendor boot components—not just the kernel binary. If you extract a raw kernel file and try to flash it as an .img, the bootloader will likely reject it or, worse, accept it and fail to boot.
Understanding what each file actually is prevents bricked devices and wasted troubleshooting.
What "IMG" Actually Means in Android Contexts
An IMG file is a disk image: a byte-for-byte copy of a partition or filesystem, usually with a small header that describes its layout. In Android flashing, .img is a convention for "this file is meant to be written to a named partition," such as boot.img to the boot partition, system.img to the system partition, or vbmeta.img to the verity metadata partition. The extension signals intent and packaging, not the internal content's nature.
That distinction is critical. A boot.img contains a kernel, but so does a vendor_boot.img on devices using the newer boot header version, and so does a kernel.img on some MediaTek-based devices. Conversely, a bare kernel binary produced by a compiler is often named Image (capital I, no dot) on ARM64 builds—an unfortunate collision with the .img convention that confuses beginners constantly.
The Android boot image format itself has evolved. Older devices use the AOSP boot image header (versions 0 through 2), which packs a kernel, a ramdisk, and a second-stage payload. Header version 3 and later, introduced with Android 11's launch requirements, split the generic kernel and ramdisk into boot.img while moving vendor-specific pieces like the device tree blob and vendor ramdisk into vendor_boot.img.
On such devices, the kernel is still inside a .img file, but it's no longer the only thing in that file, and the vendor components live elsewhere.
The Kernel Binary and the Container Are Different Things
The kernel is a single compiled executable produced from the Linux source tree plus vendor patches. On ARM64 Android devices, the build output is typically arch/arm64/boot/Image or Image.gz—a raw binary with a small header, not a filesystem image. This file gets packed into a boot image by tools like mkbootimg alongside the ramdisk and command-line parameters.
So the relationship is packaging, not identity. A kernel can be delivered as a raw binary, compressed into a boot image, embedded in a recovery image, or shipped inside a vendor-specific container like a super.img or a signed partition dump. Saying "all kernels are IMG files" reverses the containment relationship: some kernels are packaged in IMG files, but the kernel is not an IMG file type.
This mirrors how a document can be delivered as a PDF—the PDF is a container, the text inside is the content. When people say "flash the kernel," they usually mean "flash the boot image that contains the kernel," because the bootloader only accepts partition images, not loose binaries.
Why People Conflate Kernels With IMG Files
The confusion arises from three real-world patterns. First, flashing guides almost always distribute .img files because that's what fastboot and the bootloader accept; the kernel inside is invisible until you unpack it. Second, custom kernel projects sometimes ship boot.img files and label them "kernel" in their release notes, so users reasonably assume the file is the kernel.
Third, some devices use a partition literally named kernel, and dumping it produces kernel.img—a genuine image file whose payload happens to be a kernel. That last case is close enough to the query's premise to explain why the myth persists.
There's also a naming trap on ARM64 builds: the compiled output is Image, and because Android tooling frequently uses .img, users who see Image assume it's shorthand for an image file. It isn't. It's the raw ELF-derived binary, and its header is a kernel header, not a partition table or filesystem superblock.
How the Kernel Gets Into a Boot Image
The mkbootimg tool (and its Python reimplementation) assembles the boot image from parts: the kernel binary, the ramdisk, a second-stage bootloader payload on some devices, a command line, and a page size. The output is a file with a magic header and documented offsets to each component. The bootloader reads that header, extracts the pieces, and hands control to the kernel.
Unpacking tools like unpackbootimg or magiskboot reverse this process. Run them on a boot.img and you get separate files: kernel, ramdisk.cpio, dtb, and a bootimg-info text file with offsets and command-line arguments. That kernel file is the binary a developer would modify to build a custom kernel, and repacking means reassembling the image and reflashing it.
On header version 3+ devices, the split is more involved. The bootloader combines pieces from boot.img (generic kernel and ramdisk) and vendor_boot.img (vendor ramdisk and device tree), plus dtbo.img for board-specific overlays. Someone trying to replace a kernel by flashing a single boot.img on such a device may leave the vendor ramdisk mismatched, causing boot failures that won't show obvious kernel errors.
How to Tell What a File Actually Is
Extension-based reasoning is unreliable here, so inspect the file's content. The file command on a Linux system will usually identify a Linux kernel ARM64 boot executable image versus a filesystem or Android boot image.
Compare the file size: raw ARM64 kernels typically run a few tens of megabytes, while boot images add the ramdisk and are often larger, though heavily compressed ramdisks keep the totals in the same order of magnitude—so size alone is a weak signal.
Header inspection is more reliable. Android boot images begin with the magic ANDROID! in their first eight bytes, and vendor boot images begin with VNDRBOOT. A raw ARMB64 kernel starts with a branch instruction or a specific kernel magic, not the boot image header. Running the unpacking tool and seeing whether it succeeds cleanly tells you immediately whether you're holding a container or a bare binary.
| File type | Typical name | Contains | Flashed to |
|---|---|---|---|
| Android boot image | boot.img |
Kernel, ramdisk, command line | boot partition |
| Vendor boot image | vendor_boot.img |
Vendor ramdisk, DTB, header v3+ kernel delivery | vendor_boot partition |
| Raw kernel binary | Image, Image.gz |
Compiled kernel only | Not directly flashable |
| Kernel partition dump | kernel.img |
Kernel binary, sometimes with a small header | Device-specific partition |
| Recovery image | recovery.img |
Kernel plus recovery ramdisk | recovery partition |
The table clarifies the pattern: .img files are partition images, and the kernel may be inside or may be the entire payload depending on how the vendor laid out that partition. The extension is a convention, not a guarantee of content.
Exceptions: When the Kernel Is the Image
Some devices genuinely use a kernel partition whose entire content is the kernel binary or a minimally wrapped version of it. Older MediaTek designs and certain Samsung Exynos platforms historically used a dedicated KERNEL partition containing the kernel with a platform-specific header. In those cases, dumping the partition yields a file that is functionally "the kernel as an image," and the query's intuition holds—for that specific hardware.
Even then, the file usually isn't a pure Image. Vendor headers, compression, and signing blocks get prepended so the bootloader can verify and load it. A user modifying such a file must preserve or regenerate those headers, or the device rejects it.
Devices using Android's Generic Kernel Image (GKI) scheme complicate this further. Under GKI, the core kernel is a signed, generic binary delivered through the boot image, while vendor modules are separated into vendor_dlkm and vendor_boot. The kernel is still inside a .img, but it's deliberately not user-replaceable without signing keys—a design choice that makes "just flash a new kernel image" harder on modern Pixel and many flagship devices.
Practical Implications for Flashing and Custom Development
If your goal is to install a custom kernel, follow the developer's exact instructions rather than the extension. Most custom kernel releases provide a flashable boot.img or a zip that handles repacking and flashing through a recovery like TWRP or Magisk. Flashing a raw Image file with fastboot will fail because fastboot writes to partitions and expects image-format content for the target partition.
If you're building from source, the workflow is to compile the kernel, then use mkbootimg with the device's ramdisk and offsets to produce a flashable boot image. Extracting a stock boot image to study it requires the reverse tools, and any modification must be repacked with matching header settings—wrong page sizes or offsets produce boot loops.
Back up the stock boot partition before experimenting. Fastboot can dump it with a partition-specific read command, and keeping a known-good image is the difference between a recoverable mistake and a long repair session.
The Short Answer Restated
An Android kernel is a compiled binary; an IMG file is a partition image that may contain that binary along with a ramdisk, device tree, and metadata. Some .img files contain only the kernel on specific hardware with vendor headers, but that's a packaging choice, not a universal rule. Treat .img as "flashable partition image" and "kernel" as "the operating system core inside," and the entire flashing workflow becomes clearer.