In this guide, we will show you the steps to root devices having the MediaTek chipset using the SP Flash Tool. The open-source nature of Android opens the floodgates to the plethora of customizations. We aren’t only talking about the icon packs and launchers. There exists a huge unchartered territory in the form of custom development that beholds tons of tweaks. Once have unlocked the device’s bootloader, there is a plentitude of modifications that you could try out.
However, the support for these tweaks is more inclined towards the Snapdragon chipset. As a result, some MediaTek tech enthusiasts might feel a little left out. This is where the SP Flash Tool comes into the frame. This tool has been specifically designed for the MediaTek devices that comes with quite a few useful functionalities. For example, you could flash a stock rom, flash a custom recovery like TWRP, perform a memory test, or even format all the data on your device.
The best bar about is tool is the ease of user interface. However, if you are using the tool for the first time, then might prove to be a challenging task. This is because of the few technicalities involved with this process. But you should now keep all these worries aside. In this guide, we will show you detailed instructions to root your MediaTek device using the SP Flash Tool. So without further ado, let’s get started.
How to Root any MediaTek Device Using SP Flash Tool
First off, we will show you how to get hold of the stock boot.img file for your device. After this, we will list out the steps to patch this boot.img file which will give us the magisk_patched.img file. Finally, this patched boot.img file will then be flashed to your device via the SP Flash Tool. And your device stands rooted. On that note, here are the detailed instructions to root your MediaTek device using the SP Flash Tool.
Do keep in mind that the below process is quite risky. If you don’t wish to try it out using the SP Flash Tool, then refer to the last section of this guide (Can I Root my MediaTek Phone without SP Flash Tool). With that said, 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.
STEP 1: Download SP Flash Tool
- To begin with, download the latest version of the SP Flash Tool: SP_Flash_Tool_v5.2052_Windows.zip
- Once downloaded, extract the content to any convenient location on your PC.
STEP 2: Download MediaTek Device Stock Firmware
Next up, you will have to download the stock firmware for your MediaTek device. Most of the smartphone manufacturers upload the firmware for their devices on their official sites. However, if your OEM doesn’t upload the same, then make sure to download the firmware from a trustworthy source. Furthermore, make sure to download the same firmware version that is currently installed on your device.
You could check the same from Settings > About Phone. So why is this needed? Well, the reason for the same is that we need to extract the stock boot.img file and then flash its patched version onto your device. If there is any mismatch in the version, then it might lead to a few issues. So only download the firmware that corresponds to your device’s software version. Once done, move over to the next step to root your MediaTek device using the SP Flash Tool.
STEP 3: Extract MediaTek Boot.img from Stock Firmware
Now if your device’s firmware comes in ZIP format, then you could easily extract it via WinRAR or WinZIP. Likewise, Xiaomi uploads the firmware in TGZ format, which you could also extract via WinRAR. However, not every device follows this pattern. Some like Realme have their firmware in OZIP format, and that requires a separate tool. Likewise, some OEMs upload the important partition files in payload.bin. So if your device also falls in this domain, then please refer to our comprehensive guide on this:
- How to Extract payload.bin and get the stock boot image file
- How to Extract OZIP Realme Stock ROM (Firmware)
Once you have got hold of the stock boot.img file, proceed to the next step to root your MediaTek device using the SP Flash Tool.
STEP 4: Patch Stock Boot.img via Magisk
It’s now time to patch the stock boot.img file via Magisk. Doing so will give us the magisk_patched.img file, which will then be flashed to your device via SP Flash Tool. Follow along. So if you need comprehensive and detailed instructions on this topic, then it is highly recommended to check out our detailed guide: How to Patch Stock Boot Image via Magisk. Hower if you wish to know the quicker and shorter path, then follow along:
- To begin with, transfer the stock boot.img file to your device.
- Then download and install the Magisk Manager app on your phone.
- Launch the app and tap on the Install button situated next to Magisk.
- Choose Select and Patch a file.
- Then navigate to the boot.img file and select it.
- Finally, tap on the Let’s Go button situated at the top right.
- The patching process will now begin and should take a couple of seconds.
- Once done, you should get the magisk_patched.img file in the Downloads folder. Transfer this file to your PC and proceed ahead to root your MediaTek device using the SP Flash Tool.
STEP 5: Replace Stock Boot.img with Patched Boot.img
Now that we have the magisk_patched.img file, rename it to boot.img. Then transfer it to the extracted stock firmware’s folder. You will get a notification asking whether you wish to replace the existing file, reply YES/OK. So what we did just now, and why? So here is the thing. SP Flash Tool doesn’t have a native slot to just load the IMG file. Rather it picks up the scatter text file from the stock firmware and loads all the firmware files accordingly.
But it only loads the files from the stock firmware. You cannot instruct it to load the files from any other directory. So as of now, we have replaced the stock boot.img with the magisk patched boot,img file. But since we have renamed this patched file to boot.img, SP Flash Tool will flash it onto the required partition of your device. And since it would flash the patched boot.img file, your MediaTek device will be rooted!
STEP 6: Install MediaTek USB Drivers
- It’s now time to connect your device to the PC in such a way that SP Flash Tool is able to identify it.
- For that, download the MediaTek USB Drivers on your PC: MediaTek_USB_Drivers.exe.
- Once downloaded, launch the setup.exe file and proceed with the on-screen instructions to install it.
STEP 7: Establish Connection between MediaTek Device and SP Flash Tool
- After the installation of the USB driver is complete, it’s time to establish the connection between the device and the tool.
- So start off by launching the SP Flash Tool on your PC. To do so, double-click on the flash_tool.exe file.
- Now there are three different methods to establish a successful connection. Different methods have worked out for different MediaTek devices, so it’s more of a hit and trial, rather than any universal method:
- Method 1: Power off your device. Then connect it to the PC via USB cable and hit the Volume Down button once.
- Method 2: Power off your device. Then connect it to the PC via USB cable but this time press the Volume Down button once.
- Method 3: Power off your device. Now connect one end of the USB cable to your device. Then press and hold the Volume Up and Volume Down button together and while pressing both these buttons, connect your device to the other end of the USB cable.
STEP 8: Flash MediaTek Device’s Magisk Patched Boot.img via SP Flash Tool
Make sure that you have transferred the magisk_patched boot.img file to your PC. Along the same lines, make sure that your device is connected to the PC via USB cable and SP Flash Tool is able to identify it. Furthermore, you should have replaced the stock firmware file with the patched boot.img file inside the extracted stock firmware folder. If that’s all well and good, then proceed ahead with the below steps to root your MediaTek device using the SP Flash Tool.
- Launch the SP Flash Tool on your PC. Click on the Choose button next to Scatter-loading.
- Navigate to the folder where you have extracted the stock firmware file.
- There you should find a scatter.txt file, select it and click Open.
- The tool will now load all the partitions with their respective files.
- [Keep in mind that the boot partition has been loaded with magisk_patched.img file and not the stock boot.img file. This is done to install the patched boot image file which will root your device, as already explained in STEP 5. ]
- Uncheck all the partitions expert for BOOTIMG.
- Finally, hit the Download button situated at the top menu bar and wait for the process to complete.
- As soon as it’s done, you should get the Download OK message. That’s it.
- You may now remove the device from the PC and boot it to the OS (if that doesn’t happen automatically).
Can I Root my MediaTek Phone without SP Flash Tool?
Turns out, there is a possibility to root your device even without the SP Flash Tool. For that, you will need to get the boot.img file from stock firmware. Then patch it via Magisk which will give you the magisk_patched.img. Finally, patch this file to the boot partition via the fastboot flash boot magisk_patched.img command. To try it out, please refer to our comprehensive guide on How to Patch Stock Boot Image via Magisk and Flash it using Fastboot.
With this, we conclude the guide on how to root your MediaTek device using the SP Flash Tool. If you have any queries concerning the aforementioned steps, do let us know in the comments section. We will get back to you with a solution at the earliest.
4 thoughts on “How to Root any MediaTek Device Using SP Flash Tool”
Hi there sir . i have been trying to root my Cubot C30, by using this method with Magisk but it always goes into a bootloop. I tried with bootloader and Sp flash tool. Can you please help me out? It will be greatly appreciate it. P.S.: By the way I have searched on youtube and other sites and I did not find any tutorials, except for a Italian guy which now he deleted his video.I have checked and I got the correct Rom.
Hi Chris, there might be a workaround (but you might have to try it out at your own risk because I haven’t personally tested it yet). In the last step, leave all the partition checked (instead of just the boot partition)and then try the flashing process by clicking on Download.
hola, tengo un equipo umidigi bison pro que su sistema es MT6769_Android_scatter.txt pero nisiquiera en la room oficial se consigue, que debo hacer?
I have a locked bootloader that I can’t unlock. Can I still use sp flash tool to root my moto g pure phone? I only need root to install APK, will not flash custom roms. Thank you