Question how to unlock the bootloader ?

Search This thread

Cherryblue

Member
Oct 3, 2021
14
2
Just do it mate, he is rarely became online at xda.
Maybe he is really busy.
Hi,

Did you succeed in rooting the phone ?

Reading the thread you seemed to have used a mtk client tool on github.
The command to unlock the bootloader is "mtk da seccfg unlock".

Well then, usually, you need to setup twrp and use it to flash magisk or supersu.
What image did you use for that ? I thought the twrp image would be specific to each phone model ?

There seems to be a "how to root" guide on the github of mtkclient, did you follow that ?

Thank you for your help :).
 

MrMiyamo

Senior Member
Hi,

Did you succeed in rooting the phone ?

Reading the thread you seemed to have used a mtk client tool on github.
The command to unlock the bootloader is "mtk da seccfg unlock".

Well then, usually, you need to setup twrp and use it to flash magisk or supersu.
What image did you use for that ? I thought the twrp image would be specific to each phone model ?

There seems to be a "how to root" guide on the github of mtkclient, did you follow that ?

Thank you for your help :).
Yes, my device is rooted, but it still has stock recovery.

You can use mtkclient tool to dump "boot.bin", than use magisk manager app to patch "boot.bin", and finnally use mtkclient again to flash empty vbmeta and patched boot.bin file.

Here is a referance video, device model not really matter as long as it has mediatek chipset;
 

Cherryblue

Member
Oct 3, 2021
14
2
Yes, my device is rooted, but it still has stock recovery.

You can use mtkclient tool to dump "boot.bin", than use magisk manager app to patch "boot.bin", and finnally use mtkclient again to flash empty vbmeta and patched boot.bin file.

Here is a referance video, device model not really matter as long as it has mediatek chipset;
Well I've done it and broke my phone :D.

"Corrupted image (boot/recovery) prevents the system from booting normally. Please flash the correct image or contact customer service to fix it."

I've followed the video (which kind of follows the instructions for rooting phone on the github anyway), and after this command : "mtk w boot,vbmeta boot.patched,vbmeta.img.empty" and rebooting the phone, this is what I get.

I tried flashing the boot.bin I previously dumped, but same result.


Any idea what I can do ? I'd like to make sure I correctly dumped boot.bin, which size is yours ? Mine is 32 768 KB.

EDIT :
OK, so two things :
- I probably didn't first unlock boot loader, which could explain some things
- mtk tool can only play one command, I need to unplug and replug smartphone each time I want to play a new command. Otherwise it fails. dunno why.

Anyway,
- I formated data as told
- I unlocked phone using the command given
- I rewrote boot with patched one
- I reseted using mtk reset

Sadly, when I start it, it says "orange state, will boot in 5 seconds"
And then it's bootloop :(.

EDIT 2 : was able to flash back stock boot.bin and get the system to work again. I'm going to retry every step correctly to see if I can get the patched one to work, as I correctly did unlock the boot loader.

EDIT 3 : nope, the problem seems to come from boot.patched. Doesn't boot, it reboots multiples times before halting because "corrupted"...
 
Last edited:

MrMiyamo

Senior Member
Well I've done it and broke my phone :D.

"Corrupted image (boot/recovery) prevents the system from booting normally. Please flash the correct image or contact customer service to fix it."

I've followed the video (which kind of follows the instructions for rooting phone on the github anyway), and after this command : "mtk w boot,vbmeta boot.patched,vbmeta.img.empty" and rebooting the phone, this is what I get.

I tried flashing the boot.bin I previously dumped, but same result.


Any idea what I can do ? I'd like to make sure I correctly dumped boot.bin, which size is yours ? Mine is 32 768 KB.

EDIT :
OK, so two things :
- I probably didn't first unlock boot loader, which could explain some things
- mtk tool can only play one command, I need to unplug and replug smartphone each time I want to play a new command. Otherwise it fails. dunno why.

Anyway,
- I formated data as told
- I unlocked phone using the command given
- I rewrote boot with patched one
- I reseted using mtk reset

Sadly, when I start it, it says "orange state, will boot in 5 seconds"
And then it's bootloop :(.

EDIT 2 : was able to flash back stock boot.bin and get the system to work again. I'm going to retry every step correctly to see if I can get the patched one to work, as I correctly did unlock the boot loader.
Hi i am sorry for late response, i am visit xda per 1-2 day

"Sadly, when I start it, it says "orange state, will boot in 5 seconds And then it's bootloop :(."
That probably means you have not wiped metada, userdata and md_udc.

Now i think you know what you should do, so i have nothing to say.

Just dont forget to dump original partitions before writing patched one.

Good luck :)
 

Cherryblue

Member
Oct 3, 2021
14
2
https://www.naldotech.com/realme-c21-unlock-bootloader/

