yashsingh1/xdaforums huggingface dataset:
[Redmi Note 9 Guides, News, & Discussion] st3v3:
OMG thank you so much, completely restored what I thought was a bricked phone!
[Redmi Note 9 Guides, News, & Discussion] infinitumomega:
Hi all, I managed to restore PPUI and recover my encrypted data.

I made a complete backup of the userdata partition (for my device Redmi 4GB, 64GB this partition starts on 0x26c800000 and has a size of 0xc1f4f8000)

I also backed up seccfg so that I could restore the unlocked bootloader, you can follow this guide by vd171 to do that.

At one point I had to open up my phone to disconnect the battery because it would not exit EDL mode. I manged to do this with my fingernail by starting around the SIM slot. See here how to open device and here how to disconnect the battery.

Restoring was done as follows:

0. Backup partitions as mentioned above as well as your userdata partition (you'll have to create a custom readback as the readback file provided by vd171 does not backup the whole partition. The size of the partition can be determined by looking on the left panel of SPF Tool for UASize after connecting to the phone, as mentioned above for my REDMI 64GB ROM this partition starts on 0x26c800000 and has a size of 0xc1f4f8000)

1. Flash MIUI ROM in EDL

2. Flash preloader, seccfg to restore bootloader unlock.

3. Start the phone and wait till it has completed booting. When the setup screen is reached turn it off again and enter EDL mode as you do by this guide.

4. Flash preloader, vbmeta

5. Flash preloader, recovery (TWRP in my case, but nowadays SHRP looks like the right way to go)

6. Sideload or flash from SDCard PPUI (or whatever original ROM you had)

7. Flash preloader & your backed-up userdata

8. Boot phone and it should be back in its original state.

This whole process took me all day but is worth doing if you really want to recover your data.
[Redmi Note 9 Guides, News, & Discussion] Kurama932:
Hi

I followed all the steps the phone is flashing well with sp tool but when I restart the phone i have bootloop again I don't know what to do I still don't have access to the recovery and fastboot can you help me ? thank you
[Redmi Note 9 Guides, News, & Discussion] Guster47:
Still having the same problem.... Think I will have to give up....
[Redmi Note 9 Guides, News, & Discussion] Rinznlerr:
Hi, i had the same issue, the problem was: The phone had battery

i was fighting a whole day because the phone had 50% battery, u must boot and let the phone loop in logo, until all battery is gone, an then JUST THEN try the above.

BIG BIG thanks to vagelis, u save me 250.000 CLP (chilean peso).
[Redmi Note 9 Guides, News, & Discussion] mdsumonmahmud:
thanks ...
[Redmi Note 9 Guides, News, & Discussion] Laylala:
Thank you very much really. I signed up just to thank you for this. I thought I already messed it up but you saved me. Excuse my English, I'm using the translator. ^^'

PS: Any ROM you recommend that is safer to install?
[Redmi Note 9 Guides, News, & Discussion] bad7k:
I need to have an unlocked bootloader? My Redmi Note 9 got stucked on a screen "System has been destroyed", and my bootloader was locked, I have no idea about what to do...

My PC can recognize my smartphone, when I try to flash the stock firmware, it says that I'm not allowed because of the bootloader. The Xiaomi tool to unlock the bootloader didn't work with me too.

EDIT: Yes, this guide solved my problem even with locked bootloader.

THANK YOU
[Redmi Note 9 Guides, News, & Discussion] kh04n:
Bro I have the same problem I'm also serching for any fixes. If you find anything regarding this preoblem please inform me. :)
[Redmi Note 9 Guides, News, & Discussion] Guster47:
Will do! Still looking for a solution
[Redmi Note 9 Guides, News, & Discussion] vagelis199:
You need to let the battery die completely, check @Rinznlerr reply above.
[Redmi Note 9 Guides, News, & Discussion] Avicohen21:
Thank you so much for the guide!

things I did different:

- I didn't wait for the battery to die, what I did was I held all three buttons (power, vol+ and vol-) together.

while I still hold the buttons the screen turned black and I connected the phone with the cable and continued with stage 11 of the guide. make sure you dont release you hold untill you find MediaTek USB Port and click install.

what holding the 3 buttons do is like mini restarts and prevents the redmi note 9 logo from appearing.

- Same for stage 12 I held all 3 buttons and released after the bypass.bat file found the device. the you realease quickly.

If the phones keep bootlooping after this step you just need to repeat this stage.

-for the bypass file I used the latest tool from here - HERE.

download the v1.5 from the attachment and then download the latest from github links in the thread.

-And for the DA (download agent) I used the one from this thread - HERE.

For me those steps helped me not draining the battery so I could start the guid instantly.

using different files might be giving different results to different devices.
[Redmi Note 9 Guides, News, & Discussion] Yeeterbooizn:
So in step 12 i got the problem "Unable to create process using '/bin/python3 main.py -n'' after i edited the python to py is there a way to fix it?

Edit: I forgot to toggle "Add python 3.8 to PATH" while installing python if you skipped the Add python 3.8 to PATH you don't need to edit python with py.
[Redmi Note 9 Guides, News, & Discussion] Guster47:
Thanks, will give it a try!
[Redmi Note 9 Guides, News, & Discussion] Coroneln:
Hi glad you found a work around.

I just realized my comment is not clear and will edit it to avoid others being confused and make it actually useful.

When I faced the problem in step 12 I edited back the files to original and used the solution from google.

Go to -> "start" and type "Manage App Execution Aliases". Go to it and turn off "Python"
[Redmi Note 9 Guides, News, & Discussion] Yeeterbooizn:
Hey thank you for the info and i got my redmi note 9 back to normal again thanks to you i got the python modules installed i lost hope recovering my phone when i found this guide it got my hopes back up i ran into many problems with step 8 and 12 thanks to you i managed to recover my phone thank you again!
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
I installed Pixel Experience on one Merlin but it works like crap, zero stability, problems with dropping connections, lagging, rebooting. I reverted to original MIUI and stayed with that **** ROM. I used Xiaomi phones for years but at one point stopped and never returned back. Their MIUI is awful imo.

I don't have any alternative to TWRP. Never tried LOS nor its recovery.

Merlinx vs Merlin

I've read somewhere someday on reddit that Merlin was already taken by LOS so they used Merlinx to differ these names. In short words: they are the same phones but for LOS you use Merlinx and when you're not talking about LOS ROM then you use Merlin name.
[Redmi Note 9 Guides, News, & Discussion] FarmerElm:
I am currently using the Redmi Note 8 on LOS18 and it is ok. But after using Xiaomi for years now, being tired of their policy and converting my first Samsung for a family member... I got the Redmi Note 9 for free. So here we go again.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
I've been using Samsung phones (S21+ and now S23+) and OnePlus 8T for last 2 years. Before i used Xiaomi Mi9T Pro, Redmi Note 4X. Samsungs biggest flaw is their OneUI. It has bad launcher, animations are lagging and even Snap Gen2 can't take it. I changed to Microsoft Launcher and for 3 weeks no lags whatsoever.

But that's little offtop from me ;)
[Redmi Note 9 Guides, News, & Discussion] Zedgamer9128:
Well I've done everything correctly even got the download ok popup but still boot loop is happening
[Redmi Note 9 Guides, News, & Discussion] abravo:
A big thank you to OP for the instructions.

I have just recovered a Note 9 that went into the bootloop after flashing a Resurrection Remix ROM.

I guess there may be small variations in models. In my case:

battery was almost full but it was not a problem with my phone

all 3 buttons had to be pushed (vol +, vol -, power). I mean don't hesitate to try whatever combination.

the libusb USB-UART switching utility did list devices with a scrolling list refreshed real time inside a small windows (I was on a tablet), so when the phone was detected it was impossible to scroll down inside the list and click the MTEK line showing while keeping the 3 buttons pressed with the phone in the other hand. The solution was to select the first line, highlighted blue, so the pointer stays, start again there then scroll with keyboard arrow as fast as possible while the list was refreshing, in order set the blue highlight on the MTEK line and click it lighting fast before the list refreshes... An ergonomic issue, minor but very very annoying.

I got the ERROR: STATUS_ERR (0xC0010001) when starting the flash in SP tool, I solved it by setting in Options the connection to USB instead of UART. See here: https://github.com/MTK-bypass/bypass_utility/issues/29#issuecomment-825894071

before I found that fix in connection mode (UART->USB) i did lose the connection because I closed the window where the bypass (2nd) script was running. I powered on the phone and started again the bypass, no problem. Nothing happens to the phone at that stage because no flashing has been running.
[Redmi Note 9 Guides, News, & Discussion] abravo:
follow up after my precedent comment.

So I recovered the phone with a flash of a MIUI 12.5 but then decided to install a TWRP in order to flash another ROM. It ended in another corrupt system...I had the Redmi logo bootloop. So I went for another recovery but at step 12) of this guide, phone was found on COM3 and "Protection disabled" set on, BUT when releasing the phone buttons, it would reboot, and if holding them to avoid reboot, COM3 port was showing instability SP Flash Tool could not proceed, was stuck.

