(Guide) How to fix a hard bricked Redmi Note 9 (Merlin) (Hard Brick)

Search This thread
Jan 24, 2022
13
4
Did you follow step 5, 7, 8, 9 and 10 properly? Double check these steps again. Follow them in order, one after another. Cause each one needs something from the previous step.

Btw, what does the 2nd run this file show you? screenshot?
1st.PNG

the 1st run this file gives me this..
while the 2nd one is stuck on the port found message
i already have the usb filter installed with the drivers
got another version of spf tool but it gives me the timeout error.
 

Attachments

  • 2nd run this.PNG
    2nd run this.PNG
    3.5 KB · Views: 9
Last edited:

mashrufhratul

Member
Dec 17, 2022
24
2
Redmi 9
View attachment 5792535
the 1st run this file gives me this..
while the 2nd one is stuck on the port found message
i already have the usb filter installed with the drivers
got another version of spf tool but it gives me the timeout error.
The 2nd run this file should say found port com 3
Open the lib usb filter app, (you should find it on start menu) and click 'remove usb profile' or something like that, and see there if it shows you Some mediatek device. If it doesn't you need to repeat step 11.
 

Kain105

Member
Dec 1, 2013
11
5
hi i'm stuck @ 12. when running "2ND RUN THIS.bat" the output is
[2022-12-25 20:39:49.329225] Waiting for device
[2022-12-25 20:39:53.478390] Found port = COM3
and protection is not disabled. searched in thread and googled but still didn't figure it out. thank you

edit:
tried on two windows 11 and one windows 10

edit2: removed and added once again the filter. restarted the "run this" files and it's working
 
Last edited:

oyez666

New member
Dec 28, 2022
1
0
thank you so much it worked with redmi 9
some differences :
- i use windows 11
- no need to wait to drain the battery just hold volume down and power key for redmi 9
- python latest version 3.11 didn't work but windows store version 3.10 worked
- and of course i downloaded the fastboot for redmi 9
I just would like to thanks you : i've hard brok my redmi note 9 and with your help, I succeed in bring it back to 100% useful, Thank you very much !
 

Azizovich_787

Member
Dec 30, 2022
14
2
Redmi 9
View attachment 5563587

A how-to guide of restoring a completely bricked Redmi Note 9​


Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

If this is your phone here's how you can solve it without the need for service.

Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
(I mean at this point you either have a useless brick or a working phone, you are choosing).


This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
(I did this on Windows 10 btw)


  1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
  2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
  3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
  4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
  5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
  6. Extract the attached zip file and the fastboot image each into their folders.
  7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
  8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
  9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
  10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
  11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
  12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
  13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
  14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
  15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
  16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
  17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
  18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
  19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
  20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
  21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
  22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you :) hf.

Credits:
Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
BRO, THANK YOU. HOW CAN I PAY? STATUS_EXT_RAM_EXCEPTION (0xC0050005) PROBLEM WAS BUT I COULDN'T FIND THE SOLLUTION. THANK YOU BRO !!! I am so happy to the new year because of you thank you bor.
 

jcagara08

Senior Member
Oct 15, 2011
280
34
hey thank you so much for this guide, was trying to resurrect my brothers phone, I have managed to do it until the Download Ok step and I think it went succesful but the phone right now is doing a bootloop.

I am currently charging it at the moment. Pretty sure I have followed all the steps carefully and the execution was near perfect but I don't get why it is bootlooping with the android and MI logo for now, any help or advice?

I did the whole steps twice in a row now (HAHA ROFL), went with the steps one by one, still I am experiencing a bootloop, what gives?

PS bootloop state is better compared to its previous state where it would just flash and turn off again.

See the attached screenshot;
 

Attachments

  • Screenshot 2023-01-02 093045 FlashTool Success note 9.jpg
    Screenshot 2023-01-02 093045 FlashTool Success note 9.jpg
    676.3 KB · Views: 11
Last edited:

jcagara08

Senior Member
Oct 15, 2011
280
34
Just an update you guys, I went ahead to a local mobile tech and showed him the bootloop issue, he immediately went ahead and opened the thing up since it wouldn't hold a battery charge when connected to his diagnostic charging board, opened up the battery, did some soldering and removed a fuse and voila now the phone booted up as if it was new!

