yashsingh1/xdaforums huggingface dataset:
[Redmi Note 9 Guides, News, & Discussion] alecxs:
Moderator announcement

Greetings. As a friendly reminder, we ask all members to please post in English as stipulated by XDA Rule #4:

Spoiler content hidden.

Thank you all for your cooperation.

(y)

alecxs

XDA moderator
[Redmi Note 9 Guides, News, & Discussion] zoalmat:
I have a problem with (failed device descriptor request), can someone help me?
[Redmi Note 9 Guides, News, & Discussion] Johnrox:
do anyone have the same problem as mine how can I solve this? please I really need help
[Redmi Note 9 Guides, News, & Discussion] alecxs:
RuntimeError: libusb is not installed for port COM4
[Redmi Note 9 Guides, News, & Discussion] Johnrox:
Update:

I had already fixed it and my phone is now fixed thank you for this thread it really is a great help to me
[Redmi Note 9 Guides, News, & Discussion] pareekyashovardhan:
I'm facing the same issue. Did you find a solution?
[Redmi Note 9 Guides, News, & Discussion] BLACK_TACIT_RONIN:
excellent thank you very much I already knew how to use sp but I didn't have drivers, all the others didn't work for me with multiple errors, in all 3, with these it was fast and smooth

by the way I'm not a note 9 but a note 8 2021, but since they have the same mtk processor, tip: press all the buttons then connect the cable, grab it suddenly

Spoiler content hidden.

Mod. edit: post translated. alecxs
[Redmi Note 9 Guides, News, & Discussion] nathanaimless:
"Hi, I'm having problems with my Redmi 9 Lancelot. After installing TWRP, my phone bricked and now it's restarting endlessly. When I try to enter fastboot mode or recovery mode, the phone won't enter and it goes back to the desktop screen. MIUI while keeps restarting endlessly I tried to recognize it on the computer but it is not recognized in any mode.
[Redmi Note 9 Guides, News, & Discussion] nathanaimless:
"Hi, I'm having problems with my Redmi 9 Lancelot. After installing TWRP, my phone bricked and now it's restarting endlessly. When I try to enter fastboot mode or recovery mode, the phone won't enter and it goes back to the desktop screen. MIUI while keeps restarting endlessly I tried to recognize it on the computer but it is not recognized in any mode. Help me
[Redmi Note 9 Guides, News, & Discussion] JulanaNicola1322:
Can someone help me? When i connect the device it says Device Descriptor Request failed and i installed all the drivers and followed all the stepa until that moment. Do someone deal with that problem. Can it be solved?
[Redmi Note 9 Guides, News, & Discussion] alberto-01:
Ayudame puedes arreglar mi movil desde tu pc es q no me sale en la mia
[Redmi Note 9 Guides, News, & Discussion] Clark Joseph Kent:
As per the Forum Rules.

4. Use the English language.

We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature). You could try :- https://translate.google.com/ , https://www.babelfish.com/ or https://fanyi.baidu.com/#auto/en or use one of your choice.
[Redmi Note 9 Guides, News, & Discussion] alberto-01:
Help me, you can fix my mobile from your pc, it's that I don't get step 8 and 11 on mine please
[Redmi Note 9 Guides, News, & Discussion] gdpt:
Thank you for saving my phone 🥰
[Redmi Note 9 Guides, News, & Discussion] Poxujistas:
My usb cable crapped out on me during the "download" and now whenever i connect the phone to PC it just shows unrecognized device. Python script picks up nothing. Tried different drivers etc. Are there any options after botched download or am I done?..
[Redmi Note 9 Guides, News, & Discussion] alberto-01:
[2023-05-01 15:22:48.905661] Esperando dispositivo

[2023-05-01 15:22:54.319671] Puerto encontrado = COM6

Rastreo (llamadas recientes más última):

Archivo "main.py", línea 213, en <módulo>

principal()

