Why are we waiting? Let’s get into business.
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.
Телефоны Android хорошо известны своей индивидуальной настройкой и возможностью повышения привилегий root. И все это возможно путем рутирования телефона Android. Но для рутирования телефона Android нам нужно установить Magisk, который является источником бесшовного рутирования. Есть несколько способов установить Magisk, например, с помощью специального восстановления. Если вы не хотите устанавливать TWRP Recovery, это руководство для вас. Здесь вы узнаете, как установить Magisk без TWRP или любого другого кастомного Recovery.
TWRP – самое популярное кастомное рекавери для телефонов Android. Проект TeamWin начался много лет назад, когда рутирование и другие модификации были легкими. И с тех пор TWRP Recovery значительно улучшился, добавив кучу новых функций. Но обычно это для пользователей, которые любят часто менять ПЗУ или устанавливать zip-файлы. Поэтому, если вы не планируете устанавливать какое-либо пользовательское восстановление, у вас все еще есть возможность установить Magisk на телефоны Android.
В этом руководстве мы не собираемся использовать какое-либо пользовательское восстановление, включая TWRP и OrangeFox. Хотя исключение пользовательского восстановления сокращает количество способов, все же у нас есть эффективный метод для установки Magisk и рутирования телефонов Android.
In one of my articles: How to Root Android device without TWRP Recovery, the first prerequisite is that your device needs to have Ramdisk. If that is not the case, then you wouldn’t be able to patch the stock boot.img file and then flash it to the boot partition. And this is exactly what happened with one of our readers- his device didn’t come with a boot ramdisk.
So he asked for an alternate route (apart from flashing the Magisk app via TWRP, since there was no custom recovery for his device). Turned out, there exists another method to root a device that doesn’t have Ramdisk. And this guide is going to focus on this set of devices only. So without further ado, here are the steps to install Magisk in the recovery partition and then root your Android device.
Well, you all might be aware of the benefits of rooting a device (installing Magisk Modules, Xposed Framework, Substratum Themes). We wouldn’t be divulging much into that. Just makes sure to take a backup of all the data on your device before proceeding with the below instructions. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.
- Enable USB Debugging and OEM Unlocking
- Instal Android SDK
- Unlock Bootloader
- Extract recovery. img from Stock Firmware
- Install Magisk App | Check for Ramdisk
- Patch recovery. img via Magisk
- Flash Magisk Patched recovery. img via Fastboot | Root Android
- Sadique Hassan
- Install Android SDK
- Download Stock Firmware
- Extract Boot. img From Firmware
- Patch Stock Boot. img via Magisk
- Flash Patched Boot. img via Fastboot
- Benefits and Risks of Rooting Custom ROM via Magisk
- How to Root any Custom ROM by Sideloading Magisk
- Download Magisk
- Root any Custom ROM via Magisk Patched Boot
- Permanent Root Custom ROM via Magisk Direct Install
- ROM Specific Rooting Guides
- Unable to repack boot image
- The Tecno Spark got stuck at boot after uninstalling Magisk from app
- I unroot Tecno Spark but still the apps say my mobile is rooted.
- Magisk keeps uninstalling
- How to Root Tecno Spark using Magisk Patched Boot. img
- Enable USB Debugging and OEM Unlocking on Tecno Spark
- Unlock Tecno Spark Bootloader
- Extract Boot. img from Tecno Spark Firmware
- Step 7Flash Magisk Patched Boot. img and Root Tecno Spark
- OTA Update fails after using Magisk Root [Install failReason
- Invalid image
- Установить Magisk без TWRP
- Патч загрузочного образа или файлов AP с помощью Magisk
- Шаги по установке Magisk без TWRP
- Шаги по установке Magisk без TWRP на телефоны Samsung
- I can’t root [name] with Magisk
- How to Install Magisk in Recovery and Root Android [No Ramdisk]
- Step 3Unlock Bootloader
- Step 6Patch recovery. img via Magisk
- Step 7Boot Device to Fastboot Mode
- Step 8Flash Magisk Patched recovery. img via Fastboot and Root Android
Enable USB Debugging and OEM Unlocking
To begin with, you will have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.
Instal Android SDK
Next up, install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.
Unlock Bootloader
Next up, you will have to unlock the device’s bootloader. If you haven’t done so, then you may refer to our below guides. Do keep in mind that doing so will wipe off all the data on your device and might void the warranty as well. Furthermore, apps like Google Pay (due to SafetyNet getting tripped) and Netflix (due to WideVine L1 degradation to L3) might not function along the expected lines. So if that’s well and good, then here are the guides that will help you unlock the bootloader:
Once you have unlocked the bootloader, move over to the next step of this guide to install Magisk in the recovery partition and then root your Android device.
Extract recovery. img from Stock Firmware
Next up, download the stock firmware for your device. Most of the OEMs upload the firmware file over to their official site itself. In the case of Samsung, you could use a standalone tool such as Frija to download the firmware. Once you have downloaded the firmware, extract it to any convenient location on your PC.
In the case of Pixel, the firmware files are present as ZIP, so you could easily extract them via WinRAR. However, things aren’t so easy for other OEMs. For example, OnePlus have their partition files in payload.bin. On the other hand, Oppo and Vivo pack it under OZIP format. Likewise, devices with Spreasdtrum and Unisoc chipsets have their firmware as a PAC file. So in those cases, you may refer to our below guides.
Install Magisk App | Check for Ramdisk
Patch recovery. img via Magisk
To install this Magisk patched recovery file and then root your Android device, you will have to boot your device to Fastboot Mode. Here’s how it could be done:
Flash Magisk Patched recovery. img via Fastboot | Root Android
That’s it. With this, we conclude the guide on how to install Magisk in the recovery partition and then root your Android device that doesn’t have Ramdisk. 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.
Sadique Hassan
A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”
In this guide, we will show you the steps to root your Android 12 device via Magisk patched boot.img, without using TWRP. The latest iteration of Android has just been released by the Silicon Valley giants. And with that, there are a plethora of new and interesting features that are worthy of your attention. However, let’s not dive deep into the feature set as of now since we are mostly interested in the custom development of this build.
However, since the latest OS has just passed the Developer Preview stage and is over to the Beta state, there are some concerns as to how one could root their devices. If you are also having doubts regarding the same, then this guide is here to help you out. Given here are the detailed instructions to root your Android 12 device via Magisk patched boot.img.
Since the OS is still in its testing phase, there’s no custom recovery as of now. Hence you cannot directly flash the Magisk App via TWRP to obtain root. This then leaves us with the second method- extracting stock boot.img from firmware, patching it via Magisk, and flashing it via Fastboot.
Install Android SDK
First and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.
Next up, you will also have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.
Next up, you will also have to unlock the device’s bootloader. Do keep in mind that doing so will wipe off all the data from your device and could nullify its warranty as well. So if that’s all well and good, then please refer to our detailed guide on How to Unlock the Bootloader of Any Android Device.
Download Stock Firmware
Now download the stock firmware for your device. Make sure you download the same version that is currently installed onto your device. Once downloaded, extract it to any convenient location on your PC. We will use two files from this firmware to root your Android 12 device via Magisk patched boot.img.
Extract Boot. img From Firmware
You will now have to get hold of the stock boot.img file from the firmware that you have just downloaded. For Pixel devices, you can simply extract the firmware and get that file. However, for other OEMs, things are a little bit different. So refer to your device-specific guides to extract the stock boot.img file for your device from the below links:
Patch Stock Boot. img via Magisk
As soon as you execute the above command, AVB and DM Verity would be disabled. You may now proceed ahead with the final step to root your Android 12 device via Magisk patched boot.img.
Flash Patched Boot. img via Fastboot
That’s it. These were the steps to root your Android 12 device via Magisk patched boot.img without using TWRP Recovery. 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. And here are some other related guides that you should check out as well:
In this guide, we will show you the steps to root any custom ROM using Magisk. While OEM nowadays packs in a plethora of features in their stock ecosystem, however, that might not be in sync with everyone’s requirements. On one hand, some OS skins end up giving up a bloated usage experience, whereas, on the other hand, the viral design and UI element of some OS might not be welcomed by all.
Apart from that, the OEM offers updates for a limited time frame, before the device reaches the EOL stage. Fortunately, there is a one-stop solution to all these issues- welcome abode a custom ROM onto your device! In this regard, there are a plentitude of AOSP-based ROMs that you could try out, with the likes of Lineage, Pixel Experience, and crDroid being just some of the noteworthy players in this domain.
Benefits and Risks of Rooting Custom ROM via Magisk
Once you root your device, you will be in a position to flash a plethora of mods. These include the likes of Fox Magisk Modules, Substratum Themes, Xposed Framework via LSPosed, and Viper4Android among others. Along the same lines, you could also flash a custom kernel and implement your desired CPU profile. However, such tweaks do come with a few risks as well.
How to Root any Custom ROM by Sideloading Magisk
Moreover, while the process will not wipe off data, it is still recommended to be on the safer side and take a complete device backup beforehand. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.
First and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform tools folder, which will be used throughout this guide.
Download Magisk
That’s it. These were the steps to root the Custom ROM via Magisk. 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.
Root any Custom ROM via Magisk Patched Boot
First off, you will have to extract the custom ROM’s boot.img file. If the ROM is simply in a ZIP file, then the extraction could be done via WinZIP/WinRAR. On the other hand, if it is in a BIN format, then you will have to use the Fastboot Enhance Tool for extraction, as shown below:
On the other hand, if things don’t go as planned and your device ends up in a bootloop/ softbrick, then just a normal reboot will fix the issue. So on that note, let’s get started with the second approach. For that, execute the below command in the CMD window and your device will be booted to a temporarily rooted OS.
fastboot boot magisk_patched.img
Permanent Root Custom ROM via Magisk Direct Install
After executing the above command, your device will be booted to the OS with a temporary root. Here’s how to make it permanent:
This was the second method to root any custom ROM via Magisk Patched Boot.img. 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.
ROM Specific Rooting Guides
While the aforementioned steps should be sufficient enough to get the job done, but you could also refer to the below ROM-specific guides and their associated videos to obtain root. We will be adding more ROMs to this list, so do keep a tab on this section at regular intervals:
Unable to repack boot image
Q : I tried to install MAGISK v16.O using MAGISK installer. But there is a message saying, Installation failed with (! Unable to repack boot image! Failed! ! Installation failed). What can I do to get rid of this?
A: Just try uninstalling v15.3 first and then install v16.0 clean.
The Tecno Spark got stuck at boot after uninstalling Magisk from app
Q: I installed Magisk via TWRP(Temp version) and installed some modules. Thereafter, I decided to uninstall Magisk using the Magisk Manager APK. Then the phone rebooted and stuck into the phone logo with the red danger logo. I tried flashing Magisk again via Temp TWRP, but now a few apps keep crashing. I tried uninstalling and reinstalling them. But couldn’t fix it. Can you help me?
A: If your phone is stuck in the boot loop or apps still crashing, then you have to wipe the Dalvik cache again. If you still need to unroot for whatever reason you can try this:
I unroot Tecno Spark but still the apps say my mobile is rooted.
Q: I completely unrooted my mobile a few days back. But still, many apps say that the device is rooted. Thereafter I rooted my device using Magisk HIDE. Please help me!
A: If your bootloader is unlocked, they will report your device as a rooted device. According to your description, Magisk Hide alone has failed to do the job. I suggest you try the “Repackage Magisk Manager” option in the Magisk Manager settings. It worked for me.
Magisk keeps uninstalling
Q: During the past 4 days I had to re-install Magisk 16.3 at least 4 times a day. Because it keeps uninstalling itself. I have previously experienced this issue with Magisk, but it has gotten worse instead of being solved.
A: After uninstalling, you can try flashing the stock boot image from your ROM/firmware package/factory image.
How to Root Tecno Spark using Magisk Patched Boot. img
Firstly you need to install the Android SDK Platform Tools on your PC. As some of you are already aware this is the recommended official ADB and Fastboot binary given by Google. Just download it and extract it to any convenient location on your PC. Then you will have the platform-tools folder, which is essential for the process.
Enable USB Debugging and OEM Unlocking on Tecno Spark
Then you should enable USB Debugging and OEM Unlocking on your Tecno Spark Device. By unlocking OEM, you will be able to make your phone discoverable by the PC in ADB mode. And then allowing you to boot your device to Fastboot Mode.
Here’s how you gonna do that. : Enable USB Debugging and OEM Unlocking
Unlock Tecno Spark Bootloader
As the third step, you need to unlock the bootloader of the phone. Don’t ever forget that unlocking will wipe all the device data. So, perform a complete backup beforehand and then refer to our guide on How to Unlock the Bootloader on Tecno Spark.
Extract Boot. img from Tecno Spark Firmware
Then you have to download the firmware for your Tecno Spark. You have to download the same version that is currently installed onto your device. After downloading, extract the file to a suitable location on your PC.
Still Can’t found boot.img or Don’t know how to find?
adb reboot bootloader
Disable DM Verity: Only if you have a problem with performing step 7.
Step 7Flash Magisk Patched Boot. img and Root Tecno Spark
fastboot flash boot magisk_patched.img
Now, you have successfully rooted your device.
OTA Update fails after using Magisk Root [Install failReason
If you can boot up, but Magisk isn’t working as expected (not detecting the Magisk installation, loss of root, etc), there are a few troubleshooting steps you can try.
Invalid image
If you see a message in the install log, indicating “Invalid image: not signed”, that means your boot image is not signed. Don’t panic! It’s perfectly normal and nothing to worry about.
Установить Magisk без TWRP
Magisk – это мощный инструмент / приложение для Android, которое делает возможным рутирование. Другие методы, такие как рут одним щелчком мыши, больше не эффективны из-за улучшенной безопасности на телефонах Android. Но все благодаря Джону Ву за Magisk, который является единственным эффективным инструментом для рутирования. И это работает для всех телефонов Android, если вам удастся разблокировать загрузчик.
В этом руководстве мы собираемся использовать Magisk для исправления файла из прошивки, которую мы можем установить с помощью команд fastboot или с помощью инструмента flash, в зависимости от вашего устройства. Мы собираемся разделить руководство на несколько разделов, чтобы упростить работу с ним. Начнем с требований.
Примечание. Убедитесь, что вы устанавливаете Magisk на свой страх и риск. Он может даже заблокировать ваше устройство, и в таких случаях вы можете самостоятельно прошить прошивку или посетить ближайший сервисный центр.
Патч загрузочного образа или файлов AP с помощью Magisk
В этом разделе вы узнаете, как исправить файл. Патченный файл Magisk позволит вам установить Magisk на ваше устройство для обновления привилегий root. Файл, который необходимо исправить, зависит от вашего устройства. Давайте посмотрим, как исправить файл с помощью Magisk.
Так что это простой способ исправить файл, который помогает рутировать телефоны Android. И как только у вас есть исправленный файл, вы можете установить Magisk на свой телефон, и это тоже без специального восстановления. Давайте теперь перейдем к руководству по установке Magisk и Root Android Phone. Первый способ подходит для всех телефонов Android, кроме Samsung. Если у вас устройство Samsung, пропустите этот метод.
Шаги по установке Magisk без TWRP
Теперь, если у вас есть телефон Samsung, попробуйте следующий метод.
Шаги по установке Magisk без TWRP на телефоны Samsung
Теперь на вашем телефоне Samsung установлен Magisk.
Здесь у вас есть руководство по установке Magisk без TWRP на все телефоны Android, включая телефоны Samsung. В случае, если у вас есть какие-либо вопросы, дайте нам знать в разделе комментариев.
I can’t root [name] with Magisk
If MagiskHide or SafetyNet starts failing after an update to either Magisk, the app, or both you can fix it by toggling MagiskHide off and on (also see ”Test MagiskHide”).
A “process error” when installing Magisk is usually caused when the app doesn’t have storage permission. So you can fix it by clearing app data.
How to Install Magisk in Recovery and Root Android [No Ramdisk]
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 3Unlock Bootloader
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 6Patch recovery. img via Magisk
Here’s the step-wise guide.
Step 7Boot Device to Fastboot Mode
To facilitate the next steps you need to boot your device to Fastboot Mode. Here’s how:
Step 8Flash Magisk Patched recovery. img via Fastboot and Root Android
fastboot flash recovery magisk_patched.img
Q: I got this error when installing Magisk using TWRP. What am I supposed to do now?
Updater process ended with ERROR:1
Error installing zip file ‘/sdcard/MagiskManager/Magisk-v13.3.zip’
A: I advise you to use the magisk_uninstaller.zip first. From what I saw in your log, your boot. img is already patched by something else. Therefore, you need to install Magisk on your stock boot.img.