I solved the issue by using MTK client: "python mtk e boot" to wipe off the boot partition, and phone was shut off. It would not power on. I reconnected USB cable to computer , pressed the 3 buttons and ran the (2nd) bypass script, phone was detected ie. UART COM3 port, and I released the buttons. Launched again SP Flash Tool, set "connection" as in the guide here: "UART, COM3, 912000" and triggered the firmware flash. It worked. Phone recovered.

so, there may be all kind of system corruption, affecting more or less the serial ports drivers on the phone when it is in bootloop, but after a full wipe of boot partition, resulting in unbootable "dead" phone, the recovery procedure still works.
[Redmi Note 9 Guides, News, & Discussion] king@:
Hello, my device is stuck here. Any help?

View attachment 6096111
[Redmi Note 9 Guides, News, & Discussion] Yibayo:
Thanks man u saved me
[Redmi Note 9 Guides, News, & Discussion] FluidOP:
brother it shows com5 not com3 and i complete all the steps carefully and it shows download ok at the end . but my phone won't turning on its rebooting what to do please help
[Redmi Note 9 Guides, News, & Discussion] DeAd_PooL:
Hi. can someone help me with Unbrick my Hardbricked Device..

i do run bypass, and it goes fine saying protection disabled. and then i continue opening sp flash tool. selecting appropriate DA, scatter and auth file..