Archivo "main.py", línea 44, en main

config, serial_link_authorization, download_agent_authorization, hw_code =

get_device_info(dispositivo, argumentos)

Archivo "main.py", línea 153, en get_device_info

subir mi

Archivo "main.py", línea 146, en get_device_info

config = Config().default(hw_code)

Archivo "D:\Beto\fsgsgsg\Nueva carpeta\Nueva carpeta\Nueva carpeta\Updated BTP\Up

fechado BTP\src\config.py", línea 15, por defecto

self.from_file(config, hw_code)

Archivo "D:\Beto\fsgsgsg\Nueva carpeta\Nueva carpeta\Nueva carpeta\Updated BTP\Up

fechado BTP\src\config.py", línea 28, en from_file

aumentar NotImplementedError("No se puede encontrar {} hw_code en config".format(hw_code))

NotImplementedError: no se puede encontrar 0x989 hw_code en la configuración

Presione una tecla para continuar. . . How do I solve this error in the bypass, I tried 1 and 2 and the same thing comes out and when I enter the flash tool that I'm going to put the sccater I also get an error, can someone help me solve these two errors?
[Redmi Note 9 Guides, News, & Discussion] earl_21:
guys i always get an error with code 0xc0050001... what to do?
[Redmi Note 9 Guides, News, & Discussion] VAZHA24:
bro i love you marry me please
[Redmi Note 9 Guides, News, & Discussion] zkingismad:
Man is there any way you got for a redmi note 9 pro max?
[Redmi Note 9 Guides, News, & Discussion] amine90501:
i tried downgrading from miui 13.0.2 to miui 11 and my phone got hard bricked but i followed all the steps and my phone works now thank you sooo muchhh <3 <3 <3
[Redmi Note 9 Guides, News, & Discussion] Emhmed_Ahmady:
is this steps work only on note 9 or i can use it for Redmi k40 gaming (ares) ?
[Redmi Note 9 Guides, News, & Discussion] Emhmed_Ahmady:
i reached step 12 and my device doesn't recognized (my phone is redmi k40 gaming and also media tek cheep) do you know whats the issue??
[Redmi Note 9 Guides, News, & Discussion] Allan MI 11 Ultra:
Meu MI 11 Ultra está no modo hard brick! um peso de papel!

Quando fui atualizado para MIUI 14 ele simplesmente não voltou a fincionar!

Quem puder me ajudar eu agradeço!

Por favor, me ajudem!
[Redmi Note 9 Guides, News, & Discussion] Abirm:
Unfortunately, This didn't work on my note 9 global and I get bootloops from the "Redmi" screen after flashing the fastboot from. Although I didn't face any errors, followed each and every step correctly, and after the flashing after getting the green window in SP flash tool with tick mark, I disconnect the phone and press the power button, and it bootloops from the redmi logo. I guess this is a hardware issue?

I can access the fastboot mode btw. is there any fix to this?
[Redmi Note 9 Guides, News, & Discussion] gr10140:
i followed everything correctly but in 12th step when i open 1 st run this i get module not found error no module named 'src.exploit'
[Redmi Note 9 Guides, News, & Discussion] Linkonlk:
How to resolve this? In this Bypass?
[Redmi Note 9 Guides, News, & Discussion] pirhanasmolotovecocktails:
my redmi note 9 cant enter fastboot or recovery mode my screen is blank i try everything on the net. when i plug usb cable windows 11 laptop says "usb device not recognized" pls help
[Redmi Note 9 Guides, News, & Discussion] veg12:
Operating System: Artix Linux

My image fastboot: XIAOMI REDMI NOTE 9 (MERLIN) MIUI V13.0.2.0 ANDROID 12.0 (global) (merlin_global_images_V13.0.2.0.SJOMIXM_20221013.0000.00_12.0_global)

Go to folder bypass. And run command:

sudo python main.py

Output:

