Oppo A5s: Unlock Bootloader | Root via Magisk | TWRP
Yes, you read that write, it’s not clickbait! You can now easily unlock the bootloader on your Oppo A5s and root it via Magisk and TWRP. Even though Oppo has made it near about impossible for us to step into the custom development, XDA Senior Member ZG089 found a nifty method using which you can bypass all these restrictions and gain administrative privileges over your device.
In simpler words, you can unlock the bootloader and root your device via both methods- by patching the boot.img via magisk and flashing it via SP Flash Tool AND by directly flashing the Magisk ZIP via TWRP, which in turn will be installed via SP Flash Tool as well. So, without any further ado, let’s make you aware of the instructions to get both of these jobs done. Follow along.
- How to Unlock Bootloader and Root Oppo A5s using MTK Exploit How to Boot Oppo A5s to BROM Mode STEP 1: The Prerequisites STEP 2: Download Required Files STEP 3A: Unlock the Bootloader on Oppo A5s [Windows 10] STEP 3B: Unlock the Bootloader on Oppo A5s [Windows 11] STEP 4A: Root Oppo A5s via Magisk STEP 4B: Root Oppo A5s using TWRP STEP 5: Remove Orange State Warning in Oppo A5s [OPTIONAL]
How to Unlock Bootloader and Root Oppo A5s using MTK Exploit

