Get Stock Boot/Init_Boot for Root without ROM Download

extract boot without rom download

extract boot without rom download

In this guide, we will show you the steps to extract the stock boot/init_boot file for root without the need to download the ROM. It goes without saying that obtaining administrative privileges by rooting the device via Magisk opens the floodgates to a plethora of customizations and tweaks. Right from flashing mods like LSPosed and Magisk Modules to overclocking the device’s CPU by flashing a custom kernel, the possibilities stand endless.

While these tweaks do have a couple of drawbacks as well, most noticeably the tripping of SafetyNet and Play Integrity, however, for the tech enthusiasts, the benefits accrued from carrying out this task far outweigh the risks involved. If you also echo the same thought process, then there exist two different methods through which you can root your device- with and without TWRP.

In the latter approach, you just need to flash the Magisk ZIP via the custom recovery and then install the Magisk APK. However, if your device doesn’t have a custom recovery, then you’ll have to download the stock firmware for your device [the same version that is currently installed on your device], extract it, and then get the boot.img/init_boot. So where lies the issue?

Well, there isn’t any issue as such, but the entire process is quite lengthy [in the case of Xiaomi, you’ll have to extract the TGZ followed by the TAR file to get the boot file.img] and complicated [in case of OnePlus, you’ll have to extract the boot/init by extracting the payload.bin file via the Fastboot Enhance Tool or Python codes].

So is there a way wherein we don’t have to download the entire stock ROM/firmware to get the boot/init_boot file for rooting? Well, there does exist a couple of nifty workarounds that will help you get this job done. So without further ado, let’s check them out.

Get Stock Boot/Init_Boot for Root without ROM Download

There exist quite a few ways through which you could get this job done. Go through each of them once and then try out the one that is in sync with your requirements.

Via TWRP and ADB Commands

The benefit of this method is that you don’t need root to carry out the said task, but on the flip side, not every device has a working custom recovery. However, if your device does have a recovery, then let’s get started with the steps:

  1. To begin with, download and extract Android SDK Platform Tools on the PC.
  2. Then install the TWRP Recovery and then boot to it via the below command:
    adb reboot recovery
  3. Now type in CMD in the address bar of platform tools and hit Enter.
  4. This will open Command Prompt. Now type in the below commands:
    adb shell
    dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img

    stock boot without rom download

  5. The boot.img file will be extracted and placed in the Internal Storage.
  6. You may transfer the file to the platform-tools folder via the below command:
    adb pull /sdcard/boot.img stock_boot.img

Via TWRP Nandroid Backup

The TWRP Recovery comes with a Nandroid Backup feature which allows you to take a backup of individual partitions on your device. With the help of this feature, we’ll take the backup of the boot/init_boot partition. The benefit of this method is that it doesn’t require root nor does it require a PC. However, it does require a custom recovery, which many phones lack to this date. But if yours does not belong to this category, then here’s how to make full use of this feature. 

  1. To begin with, download and extract Android SDK Platform Tools on the PC.
  2. Then install the TWRP Recovery and then boot to it via the below command:
    adb reboot recovery
  3. Now go to Backup, select Boot/Init_Boot, and perform a right swipe to backup.stock boot without rom download
  4. The boot/init_boot file will be backed up in the Internal Storage on your device.
  5. You may transfer the file to the platform-tools folder via the below command:
    adb pull /sdcard/boot.img stock_boot.img

Via MSM Download Tool

The main task of the MSM Download Tool is to unbrick a OnePlus device. However, it also beholds a hidden Readback Mode that you could use to back up individual partitions on your device. Using this, we will be backing up the boot/init_boot partition, as explained below. If we talk about the benefit of this method, then it doesn’t require root nor does it require a custom recovery. However, the tweak will only work on a OnePlus device.

  1. First off, download and extract the MSM Download Tool on your PC.
  2. Now launch the MSM Tool, select others under Login, and click Next.
  3. Then press the F8 [or Fn+F8] key. It will bring up the Read Back box.
  4. Select the boot/init_boot partition, type in oneplus under Password, and hit OK.stock boot without rom download
  5. You should now see the Read Back button. So boot your device to the EDL Mode.
  6. Once it’s in EDL Mode, click on the Read Back button and it will extract the boot.
  7. Once the extraction is done, it will place the boot.img in the C Drive on your PC.

Via Root

This might sound like a counterintuitive method because usually, we extract the boot/init_boot for rooting, but here our first prerequisite itself asks for root. So in what circumstances could it come in handy? Well, one instance that I could recall is if your device is rooted and you have formatted it, then you may use this method to re-root your device in no time whatsoever.

  1. To begin with, download and extract Android SDK Platform Tools on the PC.
  2. Then enable USB Debugging and connect your device to the PC via USB cable.
  3. After that, type in cmd in the platform-tools folder address bar and hit Enter.
  4. This will launch the Command Prompt. So type the below two commands in it:
    adb shell
    su
  5. You’ll get a SuperUser request, tap Grant. Now, type in the below two commands
    dd if=/dev/block/bootdevice/by-name/boot_a of=/sdcard/boot_a.img
    dd if=/dev/block/bootdevice/by-name/boot_b of=/sdcard/boot_b.img

    stock boot without rom download

  6. Boot_a and boot_b will be extracted and placed inside the platform-tools folder.

Via Termux

The benefit of this method is that you don’t need a PC and neither does it require a custom recovery. On the flip side, your device needs to be rooted. If that’s well and good, then let’s get started.

  1. First off, download and install Termux from F-Droid.
  2. Then launch it and type in the below command in it:
    su
  3. You should now get a SuperUser request, tap on Grant.stock boot without rom download
  4. Finally, type in the below two commands in Termux:
    dd if=/dev/block/bootdevice/by-name/boot_a of=/sdcard/boot_a.img
    dd if=/dev/block/bootdevice/by-name/boot_b of=/sdcard/boot_b.img
  5. The stock boot.img will now be extracted and placed in the Internal Storage.

Via Magisk

When you root your device, then Magisk creates a backup of the stock boot/init_boot so that when you unroot your device, it will replace the patched boot with that stock one. However, the backed-up stock boot is in a format that only Magisk could use, so it’s better not to use this file. Still, we have shared the below steps just for the sake of reference.

  1. First off, download and install Solid Explorer File Manager.
  2. Then launch it, tap on the hamburger menu, and select Root.
  3. You’ll get a SuperUser request, tap on Grant. Now go to /data
  4. You should see the magisk_backup_<random> folder there.
  5. Inside that folder will be the stock boot.img/init_boot.img.

That’s it. These were the various methods to extract the stock boot/init_boot file for root without the need to download the ROM. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Leave a Reply

Your email address will not be published. Required fields are marked *