Had I known that the issue was supposed to be just the battery fuse, I should haven't tried all the steps and possibly could have saved the memory stored in it (my dumb opinion LOL)

By the way this is the third Note 9 I sent in for repair, 1st had a bulged battery, 2nd wasn't holding a charge and would only work while connected to a power source, and this 3rd reached to a point where screen only flashes on and off when charged - not even a Mi or Android logo showing.

Conclusion - Redmi Note 9 low quality control phone, I had a 9T Pro which also had a sudden AMOLED screen death. Never again am I going to purchase a Xiaomi phone.

PS My brother's phone now has cellular network issues, couldn't make calls sometimes and only has Edge connection...

Whew what a rant!
 

KemZam

New member
Jun 6, 2015
1
0
Followed every steps thoroughly, also have this issue

I did repeated steps already only to get stuck here.

1672811042990.png
 

Skyfall91

New member
Dec 27, 2022
3
1
Hey, thanks for the awesome guide! I also have this problem:

hi i'm stuck @ 12. when running "2ND RUN THIS.bat" the output is
[2022-12-25 20:39:49.329225] Waiting for device
[2022-12-25 20:39:53.478390] Found port = COM3
and protection is not disabled. searched in thread and googled but still didn't figure it out. thank you

edit:
tried on two windows 11 and one windows 10

edit2: removed and added once again the filter. restarted the "run this" files and it's working
and this

Followed every steps thoroughly, also have this issue

I did repeated steps already only to get stuck here.

View attachment 5801097

Like user Kain105 I tryed deleting and reinstalling the device filter but it had no effect. Same output and problem again when I run the "2ND RUN THIS.bat" script. The result is that i can not choose COM 3 in the connection options in the flash tool!

When i run the "1ST RUN THIS.bat" I always get the output which user KemZam postet.

Please help!
 

Kain105

Member
Dec 1, 2013
11
5
Did you try playing around with the buttons? Try pushing the three buttons at the same time before running "2nd run this.bat" (just a moment before insertion of cable) because pushing unorthodoxly worked for me. Try also pushing only some of the buttons
Hey, thanks for the awesome guide! I also have this problem:


and this



Like user Kain105 I tryed deleting and reinstalling the device filter but it had no effect. Same output and problem again when I run the "2ND RUN THIS.bat" script. The result is that i can not choose COM 3 in the connection options in the flash tool!

When i run the "1ST RUN THIS.bat" I always get the output which user KemZam postet.

Please help!
 
  • Like
Reactions: Skyfall91

forfra1

Member
Jun 8, 2010
15
0
saluti , ho eseguito la Vostra guida per " (Guida) Come riparare un Redmi Note 9 (Merlin) hard bricked (Hard Brick) " , quando arrivo al punto 12 non risco a continuare :
1) con python nel file.bat non trova python
2)con py nel file.bat non trova il file main.py
ho windows 10 e payton python-3.11.1 ( sia python-3.11.1-embed-win32 e python-3.11.1-amd64 )
Chiedo un aiuto, Grazie

ridotto con Google
 

Attachments

  • py.PNG
    py.PNG
    24 KB · Views: 9
  • paython.PNG
    paython.PNG
    37.5 KB · Views: 8

matteo555

Member
Jun 22, 2022
47
5
prima di tutto, assicurati che la 'path' di python ci sia e oltretutto sia corretta ...
> vai icona 'QUESTO PC' / tasto dx / proprieta' / impostazioni di sistema avanzato / variabili d'ambiente /
bene ora qui abbiamo 2 sezioni :
'variabili dell'utente per 'QUESTO PC'
'variabili di sistema'
In entrambi ce' la riga : 'path'
ora dai 'modifica' in entrambe le righe path (sezioni sia sopra che sotto)
dentro devi trovare 2 path riguardanti python, se non le trovi le devi creare a nuovo, l'importante e' che la path sia corretta, questa e' quella che normalmente viene creata :
c:\users\QUESTO PC\appdata\programs\python\python311\
c:\users\QUESTO PC\appdata\programs\python\python311\scripts\
per ultima riga sposta con i pulsanti a lato su/giu la riga che riguarda lo store-app di /microsoftApp , mettila in ultima posizione altrimenti se lanci il comando python ti si apre la app dello store microsoft
Controlla e se necessario aggiungi queste 2 path in entrambe le sezioni 'variabili dell'utente per 'QUESTO PC' ed anche 'variabili di sistema'
riavvia
ora se apri il terminale/prompt dei comandi e lanci il comando python ti dovrebbe risultare 'python 3.11.1 (tags.... etc.' , stessa cosa lanciando il comando py
questo significa che python funziona correttamente, ora se il file.bat che vuoi lanciare da' problemi, che ti frega, lancia il comando manualmente, se lo apri con block-note dentro dovrebbero esserci questi comandi, lanciali cosi da prompt dei comandi :
pip3 install pyusb
pip3 install pyserial
pip3 install json5
and then u r good to go ...
 
  • Like