[2023-06-17 12:36:26.787921] Waiting for device
[2023-06-17 12:36:36.933758] Found port = /dev/ttyACM0

[2023-06-17 12:36:37.040123] Device hw code: 0x707
[2023-06-17 12:36:37.040218] Device hw sub code: 0x8a00
[2023-06-17 12:36:37.040263] Device hw version: 0xca00
[2023-06-17 12:36:37.040304] Device sw version: 0x0
[2023-06-17 12:36:37.040355] Device secure boot: True
[2023-06-17 12:36:37.040392] Device serial link authorization: True
[2023-06-17 12:36:37.040428] Device download agent authorization: True

[2023-06-17 12:36:37.040469] Disabling watchdog timer
[2023-06-17 12:36:37.041023] Disabling protection
[Errno 5] Input/Output Error
[2023-06-17 12:36:38.721341] Payload did not reply

lsusb output (after bypass):

lsusb
Bus 001 Device 012: ID 0e8d:0003 MediaTek Inc. MT6227 phone

Now I run SP Flash Tool v5.2228.00 :

sudo ./flash_tool.sh

I got that error after clicking download:

ERROR : STATUS_BROM_CMD_STARTCMD_FAIL (-1073348607) , MSP ERROE CODE : 0x00.
[Redmi Note 9 Guides, News, & Discussion] gr10140:
have you got any answer
[Redmi Note 9 Guides, News, & Discussion] gr10140:
12 th step is not working i got stuck it said no module found
[Redmi Note 9 Guides, News, & Discussion] rahab_siddiquee:
UPDATE: Fixed after selecting Download only mode, now I'm getting error that NV data is corrupted. Which I will find the solution, at least it turns on now.

Hi, I did every step correctly. Did not get any error or any other issues. But at the final step, it says Failed to get PMT info. After I pressed ok and download again, it keeps giving me status error.

Screenshot

Captured with Lightshot

prnt.sc
[Redmi Note 9 Guides, News, & Discussion] KingRx:
Excellent friend, good process to rescue the phone, I did it in a redmi 9 lancelot version, the procedure with the buttons changes a bit, it is usually done with the volume down button and not with the volume up button, it takes a lot of patience and a lot of try, I recommend using a usb 3.0 port for this model, in my personal experience the usb 2.0 port had many disconnections

Again, thank you very much for the guide, it was very helpful, I gave up my phone and you saved my life!
[Redmi Note 9 Guides, News, & Discussion] Dataman95:
im also stuck @ step 12 :/ , it says no module found
[Redmi Note 9 Guides, News, & Discussion] Dataman95:
please help, im stuck at step 12 since yesterday.
[Redmi Note 9 Guides, News, & Discussion] Dataman95:
nvm... i tried again with another pc, and it worked :D , thank you
[Redmi Note 9 Guides, News, & Discussion] Fahad Bin Hussain:
My device - Xiaomi 11i Hypercharge

I don't get "Protection disabled" at the end. The CMD stay stuck at Found Port = COM3

And if I ignore and continue>>

I'm getting partition [efuse] no image file exist error in sp flash tool, when trying to change the mode from download only to firmware upgrade. Or should I try Download only mode?

I ignored the efuse and tried to went on with download only mode.

But then in options, UARD, the COM 3 port is not available under UARD. But the "2nd RUN THIS" and DEVICE MANAGER successfully detects COM 3 port successfully but the SP tool doesn't.

UPDATE: I just realised that when I keep "2nd RUN THIS" running, then the COM 3 is not detected inside sp flash tool UARD. But if I close "2nd RUN THIS" then, COM 3 gets detected (BUT after closing the option window of sp, It gets automatically changed to COM 1 again). I can't start the flash because of this. And If I use the USB process, then my device gets detected, but I get a BROM error.

what should I do now?

LAST UPDATE: Finally was able to bring my brick to life (after being a paperweight for a very long 8 hours) with MTK Client.