any solution for root ?

cos i use this method for uninstall same apps

Enable USB Debugging
adb devices
adb shell
pm uninstall --user 0 [type package name]

and it bring my device :D
Hi,

Good to know, does it work for system apps ?

I finally succeeded in rooting yesterday night haha.

The solution is to use the mtkclient tool produced on this github and follow each step of the guide on the github, under "Usage / Root the phone (tested with android 9-12)".

You must absolutely use the magisk App given on this github, the official one won't work, this is what prevented me previously to succeed. This magisk app has been patched for mediatek/realme phones.

Do not omit dumping steps, as it is your only way out if it doesn't work.

Also, for obscure reasons, I was unable to chain commands ; tool wouldn't work this way...
So each time I did and succeeded in doing one "mtk" command on the phone, I unplugged it, launched the next command, pushed vol up and vol down, and replugged it. Maybe I missed something. (note that for the mtk tool to work, phone must be shutdown and then plugged the way I described or that it is described on the guide/tool itself)

Anyway, no guarantee for you here, but hey, it works :).

@MrMiyamo were you able to re-lock the bootloader once patched ? So that it doesn't appear "not secured" when booting or at any other time.
 

MrMiyamo

Senior Member
Hi,

Good to know, does it work for system apps ?

I finally succeeded in rooting yesterday night haha.

The solution is to use the mtkclient tool produced on this github and follow each step of the guide on the github, under "Usage / Root the phone (tested with android 9-12)".

You must absolutely use the magisk App given on this github, the official one won't work, this is what prevented me previously to succeed. This magisk app has been patched for mediatek/realme phones.

Do not omit dumping steps, as it is your only way out if it doesn't work.

Also, for obscure reasons, I was unable to chain commands ; tool wouldn't work this way...
So each time I did and succeeded in doing one "mtk" command on the phone, I unplugged it, launched the next command, pushed vol up and vol down, and replugged it. Maybe I missed something. (note that for the mtk tool to work, phone must be shutdown and then plugged the way I described or that it is described on the guide/tool itself)

Anyway, no guarantee for you here, but hey, it works :).

@MrMiyamo were you able to re-lock the bootloader once patched ? So that it doesn't appear "not secured" when booting or at any other time.
Actually i am not go more than that, so my phone also shows "Orange state" text each startup.

But there is few article over internet for removing that text and 5 second countdown though hex edit.

EDIT: removing 5 second countdown not looks possible.
 
Last edited:

tubabuyukustun

Senior Member
Mar 16, 2014
378
67
kosice

Realme Android 12 Realme UI 3.0 Eligible Device List – RM UPDATE​

so maybe its true _:D
  • Realme GT
  • Realme GT Master Edition
  • Realme GT Master Explore Edition
  • Realme GT Neo
  • Realme GT Neo 2
  • Realme X7 Max
  • Realme X7 5G
  • Realme X7 Pro 5G
  • Realme X7 Pro Extreme Edition
  • Realme X50 Pro 5G
  • Realme X50 5G
  • Realme X50m 5G
  • Realme X50 Pro Player Edition
  • Realme X3
  • Realme X3 Super Zoom
  • Realme Narzo 50
  • Realme Narzo 50A
  • Realme Narzo 30A
  • Realme Narzo 30 Pro 5G
  • Realme Narzo 10
  • Realme Narzo 10A
  • Realme Narzo 20
  • Realme Narzo 20A
  • Realme Narzo 20 Pro
  • Realme 6
  • Realme 6s
  • Realme 6 Pro
  • Realme 6i
  • Realme 7i
  • Realme 7
  • Realme 7 5G
  • Realme 7 Pro
  • Realme 8s 5g
  • Realme 8i
  • Realme 8
  • Realme 8 5G
  • Realme 8 Pro
  • Realme C21Y
  • Realme C15
  • Realme C15 Qualcomm Edition
  • Realme C12
  • Realme C17
  • Realme C20
  • Realme C21
  • Realme C25
  • Realme C25Y
  • Realme V5
  • Realme V3
  • Realme V13
  • Realme V11
  • Realme V15
  • Realme Q2 Pro
  • Realme Q2
  • Realme Q2i
  • Realme Q3
  • Realme Q3i
  • Realme Q3 Pro
 

MrMiyamo

Senior Member

Realme Android 12 Realme UI 3.0 Eligible Device List – RM UPDATE​