Reactions: forfra1

Skyfall91

New member
Dec 27, 2022
3
1
Did you try playing around with the buttons? Try pushing the three buttons at the same time before running "2nd run this.bat" (just a moment before insertion of cable) because pushing unorthodoxly worked for me. Try also pushing only some of the buttons
Awesome, thank you! Pushing Volume up + Volume Down together before inserting the cable and using the second script worked for me now!
 
  • Like
Reactions: Kain105

forfra1

Member
Jun 8, 2010
15
0
prima di tutto, assicurati che la 'path' di python ci sia e oltretutto sia corretta ...
> vai icona 'QUESTO PC' / tasto dx / proprieta' / impostazioni di sistema avanzato / variabili d'ambiente /
bene ora qui abbiamo 2 sezioni :
'variabili dell'utente per 'QUESTO PC'
'variabili di sistema'
In entrambi ce' la riga : 'sentiero'
ora dai 'modifica' in entrambe le righe path (sezioni sia sopra che sotto)
dentro devi trovare 2 path riguardanti python, se non le trovi le devi creare un nuovo, l'importante e' che la path sia corretta creata, questa e' quella che normalmente viene :
c:\utenti\QUESTO PC\appdata\programmi\python\python311\
c:\utenti\QUESTO PC\appdata\programmi\python\python311\scripts\
per ultima riga sposta con i pulsanti a lato su/giu la riga che riguarda lo store-app di /microsoftApp , mettila in ultima posizione altrimenti se lanci il comando python ti si apre la app dello store microsoft
Controlla e se necessario aggiungi queste 2 path in entrambe le sezioni 'variabili dell'utente per 'QUESTO PC' ed anche 'variabili di sistema'
riavviare
ora se apri il terminale/prompt dei comandi e lanci il comando python ti dovrebbe apparire 'python 3.11.1 (tags.... etc.' , stessa cosa lanciando il comando py
questo significa che python funziona correttamente, ora se il file.bat che vuoi lanciare da' problemi, che ti frega, lancia il comando manualmente, se lo apri con block-note dentro dovrebbero esserci questi comandi, lanciali cosi da prompt dei comandi :
pip3 installa pyusb
pip3 installa pyserial
pip3 installa json5
e poi sei a posto...
Gazzie, ora provo
 

forfra1

Member
Jun 8, 2010
15
0
prima di tutto, assicurati che la 'path' di python ci sia e oltretutto sia corretta ...
> vai icona 'QUESTO PC' / tasto dx / proprieta' / impostazioni di sistema avanzato / variabili d'ambiente /
bene ora qui abbiamo 2 sezioni :
'variabili dell'utente per 'QUESTO PC'
'variabili di sistema'
In entrambi ce' la riga : 'sentiero'
ora dai 'modifica' in entrambe le righe path (sezioni sia sopra che sotto)
dentro devi trovare 2 path riguardanti python, se non le trovi le devi creare un nuovo, l'importante e' che la path sia corretta creata, questa e' quella che normalmente viene :
c:\utenti\QUESTO PC\appdata\programmi\python\python311\
c:\utenti\QUESTO PC\appdata\programmi\python\python311\scripts\
per ultima riga sposta con i pulsanti a lato su/giu la riga che riguarda lo store-app di /microsoftApp , mettila in ultima posizione altrimenti se lanci il comando python ti si apre la app dello store microsoft
Controlla e se necessario aggiungi queste 2 path in entrambe le sezioni 'variabili dell'utente per 'QUESTO PC' ed anche 'variabili di sistema'
riavviare
ora se apri il terminale/prompt dei comandi e lanci il comando python ti dovrebbe apparire 'python 3.11.1 (tags.... etc.' , stessa cosa lanciando il comando py
questo significa che python funziona correttamente, ora se il file.bat che vuoi lanciare da' problemi, che ti frega, lancia il comando manualmente, se lo apri con block-note dentro dovrebbero esserci questi comandi, lanciali cosi da prompt dei comandi :
pip3 installa pyusb
pip3 installa pyserial
pip3 installa json5
e poi sei a posto...
ciao e grazie per la sollecitudine della risposta , fatto come indicato per le variabili di sistema ma non cambia niente , ho aggiunto i file al 2ND RUN THIS.bat e il risultato e quello che allego
 