Before starting, please take a complete device backup. Moreover, unlocking the bootloader might nullify the device’s warranty as well, so only proceed ahead if that’s fine with you. 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.
NOTE: We have only tested this guide on the Oppo A5s. It may or may not work on other Oppo devices. You are free to try it out on other Oppo devices, but at your own risk.
How to Boot Oppo A5s to BROM Mode
During the course of this guide, you’ll have to boot to the BROM Mode a couple of times. Here’s how it can be done:
- To begin with, turn your phone off.
- Then press and hold the Volume Up + Volume Down together and plug your phone into the USB, which in turn should be connected to the PC.
- Once you hear the USB connection sound from your PC, you may let go of the keys, as your phone is now in the BROM mode.
STEP 1: The Prerequisites
- *First, update your device to the latest firmware A.46 [compulsory].
- *Likewise, download that firmware and extract the boot.img from it.
- It is also recommended you use Windows 10 instead of Windows 11.
- Likewise, please disable the Windows Driver Signature Enforcement .
- As strange as it may sound, do not enable the OEM Unlocking toggle in the Developer Options.
- This is because the MTK Client Tool will give an error during unlocking if the toggle is enabled.
- There’s now a TWRP Recovery method to root your device as well. So if you are planning to opt for that method [instead of patching and flashing the boot.img], then you can skip the first two points.
STEP 2: Download Required Files
Now download and install the below-listed softwares/tools onto your PC:
- MTK Drivers: DOWNLOAD
- MTK VCOM DRIVERS: DOWNLOAD
- Oppo Drivers: DOWNLOAD
- Libusb devel filter: DOWNLOAD
- USBDk: DOWNLOAD
- SP Flash Tool: DOWNLOAD
- Scatter File: DOWNLOAD
- Magisk APK/ZIP : DOWNLOAD
- MTK Client: DOWNLOAD
- MCT MTK BYPASS REV4/REV3: DOWNLOAD
- The Preloader File: DOWNLOAD
NOTE: Please put the boot.img [which you’ll get later on] + preloader.bin + the scatter.txt + recovery.img [which you’ll get later on] files in the same folder, or else you’ll get the ERROR_INVALID_PRELOADER in the SP Flash Tool.
Given below are two different methods to unlock the bootloader on Oppo A5s. The STEP 3A might not work on Windows 11, so we have listed the STEP 3B, which should work on Windows 11.
STEP 3A: Unlock the Bootloader on Oppo A5s [Windows 10]
- Launch the MTK Client Tool on your PC.
- Then select Oppo from the top menu bar.
- After that, choose Oppo A5s from the left.
- Select Unlock Bootloader under Functions.
- Next up, boot your device to BROM Mode.
- Now, hit the Start button in the MTK Client.
- Wait until you see ‘Bootloader Unlock = OK’.
- Once that appears, your device is unlocked!
- So, unplug your device and turn it back on.
STEP 3B: Unlock the Bootloader on Oppo A5s [Windows 11]
- Open CMD inside the mtkclient-main folder.
- Then, type in the below two commands in it: pip3 install -r requirements.txt
- python setup.py install OR python setup.py
- After that, type in the following command: python mtk da seccfg unlock
- You’ll now get a ‘waiting for device’ message.
- So now connect your device in BROM Mode.
- The device’s bootloader will now be unlocked.
- You may now unplug your device from the PC.
If you get the STATUS_SEC_IMG_TYPE_MISMATCH error, then open MCT MTK BYPASS and choose the chipset (MT6765). Then connect your device to the PC in BROM Mode and hit Start. The error should now be fixed.
NOTE: When your device is booting to the OS, you may get either or both of the below-listed messages; it’s all normal and nothing to worry about:
Your device is unlocked and cannot be trusted, rebooting in 5 seconds
dm-verity error: Your Android system/device is corrupted, please select whether you want to boot in E10 mode or RESTART mode
That’s it. These were the steps to unlock the bootloader on your Oppo A5s. Let’s now show you the steps to root this device via Magisk. Follow along.
NOTE: There are two ways of rooting the Oppo A5s- without TWRP [STEP 4A] and using TWRP [STEP 4B]. We have listed both the methods below; you may try out the ‘one’ that is in sync with your requirement.
STEP 4A: Root Oppo A5s via Magisk
We will now be using the stock firmware to root your device. However, make sure it’s the same firmware that is currently installed on your device [A.46].
- Launch Magisk and tap on Install next to Magisk.
- Now select the boot.img from the stock firmware.
- Then tap on Let’s Go. It will be patched via Magisk.
- The patched file will be there in Downloads folder.
- So transfer it to your PC and rename it to boot.img.
- Put it in the same folder as preloader and scatter.
- Now, launch SP Flash Tool and load this boot.img.
- Next up, also upload the scatter.txt file in this tool.
- Likewise, also load the preloader.bin file in the tool.
- Check ‘only’ the boot partition in the SP Flash Tool.
- All the other partitions should still be ‘unchecked’.
- Moving on, now boot your device to BROM Mode.
- Once done, click on the Download button in the tool.
- Wait until a correct sign (√) appears in the window.
- As and when that happens, your device stands rooted!
- Finally, you may now boot to the rooted OS. That’s it.
STEP 4B: Root Oppo A5s using TWRP
- To begin with, download the TWRP Recovery for Oppo A5s .
- Put it in the same folder where you have preloader & scatter.
- Now, open SP Flash Tool and the MCT MTK BYPASS REV4.
- Then load the recovery.img and preloader.bin in the SP Tool.
- However, make sure to uncheck the preloader.bin in the tool.
- Now in MCT MTK BYPASS REV4, select the chipset: MT6765.
- Then boot your device to BROM Mode and click on “Bypass”.
- After that, head over to the SP Flash Tool and click Download.
- Once the tool shows a correct sign (✓), disconnect your phone.
- Now boot your phone into recovery (vol down + power button).
- Once you’re in TWRP, transfer the Magisk ZIP file to the device .
- After that, go to Install, select Magisk ZIP, and swipe to flash it.
- Then go to Reboot > System. Now install the Magisk app as well.
STEP 5: Remove Orange State Warning in Oppo A5s [OPTIONAL]
Here’s how you can remove the Orange State Warning on your Oppo device:
- Backup the bootloader.emmc.win file using Pitchblack Recovery or dd command [root].
- Then download and install HX hex editor on your PC.
- Now, drag the file and find the ‘orange state’ and ‘dm-verity’ keywords.
- Then replace their hex code with zeros and save it.
- Rename the file as lk.img and flash it using the SP Flash Tool as explained below.
- First off, boot your device to BROM Mode.
- Then open MTK Bypass and start the bypass.
- Now open SP Flash Tool, load the scatter file and preload bin, but uncheck it.
- Find the lk slot and put the lk.img and click Start to flash the file. That’s it.
So this was all from this guide on how you can unlock the bootloader on your Oppo A5s and root it via Magisk and using TWRP Recovery. Always keep in mind that whether you’re flashing a boot.img [for root] or recovery.img [TWRP] via SP Flash Tool, you’ll have to upload the preloader.bin, but it should never be flashed; in other words, always keep the preloader.bin unchecked in the SP Flash Tool . Only the boot.img/recovery.img should be checked.
- Fix Flash_status_error_universal on Oppo/OnePlus Flash Tool
- Fix Sahara Communication/Protocol Failed Error in Oppo Flash Tool
- Termux Not Working on Android 15 OnePlus/Realme/Oppo [Fixed]
- How to Flash EDL Firmware on OnePlus: MSM & Oppo Flash Tool
(Cancel Reply)
Δ