Debugging by USB on Xiaomi Redmi Note 9: how to turn on and configure

Why do I need USB debugging on Redmi Note 9?

Debugging mode by USB (USB Debugging is a hidden Android feature that unlocks access to the advanced capabilities of the smartphone through a computer.On Xiaomi Redmi Note 9 (models) M2003J15SS, M2003J15SC etc.) this mode is required to perform operations not available in the standard interface MIUI. Without it, it is impossible to flash the device through fastboot, get root rights, use tools like ADB Scrcpy to manage your phone with a PC.

Enabling debugging over USB is the first step to:

  • πŸ”§ Installation of custom firmware (LineageOS, Pixel Experience)
  • πŸ“± Unlock the bootloader unlock via Mi Unlock Tool
  • πŸ–₯️ Controlling a smartphone from a computer (for example, to stream a screen)
  • πŸ› οΈ Data recovery after system failure

But it's important to understand that activating this mode reduces the security of the device, and through the open ADB port, attackers can access personal data if the phone is connected to an unsecured PC, so only enable debugging when necessary and disable it after use.

πŸ“Š Why do you include debugging on USB?
Installation of custom firmware
Unlocking the loader
Control with PC (Scrcpy/ADB)
Data recovery
Other

Preparation: Unlocking the Developer Menu

On the Redmi Note 9 (as with all Xiaomi smartphones), the USB debugging option is hidden in the Developer Menu. To unlock it, follow the following steps:

  1. Open the Settings. β†’ The phone.
  2. Find the MIUI version string and tap it 7 times in a row.
  3. After the notification β€œYou became a developer!” appears, return to the main settings menu.

Now a new section Additional β†’ For Developers will appear in the settings, and if it is not available, check if it is hidden in the Advanced Settings submenu (depending on the version of MIUI).

πŸ’‘

On some Xiaomi firmware, the developer menu may be called β€œDeveloper Mode” or β€œDeveloper Settings.” If you don’t find it, search by settings (the magnifying icon at the top).

⚠️ Attention: Redmi Note 9 with MIUI 12.5+ After unlocking the developer menu, you may need to enter a password from the Mi Account. This is a security measure - without a tied Xiaomi account, some options will not be available.

Step-by-step: how to enable debugging by USB

Once the developer menu is activated, we go directly to debugging. Follow the instructions carefully - skipping steps can lead to errors when connecting to the PC.

β˜‘οΈ Initiation of debugging USB on the Redmi Note 9

Done: 0 / 4

Detailed sequence of actions:

  1. Go to Settings. β†’ Additionally. β†’ For developers. ⚠️ Note: If the option is to debug USB Inactive (grey), first switch on the unlock switch OEM On some Xiaomi firmware, it blocks debugging access.
  2. Find the USB Debugging option and move the slider to the right, and a warning will appear, press OK.
  3. Connect the Redmi Note 9 to your computer via the original cable (it is advisable to use a USB 2.0 port for stability).
  4. On the phone screen, a request will appear "Allow debugging over USB?" with an RSA key. Check Always allow from this computer and click Allow.

Critical detail: If you connect the phone to a new PC, the RSA request will pop up again. Xiaomi resets the list of trusted devices after resetting settings or updating MIUI.

Problem.Reason.Decision
Debugging is not enabled (grey switch)Unblocked OEM or Mi Account disabledEnable OEM Unlock and Link Your Xiaomi Account
The computer does not see the phone in ADBMi ADB/Fastboot drivers not installedDownload Mi PC Suite or drivers manually
RSA request doesn't appearUSB port is faulty or the cable does not support data transferTry a different cable/port or reboot both devices

Checking the work of debugging: ADB teams

To make sure that the USB debugging is working correctly, check through the command line.

  1. Download and install Android SDK Platform-Tools (or use Xiaomi’s Mi Flash Tool).
  2. Connect Redmi Note 9 to your PC and open Command Prompt (Windows) or Terminal (macOS/Linux) in the folder with adb.exe.
  3. Enter the command: Adb devices

If debugging is enabled correctly, you will see the serial number of the device (for example, 1234abcd device) in the answer. If it appears unauthorized instead, you have not confirmed the RSA request on the phone or are using a non-original cable.

What to do if ADB issues a β€œno devices found” error
Check if the debugging is included USB And if you're allowed access from this PC, reconnect the cable, try another one. USB-Port (preferably 2.0) Make sure drivers are available ADB installed (Device Manager should not have exclamation points next to Android Device).

Security: Risks and how to minimize them