This is the yt step by step guide. If anyone is interested (Be sure to put your attention to the PARTITIONS for your device/s when executing commands)
[Redmi Note 9 Guides, News, & Discussion] cmtitan:
hello, I keep getting error on step #12 it says

"Traceback (most recent call last):

File "C:\Users\ASUS\Desktop\revive\main.py", line 3, in <module>

from src.exploit import exploit

ModuleNotFoundError: No module named 'src.exploit'"

please help me
[Redmi Note 9 Guides, News, & Discussion] cmtitan:
I'm stuck on step no.12 with another error
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
You didn´t set up correctly the tool, follow the guide https://github.com/MTK-bypass/bypass_utility download the payloads folder, and put the folder in the same directory where you unpacked the bypass_utility-master zip
[Redmi Note 9 Guides, News, & Discussion] Fahad Bin Hussain:
Make sure all the files are available in the folder you downloaded and your antivirus didn't remove any files.
[Redmi Note 9 Guides, News, & Discussion] fytage:
hello, can anyone PLEASE help me? this is the last time im trying to unbrick this phone and my problem is whenever i try to keep the phone turned off so it can flash, it keeps connecting and disconnecting, when i release the buttons, the phone just starts bootlooping again. PLEASE anyone help me PLEASE i am so desperate
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
This is because your device didn´t enter in preloader, or BROM mode (according the needs).

Launch the mtk-client tool, then connect your device, and keep pressing both volume buttons, till you see the CLI tool is performing the task.

Again, once the tool "gets" your device, it´ll be retained by.
[Redmi Note 9 Guides, News, & Discussion] jotiprova:
Hi, can you please help me with this problem?

My Redmi Note 9 is rebooting constantly, it is neither completely switching on nor completely going on the standby mode. Previously, when this problem occurred for the first time (November 2022) i took it to the Mi Service Center and they changed the battery while also formatting the phone and it worked. Soon after 6 days the phone again started having the same problem of rebooting. That time they fixed it but they didn't tell me what was the issue and how they fixed it. Fast forward to 30th July 2023, the same issue showed up again, kept rebooting, took it to the service center and they changed the power button this time, it worked well for almost two weeks and then again today (August 14th, 2023) it went Rebooting. The phone was on the table while it started rebooting, which means i was practically not even using the phone. Please help me fix this.
[Redmi Note 9 Guides, News, & Discussion] fytage:
HEY! I have fixed this issue, what do I do with this? I have no idea.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
It´s seem an issue hardware related. if it is at software level, has to be fixed flashing the latest ROM, or we can theorize, that somehow, the display is not compatible with a specific ROM, if it is that the reason, then downgrading may fix it.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
I guess, you´re trying to disable the auth, using this tool, and then you intend to use SPFT.

About SPFT, it´s just a thing to keep it trying, combining these steps, trying continuously, a step, if this doesn´t result, then try the next:

- You´d need to disassemble the back cover, then try without battery...

- The next, with battery.

- Try using UART, at 92600 baud rate...

- And next, try using USB, at maximum speed .

Also, can be solved, using a different preloader file, you may find in some post here, some special/custom preloader. For this you´d need, to flash only that preloader, in a round, then, flashing all of the rest of files, in the next round. This special/custom preloader does, the rest of files writable, otherwise, you won´t write to the device.

And, lastly, why not use for all the process, only mtk-client. in this case, you don´t need to disable protection, I flashed my RN9, first launching the command, then pressing both volume buttons, and then connecting to the PC, instantly, the command will do the effect, to run the next command, you don´t need to redo the operation, just with the device still attached, you have to launch.
[Redmi Note 9 Guides, News, & Discussion] fytage:
hi. i cannot disassemble the back cover and even if it meant having a bricked phone i just won’t do it, don’t ask me why, i can’t and i don’t have any tools etc. i will try the USB one in a sec, and then get back to you
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Plz read, all what I wrote, and say that eventually you may need it, but not always. Only keep trying switching the modes I pointed out.