selected the Firmware upgrade. now when i click on Download button, it goes DA 100% and then stuck there, and i hear device getting disconnecting sound. Why is that.?! it keeps happening again and again. any solution for this.. Everytime it goes to DA 100% then device disconnect sound. tried different spflash but no luck. hope someone help me out. Thank you
[Redmi Note 9 Guides, News, & Discussion] JuanDaplay:
"Brother, thank you so much. If you knew what you've saved me from. I went through the process with a dandelion (Redmi 10A), only changing the part where you download the firmware from the manufacturer. Other than that, after trying several times, it worked."
[Redmi Note 9 Guides, News, & Discussion] Yavkata0:
I have an error on 11step with 1st bat called no src.exploit found pls help
[Redmi Note 9 Guides, News, & Discussion] matheusstout:
u solved it ?
[Redmi Note 9 Guides, News, & Discussion] matheusstout:
I followed all the steps but the phone kept looping. any sugestion ?
[Redmi Note 9 Guides, News, & Discussion] broububu31:
bonjour, je ne trouve pas le fichier zip que vous dites avoir joint .

Vous devrez télécharger Python et l'image officielle de démarrage rapide de Xiaomi pour Redmi Note 9. Aussi le fichier zip que je joins ci-dessous. le fichier zip contient les pilotes MTK, l'outil SP Flash et quelques scripts supplémentaires comme le contournement d'authentification MI, etc.,

----------

MOD EDIT: English Translation Below

