yashsingh1/xdaforums huggingface dataset:
[Redmi Note 9 Guides, News, & Discussion] marcoslau:
Hello, when I execute the file 1ST RUN THIS.bat, it does not execute and I get the error "python" is not recognized as an internal or external command,

program or executable batch file....I need help thanks
[Redmi Note 9 Guides, News, & Discussion] marcoslau:
Hola, cuando ejecuto el archivo 1ST RUN THIS.bat, no se ejecuta y me sale el error "python" no se reconoce como un comando interno o externo,

programa o archivo por lotes ejecutable....Necesito ayuda gracias
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Everything looks nice until it doesn't. Any help guys? Should i edit main.py and exploit.py to make them work? What is this status 1d0c?
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
You, "just", are missing some dependencies, everytime, you get an error, from a dependency, then you can install, either through python or pip3.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
You missed the path for Python, if you don`t know how to give the right path, then uninstall it, and when you reinstall it, you´ll see an option refer to path, check it, and after that, Python would be executed from everywhere.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
This is not helpful at all :)

Missing dependencies? What dependencies? I did everything as guide said, step by step. It's either bad guide or something is missing here and there.

If you can be more precise what dependencies i miss it would be very nice...

Oh now i got this error:

Also dependencies?
[Redmi Note 9 Guides, News, & Discussion] ArDRaFi50302:
im sorry but im just really dumb on this field so what are y

Thanks a lot brother! your help was greatly appreciated.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Start from the scratch, read my guide some post above, and all would be fine, leave what you think you know, and consider that something can be missed.

If you, after that, are having issues with buffer key, but all the other was solved, then your device is not connected properly, or some drivers are missed/not well updated.

Upload screenshots from the "new" issues, you´re facing.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
I already did your guide from post above. No success either. Problem is protection can't be disabled. It's disabling and script gives an error. I tried original guide again, deleted everything, installed/downloaded everything again. Well, no success.

I'm gonna test in on different PC. I'll see then whether it works or not. For now i'm 100% sure it won't work on my machine. I also tried it on Linux Mint (latest version) and failed with same error. Protection can't be disabled.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Check that LibUsb did the job in your device. After that, can you upload an screenshot from device manager, on how your device is detected?

Some steps need, device to be in BROM mode, but for some is enough with preloader mode. BROM mode need, for device to be pressed, in the volume up, while connecting, and for preloader, don´t press a button.

Remember, that for BROM mode, you need to bypass the DA/SLAA protection, while, for preloader, you don´t need it.
[Redmi Note 9 Guides, News, & Discussion] krydewrld:
Me has salvado la vida. bueno, al celular xd, lo daba por muerto y cuando vi todos estos pasos dije "ni de coña" despues de hacer miles de intentos mas con otros metodos me rendi e hice paso por paso a pesar de no saber tu idioma, me siento increible. Muchas gracias por haberme ayudado, el celular lo daba por perdido hasta que llegué a este post.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
LibUSB installed driver normally. There is no need for sreenshot since there is only device under COM3 names Mediatek Device, zero problems (no exclamation marks).

Also i tried different PC from scratch. Same issue with error: STATUS IS 1d0c

I think it's connected to not disabled protection. 1st .bat gives and error first as OP stated and 2nd .bat gives message: device connected on COM3 but nothing more than that. No message about Protection Disabled.

BROM mode and preloader mode are not working.

There is no guide on xda about such issue. There is one mention on internet and it's about wrong payload file (1d0c error).

Since i can't find another payload than these mentioned here i'm stuck with 1d0c forever and hardbricked failure called Xiaomi Phone.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Unfortunately no way to help without screenshots of reference, there´s no way to know to what "protection disabled" you are referring, no way to know the exact name that device manager under Windows is giving to your device, no way to know what exactly "BROM mode and preloader mode are not working" means. payload WON´T work if device is not properly connected/recognized, so best of the lucks for you!
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
I'll send this important screenshot later. It will give you nothing and after all of that you're gonna write that i have to be doing something wrong. I posted everything i got and you bother about 1 screenshot which can prove nothing except fact that device is mediatek sth and it's connected on COM3...

I gave you an error 1d0c. What's with that? I gave you 2 screenshots of error and you only responded that i have to do all of this once again. This is not help.
[Redmi Note 9 Guides, News, & Discussion] SteveRich:
Ok I give up. I've tried reinstalling everything several times but I keep getting the error message I wrote. The Redmi isn't brand new anymore and was supposed to take me on my motorcycle trips - but I don't see the need to spend any more time getting it working again. It's a shame and thanks for the help - maybe I just don't have enough knowledge.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
I don´t know your actual issue, but, you always, can use SPFT, you don´t need badly to use mtk-client exclusively, SPFT, also, can manage to recover your device.
[Redmi Note 9 Guides, News, & Discussion] tonybogdanov:
I'm stuck at step 12.

After installing the MTK drivers (under Windows 11 with driver signature enforcement disabled), I can see the MediaTek entry in LibUSB & install the filter. Then I run the bypass, but it is stuck on waiting for device. I did some python debugging and while it is able to detect COM3, it is unable to open it.

If I remove the MTK driver (uninstall the device from Device Manager), then I can use LibUSB to install a filter, but the device is listed as USB Serial Device instead. If I install the filter anyway I can run the second bypass script successfully. I get the protection disabled message and the phone stops bootlooping (remains powered off).

Now, however, when I open up the SP Flash Tool and go to options, I can only see COM1 in the dropdown, even though the phone remains connected and I can see COM3 in device manager.

Any idea why SP Flash Tools doesn't see COM3, is it because it is not identified as a proper MediaTek device?

If I'm unable to run the bypass script, maybe the MTK drivers are somehow not working?

Any help is greatly appreciated!

Edit: Just installed the driver from here: https://gsmusbdriver.com/xiaomi-redmi-note-9 and managed to list & run the second bypass script properly. COM3 is still not showing in SP Flash Tool though. Device is listed as MediaTek Inc. in Device Manager.

P.S. Resolved. It was really stupid, I had to switch to USB connection instead of COM in SP Flash Tool and it worked afterwards.
[Redmi Note 9 Guides, News, & Discussion] solpii:
hey so ive followed all the steps but i cant get past step 12, ill be glad if someone could help. I get this when i open the first run this.

When I press any key it just closes. Please help
[Redmi Note 9 Guides, News, & Discussion] tonybogdanov:
Check my comment above yours, I couldn't get past this step as well. In my case the MTK driver was malfunctioning. I got it working using LibUSB. The moment the phone stops bootlooping and remains off, you'll know you got it.
[Redmi Note 9 Guides, News, & Discussion] solpii:
Thanks, sadly Im still stuck at step 12. If i uninstall the mtk my phone wont even appear on libusb
[Redmi Note 9 Guides, News, & Discussion] solpii:
how did u solved this?
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Disable antivirus/windows defender. src.exploit missing is the common problem on windows because this file is always deleted by any protection.

I had the same problem and no one here wanted to help me neither knew how to help. It's as simple as i described. Other problems can also be solved because i enocuntered many. Let me know in this thread and maybe i'll be able to help ya. Cheers.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
I have a problem. In step 11, I want to boot the phone to download mode, when i hold vol up button nothing happens, but when i hold all 3 my phone shows up in the program as it should (Mediatek usb device) but after like 2 seconds it just dissappears. doesnt matter if its bootlooping or completely discharged. Any1 can help?
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
I got past that, but now I can not install the firmware through the spflashtool, because it doent want to sta in download mode. It goes to download for a split second and then bootloops again.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
At step 12 you have an answer how to get rid of bootloops. I tried with 2nd .bat and 3 buttons at once. It worked.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
this is what I get when I open both the 1st run this.bat and also 2nd run this.bat
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
this is what it shows when i run it with python IDLE
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
reinstalled python and this is what I get now after opening 1st and 2nd run this.bat files any1 can help or suggest anyting?

and after looking into main.py code, it wants a file called exploit and in the src folder is no such file
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Like i said earlier, you have a problem with Windows Defender or other Antivirus. exploit.py is treated as malware/virus. It is always deleted after unpack. Just disable defender or antivirus and proceed. I had the same problem and figured it by myself 2 weeks later.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
Thanks, worked. But now in spflashtool everything is recognised, no problem until i want to flash. I get error 0xC0050005 after some time. It starts to download but nothing happens and i get error
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Would you mind to send screenshots? I think i encountered that error and it seemed i had bad fastboot rom version. Is it really starts to download or it seems like it starts but progress bar doesn't appear?

I'll try to help you but i'm not specialist in this matter, i just adjusted few solutions and recovered 2 hardbricked phones with mediatek lately.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
Thanks for your willingness, when I'll be able to I'll try making some screenshots. It starts to download, in a split second it goes to 100% and then it stops and after a while it gives the error.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
SPFT is not communicating (at all) with your device, the 100% message is not real, you´d need a permissive preloader file. You may find it in some build(s).

In the next session, try with (one by) one (of them), this file only, if it flashes, then, in the next session, flash all the other files.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
In less than a second the bar at the bottom goes to 100% and then it does nothing for 2 minutes, until it gives me the error.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
Tried flashing one by one, but it does the same thing and gives me the same error.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
No, it seems, you misunderstood what I wrote, not to flash, one by one, but, and from here pay attention, search for a preloader.bin file, from previous/various builds, choose in SPFT, as usual, the ROM, you want to flash, and for the first file in the list, the preloader file, search from the directory, for the one you got, finally, only tick this preloader.bin file, if it is accepted to flash, and only if it does, you can continue with the rest of files, in case, if it doesn´t, then try with the next preloader.bin file you got.

Of course, check that your device is properly detected in device manager by Windows.

Firstly, you have to bypass the DA/SLAA protection, run the command, and after that, immediately, you can use SPFT, other way, is not possible, your device didn´t enter in preloader, or BROM mode.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
May i know where did you buy this phone? I had the same problem as you do and there was a problem with ROM i tried to use. Can you try for example EU version of fastboot rom?

Stuck at 100% Download DA is very common problem. Give another fastboot rom a try.

Here is the fastboot rom which worked for me:
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
K, I'll try

From what site did you download the firmware? I couldn't find any site or mirror that had download speeds than 0,2mbps I had to let the file download for like 40 hours. Idk why it is, maybe cuz where I live. I don't have any internet problems. On speedtest.net I get about 700mbps to 1gbps and when downloading through steam I get about 700mbps. I live in Slovakia.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
Yes I did misunderstand that XD. I'll try different ROM version. Thx
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Well, these servers sucks. I found one guy who shared EU ROM on his google drive. Around 10 minutes and it was downloaded. I'll share if i found it again. Just watch my edit in next few hours.

Here's an edit, faster than i thought:

and link: https://mifirmware.com/redmi-note-9-firmware/

It's not google drive one i found earlier but it may do. Its downloading speed is around 2,8MBps (multiplying by 8 give around 23 Mbps so 30-40 minutes of your time)
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
It works 😄 YAY! It's properly flashing FINALLY. Thank you guys so much for you help.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
So you encountered the same problems as i did. It would nice if original post had these info. Nevertheless good job.
[Redmi Note 9 Guides, News, & Discussion] KhaosKnighT-X:
Hello all.

In trying to install TWRP, I made some mistakes. My Redmi Note 9 was on MIUI 13. After unlocking the bootloader, I flashed an lk file for 12.0.4, but then flashed a vbmeta with verity disabled for 13.0.2 before flashing TWRP. After rebooting, the screen is totally black, no Redmi logo or vibration even when holding the power button down for 15+ seconds.

I can occasionally hear Windows detect it when I hold Vol Down and Power, but it disconnects after 7 seconds or so each time.

Am I out of luck?
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
You're not out of luck, i wouldn't say that. You just hard-bricked your phone. Use guide from 1st post, use proper fastboot rom from link i provided and avoid antiviruses when extracting .zip just to keep exploit.py on your disk. You should be fine then.
[Redmi Note 9 Guides, News, & Discussion] Orfeluh44:
Hi, I am still having same problem, did you use firmware update or download only option, hope you understand my question.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
I went with firmware upgrade. But I had to download a different version of the firmware.
[Redmi Note 9 Guides, News, & Discussion] Orfeluh44:
Thank you
[Redmi Note 9 Guides, News, & Discussion] Kreakon:
Hello, i am stuck at step 12, can anyone help me? I open the scripts by order. (1ST RUN THIS & 2ND RUN THIS SCRIPTS) But whatever i done for script to recognize my phone, it says only "Waiting for device" and nothing else. I did earlier steps correctly and installed device filter succesfully. What should I do?

Note: I try to open my phone 50-60 times by pressing volume+, volume-, lock button and every combination of them.
[Redmi Note 9 Guides, News, & Discussion] Joel06sk:
Let him die. Let him boot loop until he is completely discharged, then try pressing all hardware buttons before plugging the cable in and after like a second plug in the cable, while also holding the buttons and keep holding them until it recognizes the phone. Also make sure antivirus is turned off and that you have all drivers installed correctly. And libusb filter.
[Redmi Note 9 Guides, News, & Discussion] Kreakon:
I tried what you said, but nothing changed.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Since you said you're stuck at step 12 then i guess step 11 and: "...device filter successfully installed for MediaTek USB port..."

worked for you?

Device is recognized under Device Manager?

Waiting for device is message which is prompted only when device is not recognised so maybe you're stuck at step 11?

Summing up, you need your device to be recognised by PC. Then you can continue with step 12.

Let us know where you excatly at so we can provide some assistance.

Cheers
[Redmi Note 9 Guides, News, & Discussion] Sergions:
Does anyone know what I'm doing wrong?

Thanks
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Tell us a little bit more. When does it show up? What phone do you have? What ROM are you trying to upload?

HW Code 813 is for Redmi Note 8 Pro

HW Code 707 is for MT6769 phones (Redmi 9, Redmi Note 9)

Is your scatter file correct? Do you have proper Fastboot ROM for your phone?

More infos needed just for someone to even thinking about advising.
[Redmi Note 9 Guides, News, & Discussion] Sergions:
My phone is Redmi Note 9, I have followed the instructions, it has downloaded the corresponding fastboot image and I get this message when performing the bypass and therefore it does not let me flash the phone

thanks for answering
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
What can i say. It's pretty weird because your phone is being detected as Redmi Note 8 Pro becuse hw code suits its number (813). It's not that i don't believe you, it's just i can't help you in this matter and maybe @SubwayChamp encountered that issue somewhere. Lets wait for his opinion. He has huge knowledge about unbricking phones.
[Redmi Note 9 Guides, News, & Discussion] pramod78:
I've flashed as per your guide. Flash was successful. But when turn on mobile it's bootlooping again. Even after successful flash mobile is bootlooping again. Please help me. Thanks in advance
[Redmi Note 9 Guides, News, & Discussion] deadgames2:
Hello question does it work with redmi note 10 5g or only redmi 9 merlin?

(redmi note 10 5g wich has only black screen and connects disconnects sounds play when connected to pc, no fastboot and no recovery)
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
It can be adjusted to any Mediatek crap chipset but you also have to adjust files. I did that and it worked so i don't see any problem here.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
I am stuck at step 16: I cannot change the option from Download Only to Firmware Upgrade. It gives me an error "Partition [vbmeta] No image file Exist!". No clue in the zoo, the only thing obvious to me is that all three vbmeta-related entries on the list are not checked and no location is given. Anybody for a hint?

PS: I also had issues with the button combo in step 11+12. What helped was pressing Volume up, down and power button and releasing immediatly when Windows played the recognizing tune. Step 11 installing USB must be fast and step 12 second script run through.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
Sorry people, I found my mistake: somehow the copying process got interrupted and the vbmeta files were left in the download folder. Got it working now.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
I am getting this error message (see attached screenshot). The device is recognized as "MediaTek USB Port (COM3)" in the device manager, UART is activated with the correct COM port and Baud rate. Any clues?
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
1. Protection disabled?

2. Try USB Mode not UART

3. Try another preloader and scatter

These devices are annoying as hell when you encounter errors after errors. Searching for any clues on other forums, github etc. might help when no one wants to help you here.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
Hello lastbutnotleast,

Thank you so much for answering me.

1. The protection is disabled.

2. I tried USB mode and got another error: "ERROR: STATUS_BROM_CMD_STARTCMD_FAIL" (please find the screenshot attached). I found this thread with the same error code: https://xdaforums.com/t/sp-flash-tool-fix-error-status_brom_cmd_startcmd_fail.4525809/ It seems like in this tutorial a wrong payload is used.

The Note 9 is unbricked now, thank you so much for pointing me in the right direction!
[Redmi Note 9 Guides, News, & Discussion] someonetooknuggets:
Anybody here can help me? Everything worked fine until I turned it on, the redmi and miui logo appeared then goes straight to recovery with "This MIUI version can't be installed on this device" at the bottom.

Another problem is that I can't boot into fastboot and the bootloader is now locked.

edit: I was able to fix it shortly after posting this, all I did is install the original rom which is china rom.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
I got my Note 9 unbricked after using the right payload (as mentioned above). But bricked it again with a wrong recovery (which was indicated to work... but anyway).

Device is found on COM3 in the device manager, all smooth till it comes to the SP flash tool itself. No COM3 is found and I cannot start upgrading the firmware. I tried switching from UART to USB, I was disabling protection and leaving the phone connected afterwards. I used the scatter file from V13.0.2.0.SJOMIXM.

Any advice would highly be appreciated.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
MI didn't work for me

I had to try EEA and it worked

Try this fastboot rom and its scatter
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Yeah, installing original ROM worked for me too so i advise everyone to just stick to their phones roots.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
Ok, I will try that. It worked with the MI though. But oh boy, you never know...

Why is the device called merlin and merlinx?

It seems that the LOS-recovery is somehow not working. Any recommendations for an unofficial TWRP or similar to get LOS20 going?
[Redmi Note 9 Guides, News, & Discussion] vagelis199:
When you are choosing fastboot it shows you both recovery and fastboot as options, one is above the other, fastboot is bellow recovery , if you scroll down you'll see the link for the fastboot image
[Redmi Note 9 Guides, News, & Discussion] Coroneln:
Thanks, that is what i was missing.

Edit:

Thanks @vagelis199 this detailed guide and your input earlier saved my bricked Merlin.

Following the guide, I downgraded it to Android 10 MIUI 11 in hopes of now rooting the darn thing and remove the Xiaomi bloat and ads
[Redmi Note 9 Guides, News, & Discussion] thekrysak:
Had to create an account just to thank the OP

I bricked my Redmi note 9 by trying to install twrp using an outdated tutorial , had access to nothing , was already planning on spending money I shouldn't getting another phone at the moment. Then I stumbled upon this thread.

You are a god mate! Really appreciate the help.
[Redmi Note 9 Guides, News, & Discussion] Guster47:
Hi everyone, I need your help. I bricked my Redme Note 9. It does not do anything, not even the redme logo.

I managed to do every ste up to the flashing of the rom. I am always getting this error:

By googling I found that the error is thrown because the rom is not the right one but I am getting this error even after trying every global ROM. I also tried EEA but nothing. What else can I try? Thank you.