so maybe its true _:D
  • Realme GT
  • Realme GT Master Edition
  • Realme GT Master Explore Edition
  • Realme GT Neo
  • Realme GT Neo 2
  • Realme X7 Max
  • Realme X7 5G
  • Realme X7 Pro 5G
  • Realme X7 Pro Extreme Edition
  • Realme X50 Pro 5G
  • Realme X50 5G
  • Realme X50m 5G
  • Realme X50 Pro Player Edition
  • Realme X3
  • Realme X3 Super Zoom
  • Realme Narzo 50
  • Realme Narzo 50A
  • Realme Narzo 30A
  • Realme Narzo 30 Pro 5G
  • Realme Narzo 10
  • Realme Narzo 10A
  • Realme Narzo 20
  • Realme Narzo 20A
  • Realme Narzo 20 Pro
  • Realme 6
  • Realme 6s
  • Realme 6 Pro
  • Realme 6i
  • Realme 7i
  • Realme 7
  • Realme 7 5G
  • Realme 7 Pro
  • Realme 8s 5g
  • Realme 8i
  • Realme 8
  • Realme 8 5G
  • Realme 8 Pro
  • Realme C21Y
  • Realme C15
  • Realme C15 Qualcomm Edition
  • Realme C12
  • Realme C17
  • Realme C20
  • Realme C21
  • Realme C25
  • Realme C25Y
  • Realme V5
  • Realme V3
  • Realme V13
  • Realme V11
  • Realme V15
  • Realme Q2 Pro
  • Realme Q2
  • Realme Q2i
  • Realme Q3
  • Realme Q3i
  • Realme Q3 Pro
Realme is known company for giving a major update only once.
Lets see 😁
 
  • Like
Reactions: Dhrubadey50@

Zartazor

Senior Member
Bro i have the same device (realme c21)

If any method works please share it

I'm not very good at this
So please say step by step
(In a way Noobs like me can follow)

And i think downgrading to Android 10(realme ui 1) and try deep testing app. (It's just my opinion)
 

MrMiyamo

Senior Member
Bro i have the same device (realme c21)

If any method works please share it

I'm not very good at this
So please say step by step
(In a way Noobs like me can follow)

And i think downgrading to Android 10(realme ui 1) and try deep testing app. (It's just my opinion)
Repost;
 

smiley.raver

Senior Member
Apr 13, 2011
225
59
Sony Xperia XZ Premium
Xperia XZ2
Actually i am not go more than that, so my phone also shows "Orange state" text each startup.

But there is few article over internet for removing that text and 5 second countdown though hex edit.

EDIT: removing 5 second countdown not looks possible.
Google the remove orange state. Can be done but requires hex editing files

Yes bootloader can be relocked. As per the GitHub page everything is on there except for 1 step which I have asked the Devs to add.

At the bootloader unlocked stage, go straight to fastboot, by holding vol up or down and power and then should have fastboot on screen. Once there do the usual fastboot flashing unlocked command(can't remember exactly. Will update it shortly as about to play around with other options with this phone .

Remember once unlocked it will erase all data no that there will be blnything, so once bootloader unlocked, flash boot and vbmeta and then unplug, hold the vol and power keys and should come up with fastboot on phone, plug USB in, and fastboot command to completely unlock the bl and then you shouldn't have issues. If you having issues just mtk E boot,vbmeta then mtk W boot,vbmeta (dumped stock files (in hoping have done a full phone back up first) ) then try fastboot command then just boot to bootloader and fastboot flash boot and vbmeta
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    As per my my previous comment. Realme releases an apk file that then allows you to unlock the bootloader

    While the bootloader is locked on any android devices, you will not be able to boot to fastboot.

    I have managed to flash a magisk patched boot.img file by other means but wasn't successful, ass need to patch Vbmeta and can't do that without fastboot or two(or equivalent).

    The apk they release is called deep testing. If you go on realme forums they are generally pretty open and quick to release. The app Is pretty much the equivalent of applying to Sony on the xperia's the app does the unlocking et

    If I can find a way to get pasted the red state boot screen iI will defiantly post the instructions and all files etc
    1
    how to unlock the bootloader, I read about some program "indeepth test", but did not find it on this phone
    1
    You need to wait till realme/Oppo releases the app specific to this phone. If you google the app, you will find plenty of sites say that the app for realme 3 or X will work but just a waste of time. Has to be for this phone

    Though I am looking into a possible way to root device without unlocking bootloader.
    1
    Ok i found this one too, and it is looks more trustworthy 🤔.

    Well, i believe to you, so i will wait your response.
    That will be the method, though realme still have not released the unlock tool for this device.

    If you check the realme community forums, and see h bootloader unlock for this device on a periodical basis realme will eventually release it, just not sure on their time frames. This is only my second realme device of which the first one I once the c3 had already been out for a while and unlock tool was already released.

    Once it has been. I will create. Thread with the process and attach the files here in xda
    1
    https://www.naldotech.com/realme-c21-unlock-bootloader/

    any solution for root ?

    cos i use this method for uninstall same apps

    Enable USB Debugging
    adb devices
    adb shell
    pm uninstall --user 0 [type package name]

    and it bring my device :D