Hello, I can't find the zip file you say you attached.

You will need to download Python and the official Xiaomi Quickboot image for Redmi Note 9. Also the zip file I am attaching below. the zip file contains MTK drivers, SP Flash Tool and some additional scripts like MI Authentication Bypass etc.,
[Redmi Note 9 Guides, News, & Discussion] broububu31:
bon j'arrive à installer à faire étape 11 mais quand je vais à l'étape 12 rien ne se passe, je suis bloqué, j'ai bien gérer les alias d'exécution mais je ne parviens pas à finaliser l'étape 12.

----------

MOD EDIT: English Translation Below

well I manage to install to do step 11 but when I go to step 12 nothing happens, I'm blocked, I managed the execution aliases well but I can't manage to finalize step 12.
[Redmi Note 9 Guides, News, & Discussion] ask6155:
Hello I'm trying the guide on linux with some improvisation.

all drivers are already present and I installed the python dependencies on linux.

I ran 'sudo python main.py' when the device was bootlooping.

I got an input output error but device was detected.

Here are the logs:

Dmesg log:

[ 119.602093] usb 2-1.5: new high-speed USB device number 4 using ehci-pci
[ 119.753087] usb 2-1.5: New USB device found, idVendor=0e8d, idProduct=2000, bcdDevice= 1
[ 119.753097] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 119.753100] usb 2-1.5: Product: MT65xx Preloader
[ 119.753103] usb 2-1.5: Manufacturer: MediaTek
[ 119.847089] cdc_acm 2-1.5:1.1: Zero length descriptor references
[ 119.847094] cdc_acm: probe of 2-1.5:1.1 failed with error -22
[ 119.875108] cdc_acm 2-1.5:1.0: ttyACM0: USB ACM device
[ 119.875173] usbcore: registered new interface driver cdc_acm
[ 119.875175] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 120.585702] usb 2-1.5: USB disconnect, device number 4
[ 121.141974] usb 2-1.5: new high-speed USB device number 5 using ehci-pci
[ 121.292326] usb 2-1.5: New USB device found, idVendor=0e8d, idProduct=0003, bcdDevice= 1
[ 121.292336] usb 2-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 121.293691] cdc_acm 2-1.5:1.0: ttyACM0: USB ACM device
[ 121.337183] usbcore: registered new interface driver option
[ 121.337208] usbserial: USB Serial support registered for GSM modem (1-port)
[ 121.603370] Did not find alt setting 37 for intf 0, config 1
[ 121.603376] usb 2-1.5: usbfs: process 1011 (python) did not claim interface 37 before use

main.py log:

[2022-02-14 17:10:00.233552] Waiting for device
[2022-02-14 17:10:11.695490] Found port = /dev/ttyACM0

[2022-02-14 17:10:11.768267] Device hw code: 0x707
[2022-02-14 17:10:11.768353] Device hw sub code: 0x8a00
[2022-02-14 17:10:11.768397] Device hw version: 0xca00
[2022-02-14 17:10:11.768438] Device sw version: 0x0
[2022-02-14 17:10:11.768484] Device secure boot: True
[2022-02-14 17:10:11.768524] Device serial link authorization: True
[2022-02-14 17:10:11.768563] Device download agent authorization: True

[2022-02-14 17:10:11.768610] Found device in preloader mode, trying to crash...

[2022-02-14 17:10:11.769915] status is 7024

[2022-02-14 17:10:11.828713] Waiting for device
[2022-02-14 17:10:12.928457] Found port = /dev/ttyACM0

[2022-02-14 17:10:12.976746] Device hw code: 0x707
[2022-02-14 17:10:12.976877] Device hw sub code: 0x8a00
[2022-02-14 17:10:12.976929] Device hw version: 0xca00
[2022-02-14 17:10:12.976976] Device sw version: 0x0
[2022-02-14 17:10:12.977023] Device secure boot: True
[2022-02-14 17:10:12.977099] Device serial link authorization: True
[2022-02-14 17:10:12.977173] Device download agent authorization: True