Attachments

  • Immagine 2023-01-06 183545.png
    Immagine 2023-01-06 183545.png
    54.6 KB · Views: 10

matteo555

Member
Jun 22, 2022
47
5
Prima di fare cio, devi avere completato l'accoppiamento con LIBUSB-WIN32 e fatto il wizard accoppiando il cell a MEDIATEK USB VCOM PORT (per fare cio' DISATTIVA WINDOWS VIRUS PROTECTION POI ESEGUI IL WIZARD PER INSTALLARE IL FILTRO!!!!)
A volte capita che al primo colpo non funzia, io di solito me la cavavo iniziando con cell spento, oppure mettendo il cell in modalita' fastboot con cavo usb staccato, lanciavo il 2ND RUN THIS.bat, poi mantenevo premuto tasto power+volume-giu, e appena la figura di android scompariva attaccavo il cavo usb e lasciavo power e subito dopo volume-giu, questa e' la prova del 9, se cosi non ti funziona, chiedi a loro che sono piu' bravi ma haime anche molto difficile che rispondano, sempre e solo in inglese !!
 
  • Like
Reactions: forfra1

forfra1

Member
Jun 8, 2010
15
0
Prima di fare cio, devi avere completato l'accoppiamento con LIBUSB-WIN32 e fatto il wizard accoppiando il cell a MEDIATEK USB VCOM PORT (per fare cio' DISATTIVA WINDOWS VIRUS PROTECTION POI ESEGUI IL WIZARD PER INSTALLARE IL FILTRO!!!!)
A volte capita che al primo colpo non funzia, io di solito me la cavavo iniziando con cell spento, oppure mettendo il cell in modalita' fastboot con cavo usb staccato, lanciavo il 2ND RUN THIS.bat, poi mantenevo premuto tasto power+volume- giu, e appena la figura di android scompariva attaccavo il cavo usb e lasciavo power e subito dopo volume-giu, questa e' la prova del 9, se cosi non ti funziona, chiedi a loro che sono piu' bravi ma haime anche molto difficile che rispondano, sempre e solo in inglese!!
Grazie , tutto OK
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    guide_img.jpg


    A how-to guide of restoring a completely bricked Redmi Note 9​


    Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
    How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
    Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

    If this is your phone here's how you can solve it without the need for service.

    Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
    (I mean at this point you either have a useless brick or a working phone, you are choosing).


    This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
    (I did this on Windows 10 btw)


    1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
    2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
    3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
    4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
    5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
    6. Extract the attached zip file and the fastboot image each into their folders.
    7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
    8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
    9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
    10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
    11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
    12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
    13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
    14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
    15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
    16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
    17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
    18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
    19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
    20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
    21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
    22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you :) hf.

    Credits:
    Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
    2
    View attachment 5563587

    A how-to guide of restoring a completely bricked Redmi Note 9​


    Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
    How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
    Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

    If this is your phone here's how you can solve it without the need for service.

    Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
    (I mean at this point you either have a useless brick or a working phone, you are choosing).


    This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
    (I did this on Windows 10 btw)


    1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
    2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
    3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
    4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
    5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
    6. Extract the attached zip file and the fastboot image each into their folders.
    7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
    8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
    9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
    10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
    11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
    12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
    13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
    14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
    15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
    16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
    17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
    18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
    19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
    20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
    21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
    22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you :) hf.

    Credits:
    Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
    thank you so much it worked with redmi 9
    some differences :
    - i use windows 11
    - no need to wait to drain the battery just hold volume down and power key for redmi 9
    - python latest version 3.11 didn't work but windows store version 3.10 worked
    - and of course i downloaded the fastboot for redmi 9
    2
    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.
    2
    i'm having an ERROR notification : STATUS_EXT_RAM_EXCEPTION (0xC0050005) help me
    2
    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
    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