What I did is, launching the command through mtk-client, then holding the three buttons, then connecting to the PC, when you see the command is working release all the buttons.
[Redmi Note 9 Guides, News, & Discussion] Tripishadow:
Hi Everybody,

Thanks to Vangelis for this guide, I try to change to a custom rom my redmi note 9 and i brick it. Now it is working. But with a hard work. I found some issues but solved doing all the operation again. If your Phone, the phyton, the flash tool don´t work properly, begin again with the guide. Vangelis do a very good job. Also my phone started with the three button push.

Regards

Antonio
[Redmi Note 9 Guides, News, & Discussion] Iksmanny:
Hi everyone, so my phone REDMI note 9 with refused accepting google on the global ROM MIUI 12.0.7 after wiping data, I also tried updating to newer MIUI version like the 12.5 but all to no avail.

I just had to download the firmware then try flashing it with Spflash tool but it failed with the error message (STATUS SEC IMAGE TOO LARGE) the phone has been on bootloop.

I want to try out this guide.
[Redmi Note 9 Guides, News, & Discussion] SirTheJashin:
Uff bro realmente gracias, lo logre siguiendo todos los pasos en mi redmi note 9 de verdad que ya no sabia que hacer esta era la ultima esperanza que tenia
[Redmi Note 9 Guides, News, & Discussion] black_skull:
CAn you do a complete tutorial please
[Redmi Note 9 Guides, News, & Discussion] Fahad Bin Hussain:
I highly recommend watching the youtube video I have shared. I believe it covers everything you need to know. If you have any specific problems, feel free to reply to this thread and we will assist you further.
[Redmi Note 9 Guides, News, & Discussion] Weidnerklaus:
Hallo Vagelis199, eine Frage: Bei meinem Redmi Note 9 ist die Zeit zwischen Ein- und Ausschalten so kurz, das man im Filter-Wizard keine Gelegenheit hat, den Mediathek Driver

anzuklicken. Was könnte man noch tun. Würde mich freuen, eine Antwort zu erhalten.

MfG

Weidnerklaus
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
English is required here.

First, connect your device to the PC, then run the tool. Also, consider that your device passes, through various stages, when you press the PWR button, I mean, is near to power on, then it is trying to restart, but if you press the correct volume button, then it bypass that state, and can enter to other mode, all of that, just pressing and releasing the correct hardware buttons.
[Redmi Note 9 Guides, News, & Discussion] prasantsaud:
I am stuck in this help please.
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Redo the process, issue with dependencies, install them correctly from scratch.
[Redmi Note 9 Guides, News, & Discussion] SteveRich:
Ich have exactly the same problem at step 12, running "1st run this". So I repeated the whole beginning from step 1, but same error at step 12 - other possible helps?
[Redmi Note 9 Guides, News, & Discussion] Ehab_200:
THANK YOU SO MUCH!😍 man you've helped me I'm very thankful to you 💜😊
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Can you show some screenshots from the error?
[Redmi Note 9 Guides, News, & Discussion] SteveRich:
Its only one screenshot - hope you can help me
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
some dependencies are missed, uninstall all, and reinstall properly.
[Redmi Note 9 Guides, News, & Discussion] arkzok:
[removed]
[Redmi Note 9 Guides, News, & Discussion] arkzok:
I have the same problem. Everything is installed properly, but exploit.py isn't included in src folder. Also, I had to correct "src.common" and "src.logger" in device.py to ".common" and ".logger" because they are in the same folder. Also, "import serial.tools.list_ports" gives an error, even though I can Ctrl+left-click and see the code, so I have no idea why can it not be imported. Also, json5 cannot be imported, even though when I tried to install it through cmd it said that requirement already satisfied [directory], so I have no idea here either. If you have the exploit.py, could you please send it so I can put it into the bypass folder and see if there are any other errors further?
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Put it in some convenient path, be sure that python has enable that path, also some dependencies can be installed with pip3. But, I guess, this is complete, to replace what you have.
[Redmi Note 9 Guides, News, & Discussion] ArDRaFi50302:
I'm getting errors on the 12th stage those 2 bat files give error