[2022-02-14 17:10:12.977264] Disabling watchdog timer
[2022-02-14 17:10:12.978107] Disabling protection
[Errno 5] Input/Output Error
[2022-02-14 17:10:14.008440] Payload did not reply

after this the program closes and the device poweroffs.

Plz help
[Redmi Note 9 Guides, News, & Discussion] ask6155:
UPDATE

I used the latest version of bypass found and github and used a patched kernel in order to use kamakiri to disable protection

After disabling it, I followed the tutorial.

The phone is off? at this point I setup sp flash tool and clicked download. I got these errors:

Connecting to BROM...
Connect BROM failed: STATUS_ERR(-1073676287)
Disconnect!
BROM Exception! ( ERROR : STATUS_ERR (-1073676287) , MSP ERROE CODE : 0x00.

[HINT]:
)((ConnectBROM,../../../flashtool/Conn/Connection.cpp,103))

Plz help
[Redmi Note 9 Guides, News, & Discussion] ask6155:
Last update

I was being stupid and had to run spflashtool using sudo.

this allowed me to flash the files.

I successfully unbricked!!!
[Redmi Note 9 Guides, News, & Discussion] broububu31:
ok super j'y suis arrivé, mon redmi note 9 est réparé, merci merci merci!

----------

MOD EDIT: English Translation Below

ok great i got there, my redmi note 9 is fixed, thank you thank you thank you!
[Redmi Note 9 Guides, News, & Discussion] wolflone726g:
Hello !

I am following your tutorial. Right now I am in the spflash tool and in the connection settings I see TWO devices : COM1 and COM3. I select COM3 as it said in your tutorial. BUT when I go to recheck the settings, I see that the device has been reverted to COM1 ? WHAT SHOULD I DO ? I dont want to make any more mistakes. PLEASE SOMEONE HELP ME ASAP !!! THANK YOU to anyone who helps me. Thanks in advance....
[Redmi Note 9 Guides, News, & Discussion] Toprak123:
Hello. I was trying to unbrick it but it gave me STATUS_EXT_RAM_ EXCEPTION so i disconnected the phone but it doesn't boot now. When i connect it to pc, windows gives me a error saying windows couldn't recognize the device. I can't do anything because the device is not recognized. Here is the ss.

EDIT: Ok i managed to fix it by pressing volume- , volume + and power altogether for 5 seconds and it got to bootloop again. The only problem is to drain battery. It takes soo long.

EDIT2: HOLY HELL I MANAGED TO UNBRICK IT THANK YOU SOOOOOOOOO MUCH MY FRIEND
[Redmi Note 9 Guides, News, & Discussion] achemist_17:
Hi, I followed all the steps and there are no errors. The merlin_global_images_V12.5.3.0.RJOMIXM_20220111.0000.00_11.0_global_6a8ef76c51 I used. However, when I disconnected my Redmi Note 9 and pressed power button, it still bricked. Any other way? Please help. Thank you very much.
[Redmi Note 9 Guides, News, & Discussion] Toprak123:
You saw download ok with green arrow right? Remember how you drained the phones battery, plug it in and test. Also make sure that you flashed the rom with firmware upgrade.
[Redmi Note 9 Guides, News, & Discussion] texrex10:
Sorry to jump on thisthis forum, but am having this same problem, but on a

xiaomi 11t, do you know of your guide would work.
[Redmi Note 9 Guides, News, & Discussion] achemist_17:
Yes, the check icon was showed and I chose firmware upgrade.
[Redmi Note 9 Guides, News, & Discussion] Toprak123:
I mean, if i were you i would send it to warranty. Even though you probably unlocked your bootloader which most of the times voids the warranty.
[Redmi Note 9 Guides, News, & Discussion] Toprak123:
Hmm so weird. You sure that you have battery right? If you have battery and if it doesn't boot up, try to hold down all three buttons while connected to pc. If that also doesn't work, then i am afraid you need to send the phone to warranty.
[Redmi Note 9 Guides, News, & Discussion] kjaked:
thanks for your help
[Redmi Note 9 Guides, News, & Discussion] mortenera6662:
thanks you
[Redmi Note 9 Guides, News, & Discussion] Carft:
Works on merlin like a charm.
[Redmi Note 9 Guides, News, & Discussion] Damnedfruit:
Thank you so much, worked like a charm, you helped me to complete fix my hard bricked phone and saved me 200 euros!

