How to enable debugging on Xiaomi: instructions for all models (2026)

The USB debugging mode on Xiaomi smartphones is a powerful tool that unlocks hidden Android features, allows you to install custom firmware, test apps through ADB, and even restore the device after serious crashes. Without this mode, you can not unlock the bootloader, get root rights or flash the device through fastboot. However, the manufacturer hides this option in the developer menu, which is disabled by default.

In this article, you will find current ways to enable debugging for all modern Xiaomi, Redmi and POCO models (including devices on MIUI 14/15 and Android 13/14). We will discuss not only the standard method through settings, but also alternative options for cases where the developer menu suddenly disappears or the smartphone does not respond to commands.

Why do I need to debug USB on Xiaomi

Debugging by USB (USB Debugging is not just a tick in the settings, it's a complete bridge between your smartphone and your computer:

  • πŸ”§ Install TWRP or other custom recovery
  • πŸ“± Unlock the bootloader through the Mi Unlock Tool
  • πŸ› οΈ Restore the bricks after a failed firmware
  • πŸ€– Testing apps through Android Studio
  • πŸ”’ Get root rights (for example, through Magisk)

It is important to understand that the enabled debugging makes the device vulnerable to attacks through connected devices. USB-An attacker with physical access to the phone can steal data or install malware without your knowledge, so activate this mode only when necessary and turn off immediately after use.

⚠️ Note: Some Xiaomi models (e.g. Redmi Note 12 Pro)+) After activating debugging, the Mi Account settings are automatically reset. Before turning on the mode, make sure to remember the password from the Xiaomi account - otherwise you risk losing access to the device!

Standard method: Include through the developer menu

This is the easiest and most secure method that works on 99% of Xiaomi devices, and the instructions are relevant for MIUI 12/13/14/15 and Android 11/12/13/14:

  1. Open the Settings app (cog icon).
  2. Go to About Phone (or About Device on some models).
  3. Find the MIUI version and tap it 7 times in a row, after 3-4 clicks, a notification will appear "You are almost there!", and after the 7th, a message will appear "You are a developer!".
  4. Return to the main Settings menu – there will be a new section for developers (may be in the submenu Additional).
  5. Turn on the debugging switch over USB and confirm the action in the window that appears.

On some devices (e.g. POCO F5), the developer menu may be called Developer Mode or Developer Settings. If you don't find a section, search by settings (the magnifier icon at the top of the screen) and type in the "debug" request.

Remember the password from Mi Account|

Connect your phone to charge (at least 50% battery) |

Install official Xiaomi drivers on PC|

Shut down. VPN Proxy servers (can block the connection)-->

Alternative methods for incorporating debugging

If the standard method doesn’t work (e.g., the developer menu is gone after an update or reset), try these options:

Method 1: Through ADB (if debugging was enabled earlier)

If you have previously activated debugging, but it suddenly turned off, you can try turning it back on via the command:

adb shell settings put global development_settings_enabled 1


adb shell am start -n com.android.settings/.DevelopmentSettings

This command is forced to open the developer menu, even if it's hidden, and then you can manually enable debugging.

Method 2: Engineering menu (for older models)

On devices up to Redmi Note 9, there is sometimes a workaround:

  1. In the phone app, type the code: ##4636##
  2. Select the item Phone Information
  3. Slip on the build number 7 times (similar to the method with the version of MIUI)

⚠️ Note: The engineering menu contains options that may cause the device to lose warranty or fail. Do not edit settings unless you are sure of their purpose!

Standard (via MIUI Version) |

Through ADB|

Through the engineering menu|

None of them helped.-->

Problems in incorporating debugging and their solutions

Even after successful activation of the developer mode, users often encounter errors, and here are the most common ways to fix them:

Problem.Reason.Decision
Debugging is enabled, but the PC does not see the deviceThere are no Xiaomi or ADB drivers.Install official drivers and check the connection via adb devices
Developer's menu missing after updateResetting MIUI settingsRepeat the activation procedure (7 taps according to MIUI)
When connecting to the PC, an error "Unauthorized device" appearsNot confirmed. RSA-keyAllow debugging in the window that appears on the smartphone screen
Debugging automatically shuts down after restartingMIUI Security PolicyTurn off data protection in the developer settings

If your problem is not listed in the table, try resetting the network settings (Settings). β†’ SIM-maps and mobile networks β†’ Reset network settings) or perform a soft reset of the device (reboot via Power β†’ Reboot).

