Install Magisk in Recovery and Root Android [No Ramdisk]

PublishedPosted on

Hello buddies! How are you? I am Zara with another tutorial of our Magisk help series. The title of the article is “Install Magisk in Recovery and Root Android”. I am going to teach you how to install Magisk in the recovery partition and root your device that doesn’t have Ramdisk. You will see the stepwise guide below.

Before moving to the guide you have to download the stock firmware of your phone and get the recovery.img file. Then we are going to patch the file using the Magisk app. By that, we can get the magisk_patched.img file. Thereafter the only thing you have to do is to flash the patched file to the recovery partition. So that you will get a rooted phone. Now let’s have a look at the steps in more detail.

How to Install Magisk in Recovery and Root Android [No Ramdisk]

I assume that you have a piece of pretty good knowledge about the advantages of rooting a device by now. You can read the previous articles for more information. However, Don t forget to backup all data before attempting the steps.

Step 1 : Enable USB Debugging and OEM Unlocking before Rooting

As the first step, you need to enable USB Debugging and OEM Unlocking on your phone. Your device will be recognizable by the PC in ADB mode when you enable OEM Unlocking. So you will be able to boot your device to Fastboot mode. Additionally OEM Unlocking is mandatory to proceed with the bootloader unlocking process. Here’s how you gonna enable those.
Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking

Step 2
Install Android SDK

Secondly, you need to install the Android SDK Platform Tools on your PC. I recommend you to install the exact same. That is because those are the official ADB and Fastboot Binary provided by Google. Once you have downloaded the tools, just extract them to any location on your PC. Anywhere that is convenient to you.

Step 3
Unlock Bootloader

Now you have to unlock the bootloader of the phone. If you are new to these you can read our guides on how to unlock the bootloader. But don’t ever forget that unlocking the bootloader will wipe all the device data and might void the warranty as well. So think thoroughly before proceeding with this step. Once you are done with thinking, you can learn how to unlock the bootloader by following guides.

Step 4
Extract recovery.img from Stock Firmware

The next step is to download the stock firmware for your phone. Usually, most of the OEMs upload the firmware file to their official site. If you are a Samsung user, you can use a standalone tool like Frija to download the firmware. After downloading just extract the firmware to any convenient location on your PC.

Pixel firmware is usually present as ZIP. So you can simply extract them using WinRAR. But extracting is not such simple with other OEMs. OnePlus have their partition files in payload.bin. Oppo and Vivo use the OZIP format. Others like Spreasdtrum and Unisoc chipsets pack the firmware as a PAC file. You can read the following guides to learn how to extract files other than ZIP.

Step 5
Install Magisk App and Check for Ramdisk

As the step 5, you have to install the latest Magisk App v22. The word “latest” indicates the Magisk Manager and Magisk Installer ZIP both are in a single package, known as the Magisk App. Once you are finished with the installation you have to verify that the device doesn’t have the Ramdisk partition.

For that purpose, you have to launch the Magisk app and look under the Magisk section. If Ramdisk shows a NO, you can proceed further. If it shows a YES it’s better to root your device using Magisk patched boot.img.

Step 6
Patch recovery.img via Magisk

Here’s the step-wise guide.

  • Firstly transfer the stock recovery.img file to your phone.
  • Then launch the Magisk app.
  • Tap on the Install button which is next to Magisk.
  • Then checkmark Recovery Mode under the options section (only if it is not enabled by default) and tap next.
  • Then navigate to the Method section and choose Select and Patch a file.
  • Now browse to the extracted recovery.img file and select the file.
  • Then tap on the Let’s Go button and Magisk will start patching the file.
  • Once the patching is completed you will have the magisk_patched[random numbers].img file in the Downloads folder of the phone.
  • I recommend you to rename the file by deleting the random numbers. So you will be left with a file named magisk_patched.img.

Step 7
Boot Device to Fastboot Mode

To facilitate the next steps you need to boot your device to Fastboot Mode. Here’s how:

  • First enable the USB Debugging ane connect the phone to PC using a USB cable.
  • Now go to platform-tools folder and type CMD in the address bar and press enter. Or Search CMD and go to Platform tools folder via CMD.
  • Now the Command Prompt will be launched.
  • Then type the below command in the CMD window.
adb reboot bootloader
  • That’s all! Now the device will boot to the Fastboot/Bootloader mode.

Step 8
Flash Magisk Patched recovery.img via Fastboot and Root Android

Now we have come to the last step of the process. Just follow these steps to complete.

  • Firstly transfer the magisk_patched.img file from the phone to the platform-tools folder on the PC.
  • Then type the following command in the CMD window opened within the platform-tools. This will flash the file to the recovery recovery partition on your android device.
fastboot flash recovery magisk_patched.img
  • Now use the following command to reboot your device to the OS.
fastboot reboot

Do you think this article on How to Install Magisk in Recovery and Root Android [No Ramdisk] is helpful? If so, please share this article on Facebook, LinkedIn, etc. And we warmly welcome your queries, comments, and suggestions. Feel free to contact us.
You can join our community and open help Topic under Android.
It’s totally free! And, please don’t forget to like our Facebook page. Thank you very much! Have a nice day! 😊

root root with magisk root with no ramdisk

Leave a Reply