Don't really know why it hard bricked though, i flashed SHRP then crdroid rom, all was working fine, and then i rebooted to recovery and boom, bootlooped!
[Redmi Note 9 Guides, News, & Discussion] JONIWO:
Editing: I got along
[Redmi Note 9 Guides, News, & Discussion] Nuythe:
I'm trying this on my Redmi 9, I suppose it should work?

Earlier I couldn't get the drivers to install so I skipped to bypass.bat, it would recognize the phone but it fails saying "libusb not installed for device". Now however, I got libusb to install successfully but I can't get it to recognize the device, weird..

Update: if you have a Redmi 9 and can't get the script to recognize the device, try holding the volume down button when plugging it then remove it after it's plugged.

Update Update: if your device isn't recognized, or says can't find device on com 3, go to libusb bin folder, run the .exe with the red icon, and choose remove all filters, then add new filter
[Redmi Note 9 Guides, News, & Discussion] Nuythe:
GOD IS REAL, MAYBE IT'S THE OP

THANK YOU SO MUCH, I CAN BOOST INTO FASTBOOT NOW (redmi 9)
[Redmi Note 9 Guides, News, & Discussion] vagelis199:
did the guide work on redmi 9?
[Redmi Note 9 Guides, News, & Discussion] Nuythe:
Yeah. It should work on most MediaTek systems

Although, now phone is still refusing to boot. I installed global ROM and I can't boot into it, it says "This MIUI version can't be installed on this device". Tried unlocking the bootloader from the official tool but it requires me to have the account binded to the phone. Any ideas?

Update: MY PHONE IS FIXED(if you consider the chinese rom as, usable), I HAD ONLY TO FLASH THE CHINESE ROM INSTEAD OF THE GLOBAL ONE

@vagelis199 dude, thank you, so, much dude. You sir are an absolute legend
[Redmi Note 9 Guides, News, & Discussion] mrbrodaty:
I have little problem bc my bat files didn't work properly
[Redmi Note 9 Guides, News, & Discussion] Nuythe:
enter cmd and type 'pip install serial'
[Redmi Note 9 Guides, News, & Discussion] mrbrodaty:
Can someone help i dind't know what i do wrong
[Redmi Note 9 Guides, News, & Discussion] mrbrodaty:
now i have this problem. any solution?
[Redmi Note 9 Guides, News, & Discussion] Yxles:
I got this error when running the 1st bat file. How do I fix it?
[Redmi Note 9 Guides, News, & Discussion] Yxles:
nvm this is what I get from only focusing on one sentence and not checking the rest lol but now I run on another problem, at Step 15 there's no fastboot image extraction folder so what should I do to get the file for scatter?
[Redmi Note 9 Guides, News, & Discussion] VD171:
You got problems in communication.

Try another usb port, another usb cable, or try holding the usb cable with hands.

Good luck
[Redmi Note 9 Guides, News, & Discussion] Yxles:
nvm this is what I get from only focusing on one sentence and not checking the rest lol but now I run on another problem, at Step 15 there's no fastboot image extraction folder so what should I do to get the file for scatter? I look one online but I always got this error when changing to firmware upgrade
[Redmi Note 9 Guides, News, & Discussion] Nuythe:
Could it be that you got the recovery rom instead of the fastboot one?
[Redmi Note 9 Guides, News, & Discussion] Yxles:
Nope, its my first time using SP Flashtool and didnt know anything about it until now. I just found out that the scatter file was inside the fastboot rom and the whole file needed to be extracted before using it but now I flashed it successfully but the device is still keep rebooting at Redmi logo