What to do if you forget your Mi Account password?
If you activated debugging, but forgot the password from your Xiaomi account, and the phone requires authorization – the only official way to restore the device: 1. Go to the site. [account.xiaomi.com](https://account.xiaomi.com) PC. 2. Select β€œForgot your password?” and follow the instructions (you need access to your email or phone number tied to you). 3. After password recovery, connect your phone to the Internet and enter new data. ⚠️ Note: Bypassing Xiaomi account through informal methods (e.g. deleting files) /data/system/) lock-in IMEI loss of warranty!

Safety when using debugging over USB

The USB debugging enabled is like an open door to your digital life, and you can use it to:

  • πŸ“Š Download all data from the device (photos, messages, passwords)
  • πŸ”„ Install malware without your knowledge
  • πŸ“ Tracking location in real time
  • πŸ’³ Access to banking applications

To minimize the risks:

  1. Enable debugging only when connected to a trusted PC.
  2. Turn off the mode immediately after the work is completed (the switch in the developer menu).
  3. Use the OEM Lock (Blocked boot) in normal mode.
  4. Set the password on the lock screen (PIN or pattern lock is not suitable!).

πŸ’‘

Before transferring your phone to the service center, be sure to disable USB debugging and remove all trusted devices from the Settings menu β†’ Google β†’ Security β†’ Devices with account access. This will prevent unauthorized access to your data.

Debugging on blocked Xiaomi devices

If the smartphone screen does not respond to touch or the device is blocked by a pattern lock, you will not be able to enable debugging in the standard way.

Method 1: Mi Assistant (for devices with unlocked bootloader)

If you previously unlocked the bootloader, you can use the Mi Assistant utility:

  1. Connect your phone to your PC via USB.
  2. Load into fastboot mode (press Power + Volume down when the device is off).
  3. Enter the command: fastboot boot twrp.img (where twrp.img is a custom recovery file for your model)
  4. V TWRP Go to Mount. β†’ Enable MTP And copy the file to the phone. disable_miui_optimization.zip.
  5. Sweep the zip file through Install in TWRP.

After the reboot, the developer menu will be available even on a locked screen.

Method 2: Through EDL-Regime (requires an authorized account)

For devices with a locked bootloader, the only way is to use EDL (Emergency Download Mode).

  • πŸ”’ Requires authorization through Mi Account (linked to the device).
  • πŸ’» Needs special equipment (Qualcomm) HS-USB QDLoader 9008).
  • πŸ“„ It may cause loss of warranty.

⚠️ Attention: Use EDL Xiaomi has been deemed a violation of its license agreement without official permission, and in 2023, the company tightened its policy of unauthorised connection to the company. EDL It may lead to a blockage. IMEI via Xiaomi servers.

FAQ: Frequent questions about debugging on Xiaomi

Can I turn on debugging without access to settings?
If the screen does not respond to touch, but the device is turned on – try to connect USB-keyboard OTG-You need an adapter and you can use it to navigate the menu. JTAG or EDL, But these methods are complex and risky.
Why does the PC not see Xiaomi in debugging mode?
The problem is 90% driver-related. Remove old drivers through Device Manager (Other Devices β†’ Mi ADB Interface), then install the latest ones from the official website. Also check that the developer menu includes USB Configuration β†’ File Transfer (MTP).
How to disable debugging remotely if your phone is stolen?
You can't remotely debug, which is one of the Android vulnerabilities, but you can: Remotely lock your device through Find My Device, delete your phone data (also through Find My Device), change your Mi Account password and Google account password.
Does Xiaomi’s debugging work with custom firmware?
Yes, but there are nuances: On firmware like LineageOS or Pixel Experience, the developer menu is activated as well (7 taps by build number). Some custom cores may require additional permission for ADB root. If debugging does not turn on, check the /system/build.prop file for ro.debuggable=1 string.
Can I turn on debugging via SMS or call?
No, it's a myth. The only legal way to remotely activate debugging is through Android Device Policy (requires a pre-setting of enterprise device management). SMS" or USSD-Codes to enable debugging are a fraud.

πŸ’‘

USB debugging is not a hack, but a legitimate developer tool. However, misuse of it can lead to data loss, device lockdown or warranty cancellation. Always follow Xiaomi’s official instructions and don’t trust questionable β€œcircumvention” methods from unverified sources.