Traceback (most recent call last):
File "F:\Phones ****\Brickeds\XDA\bypass\main.py", line 3, in <module>
from src.exploit import exploit
File "F:\Phones ****\Brickeds\XDA\bypass\src\exploit.py", line 4, in <module>
import usb
ModuleNotFoundError: No module named 'usb'
Press any key to continue . . .

Traceback (most recent call last):
File "F:\Phones ****\Brickeds\XDA\bypass\main.py", line 3, in <module>
from src.exploit import exploit
File "F:\Phones ****\Brickeds\XDA\bypass\src\exploit.py", line 4, in <module>
import usb
ModuleNotFoundError: No module named 'usb'
Press any key to continue . . .

what should i do?
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
Modules are not present, not correctly installed or unreachable. Download the master zip from the GitHub site, decompress it, and install the dependencies correctly, just install a Python version, also can be that some dependencies need to pip3 to be installed.
[Redmi Note 9 Guides, News, & Discussion] ArDRaFi50302:
if you dont mind can you provide the link i cant seem to find that. and after that where should i start again like do i start from the start or 10 or 11 number step?
[Redmi Note 9 Guides, News, & Discussion] SubwayChamp:
First go to (most likely) where you firstly tried to set it up this stuff, to your C drive, then users/your user/mtkclient, and delete this folder.

Then download the zip, preferably, in your desktop, https://github.com/bkerler/mtkclient/archive/refs/heads/main.zip

Install Git for Windows, https://gitforwindows.org

install Python from the net, not from Microsoft store, the 3.9 version will be good to go, https://www.python.org/downloads/release/python-390/

Then run the commands provided in the GitHub site:

Grab files, and install the requirements:

Remember to run, line by line, checking if it throws some error,

git clone https://github.com/bkerler/mtkclient

cd mtkclient

pip3 install -r requirements.txt

python3 setup.py build

python3 setup.py install

And then install the UsbDk, https://github.com/daynix/UsbDk/releases/

After to install the requirements from Git, I close it, and open a terminal command, from the path, where the mtk-client is allocated.

You´re ready to go.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Windows defender sees exploit.py as trojan. Every other antivirus also so that's because it disappears from disk.

After many hours of struggles i finally came to single error.

Error 0xC0060001

Message: BROM ERROR: S_BROM_CMD_STARTCMD_FAIL (0xC0060001)

Meaning: The device attempted to power on before SP flash tool could flash files to it

Solution:

The device might require a custom Download Agent (DA) to be flashed

Go to Options > Option > Connection and set connection to USB high speed auto detect. Only choose UART when you have a device detected in the chosen UART port

Ensure the battery is well charged

Take out and reinsert the battery

Try using a different USB cord, port and PC

Right-click flash_tool.exe > Select Properties > Select Compatibility > Set to Windows XP Service Pack 3 > Click Apply > Click OK > Run SP flash tool as Administrator

Try a different USB cord

Try a different port on the PC or another PC

Ensure the battery is well changed and inside the switched off phone before connecting to PC for flashing

Do not hold any button when connecting to PC

I tried everything besides removing battery. Still same error and i can't figure out what's wrong. Can anyone help in this matter?

Phone is not rebooting anymore. It is detected on COM3 everytime (unless i change USB port then it's COM4, COM5 etc.). Drivers from wizard have been reinstalled, also from device managment. I tried every other DA found for this model. Always same error.
[Redmi Note 9 Guides, News, & Discussion] lastbutnotleast:
Your antivirus deleted exploit.py because it's treated as trojan.