USB debugging gives you full control over your device via ADB, which means that any application or script on a connected PC can:

  • πŸ“ Copy your files (photos, messages, passwords)
  • πŸ”„ Install/remove programs without your knowledge
  • πŸ”“ Bypass the screen lock (on some firmware)

To protect the data:

  • πŸ”’ Use debugging only on trusted computers.
  • πŸ”„ Turn it off after the work is completed (Settings) β†’ For developers β†’ Debugging by USB).
  • πŸ›‘οΈ Set a password to your Mi Account and enable two-factor authentication.

On the Redmi Note 9 with MIUI 13+ Xiaomi added additional protection: when connecting to a new PC, the system requires input PIN-The phone code, even if debugging is already allowed, prevents unauthorized access through the phone. USB.

πŸ’‘

Never connect a USB debugging phone to public charging stations (airports, cafes) because they can steal data or install malware.

Frequent mistakes and their solutions

Even after debugging is enabled correctly, Redmi Note 9 users are facing problems. Let's look at typical scenarios and how to fix them.

1.The phone is not detected in fastboot

If you try to go to fastboot mode (holding Power + Volume Down), the computer does not see the device:

  • Check if you have installed Mi Fastboot drivers (you can download from the official Xiaomi website).
  • Try another one. USB-port (preferably) USB 2.0).
  • Turn off all others. USB-PC devices – they can conflict.

Error "ADB server didn't ACK"

This error occurs when port 5037 is occupied by another process.

  1. Close all programs that use ADB (such as Scrcpy or Android Studio).
  2. Execute in command line: adb kill-server adb start-server

3. Hanging in the "Waiting for device" stage

If the adb device command does not show the device for a long time:

  • Restart the phone and PC.
  • Try another one. USB-cable (preferably original from Xiaomi).
  • Disable the antivirus – it can block the ADB connection.

πŸ’‘

Windows. 10/11 Sometimes, it helps to turn off the Quick Start function in the power settings. USB-port.

Disabling debugging over USB: when and how

USB debugging should be deactivated in the following cases:

  • πŸ”Œ After completing all manipulations with the phone (firmware, backup, etc.).
  • πŸ›‘οΈ Before transferring the phone to third parties (for example, to a service center).
  • πŸ“± If you notice suspicious activity (independent application installation, traffic consumption).

To disable debugging:

  1. Go to Settings β†’ Additional β†’ For developers.
  2. Find the USB Debugging option and move the slider to the left.
  3. (Optional) Disable the developer menu completely by resetting the settings in the Apps β†’ All Apps β†’ Settings β†’ Storage β†’ Reset.

⚠️ Note: On some versions MIUI After debugging is disabled, it may be necessary to restart the phone to make the changes take effect. ADB until next connection.

Can I enable debugging over USB without a developer menu?
No, on Redmi Note 9 (as with all Android devices), USB debugging is only available through the Developer Menu. Without it unlocked (7 taps according to MIUI), it is impossible to enable it. Alternative methods (for example, through ADB) require that debugging is already activated - it is a vicious circle.
Why is USB debugging disabled after MIUI update?
Xiaomi resets some developer settings after major updates (e.g., from MIUI 12 to MIUI 13).This is a security measure. To regain access: Turn on the developer menu again (7 taps according to MIUI). Activate debugging over USB and confirm the RSA request when connecting to the PC. If the USB debugging option has disappeared from the menu, reset the Settings app (see the instructions above).
How to turn on debugging if the phone is not turned on (bootloop)?
If the Redmi Note 9 is stuck on the screensaver or not loading, you can't debug USB - it only works on the working system. In this case: Put the phone in fastboot mode (hold Power + Volume 10 seconds). Connect to your PC and use the Mi Flash Tool for flashing (no debugging required). If you need to save data, contact the service center: to extract files, you will need to disassemble the phone and connect to the programmer.
Does USB debugging work on a locked bootloader?
Yes, USB debugging (ADB) works regardless of bootloader status. However, for operations requiring fastboot (such as unlocking or firmware), you will need to: Unlock OEM Unlock in the developer menu. Link your Mi Account to the device (required to be officially unlocked through the Mi Unlock Tool). Without the unlocked bootloader, you will not be able to install custom firmware, but the basic ADB commands (copy files, logs) will be available.
Can I enable debugging via USB through my computer if my phone is locked?
No, if the Redmi Note 9 screen is locked (a PIN/pattern lock is required), it is remotely impossible to enable debugging. This is an Android security limitation. The only exceptions are: If debugging has already been enabled and you have allowed access from this PC (then you can use ADB to unlock). If the phone has a custom recap (TWRP) through which you can reset the password. Otherwise, you will need to reset via fastboot (loss of data) or contact the service.