Where to find USB debugging on Xiaomi: Hidden MIUI settings and 5 frequent problems

Are you trying to connect a Xiaomi smartphone to a computer for firmware, unlocking a bootloader or debugging apps, but can't find USB debugging in the settings?This feature is hidden in the developer menu, which is disabled by default on all devices running MIUI. Even if you're an experienced user, the location of the item can vary depending on the shell version (from MIUI 12 to MIUI 15) and the smartphone model - whether it's Redmi Note 12, POCO F5 or Xiaomi 14.

In this article you will find not only exact ways to debug settings for different versions. MIUI, But also solving the typical problems: why the computer can't see the device, how to get around Mi Unlock locking, and what to do if the debugging itself shuts down after the reboot. MIUI 14 on Android 13, which is why ADB-Teams may not work without prior setup USB-configuration.

1. How to open a developer menu on Xiaomi (Redmi/POCO)

Before you look for USB debugging, you need to activate the developer mode. This process is the same for all Xiaomi models, but there are nuances for older versions of MIUI (up to 12.5).

  1. Open the Settings app (cog icon).
  2. Go to About Phone (on some models – About the device).
  3. Find the MIUI version string and tap it 7 times in a row.
  4. After the notification appears, you become a developer! return to the main settings menu.

Nana MIUI 14+ You may need to enter a pattern lock or PIN-If nothing happens after 7 clicks, check:

  • πŸ”Ή Mi Account – the device must be linked to the Xiaomi account (otherwise the system will block access).
  • πŸ”Ή Updates – on some firmware (e.g. Redmi) 9A s MIUI 12.0.8) must first be updated.
  • πŸ”Ή Region – if the smartphone is purchased in China, the developer menu can be called (use translator).

πŸ’‘

If the Developer Mode is activated, the For Developers item does not appear in the settings, try clearing the Settings app cache through Settings β†’ Applications β†’ Application Management β†’ Settings β†’ Storage β†’ Clear the cache.

2. Where is the USB debugging in MIUI (Step-by-step for all versions)

Once you activate the developer mode, find the new section in the settings, and its location depends on the version of MIUI:

MIUI versionThe Way to Debugging on USBFeatures
MIUI 12–12.5Settings β†’ Additional β†’ For developers β†’ Debugging by USBYou may need to scroll down – the item is hidden under other options.
MIUI 13–14Settings β†’ About the phone β†’ Additional β†’ For developers β†’ Debugging by USBOn some models (POCO X5), the section is called Advanced Settings.
MIUI 15 (Android 14)Settings β†’ System β†’ For developers β†’ Debugging by USBAdded permit check USB-configuration (see section 4).
Global ROM (any version)Settings β†’ Additional settings β†’ Developer options β†’ USB debuggingIn English, the names of the menu may differ.

Turn on the USB debugging switch and confirm the action in the window that appears. If the gray item is inactive, then:

  • πŸ”Œ USB-The cable is faulty – try another one (original from Xiaomi or certified) USB-C).
  • πŸ–₯️ No drivers. ADB β€” Install official drivers from Google.
  • πŸ”’ Lockdown OEM β€” Some models (Xiaomi 13 Ultra) require additional unlocking. OEM same-menu.
πŸ“Š What version? MIUI you use?
MIUI 12/12.5
MIUI 13
MIUI 14
MIUI 15 (Android 14)
I don't know.

3.Why the computer can't see Xiaomi when debugging is enabled

You've enabled USB debugging, but you can't detect your smartphone when you connect to your PC, and this problem occurs 60 percent of the time, and it's related to:

⚠️ Attention: On Windows 10/11 Often unsigned drivers are protected. Before connecting, disable the driver digital signature verification via Run β†’ shutdown /r /o β†’ Diagnostics β†’ Additional parameters β†’ Loading parameters β†’ Reboot. β†’ F7.

Check the following points:

  1. USB Connection Mode: When you first connect in the notification curtain, select File Transfer (MTP) or Charging Only – debugging does not work in Camera (PTP) mode.
  2. ADB-Server: Make sure that the PC is running ADB. If the list is empty, restart the server: adb kill-server adb start-server
  3. Firewall/antivirus: Kaspersky, Avast, and the built-in Windows Defender can block ADB. Add an exception to the adb.exe file.

Nana MIUI 14+ A new level of protection is added – permission USB-If you connect to a window that says "Trust this computer?", you must press "Allow." ADB-Commands will not be executed.

What if the ADB issues an error called "unauthorized"?
This means that the smartphone did not save the key. RSA Solution: 1. Turn it off. USB-2. Delete the file. `adbkey.pub` file `%USERPROFILE%\.android` 3. Reset the phone. ADB-server (`adb kill-server` β†’ `adb start-server`). 4. Connect the smartphone again and confirm trusted status.

4. debugging by USB to unlock the bootloader (Mi Unlock)

If you plan to unlock the bootloader through the Mi Unlock Tool, standard debugging activation isn't enough. Xiaomi has added additional checks:

  • πŸ”“ Mi Account Link: Device must be linked to account for at least 7 days (on some models, 30 days).
  • πŸ“± Time Sync: Date and time on your smartphone should match Xiaomi servers (enable Autodetermination in settings).
  • 🌐 Firmware region: In Chinese ROM (China ROM) Unlocking can be prohibited without official permission.

Instructions for Mi Unlock Tool:

  1. Enable debugging over USB (see Section 2).
  2. Connect your smartphone to your PC and confirm your trusted status (the window to allow debugging?).
  3. Download the official Mi Unlock Tool and log in under the same Mi Account as you do on your phone.
  4. Run the utility, follow the instructions. If you see a Couldn't unlock error, check it out: πŸ”Έ Account is tied to the device for more than 7 days. πŸ”Έ Mobile Internet or Wi-Fi is enabled on the smartphone (for verification by servers). πŸ”Έ You're using the original. USB-cable (not all cables support data transmission).

Link Mi Account to device | Enable debugging via USB| Install ADB| Drivers Download Mi Unlock Tool| Connect to stable Internet

-->

5. Solving 5 Frequent USB Debugging Errors

Even after you set it up properly, debugging can work incorrectly, and we'll look at the common mistakes and how to fix them:

Mistake.Reason.Decision
device unauthorizedThe smartphone has not saved RSA-key.Remove adbkey.pub and reconnect (see spoiler section 3).
device offlineDriver conflict or USB 3.0.Connect to the port. USB 2.0 or turn off the others USB-device.
Debugging is disabled after rebootingResetting the developer's settings.Enable Prohibit Automatic Shutdown in the Developer Menu.
no devices/emulators foundADB-server not running.Run adb start-server in the command line.
The computer does not see Xiaomi in Adb devicesNo data transfer mode has been selected.In the notification curtain, select File Transfer (MTP).

On MIUI 14, Android 13, a new bug appeared: USB debugging not responding. It's related to a security policy change.

  1. Open Settings β†’ Applications β†’ Application Management β†’ All applications.
  2. Find the settings (app), open the Warehouse β†’ Clear the cache.
  3. Reboot your smartphone and turn on the debugging again.

πŸ’‘

On Xiaomi with Android 13+ debugging USB may not work unless permission to install unknown applications for a specific USB-This is a security requirement of Google, not Xiaomi.

6. Alternative ways to enable debugging (if the standard one doesn't work)

If the developer menu is unavailable or debugging is not activated, try workarounds:

Method 1: ADB (if USB is already recognized)

If the smartphone is determined in adb devices, but debugging is turned off, do:

adb shell settings put global development_settings_enabled 1


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

This will force the developer menu to open.

Method 2: Reset settings (if the developer menu is missing)

On some firmware (MIUI 13 for Redmi Note 10), the developer menu may disappear after the update.

  1. Make a backup copy of the data.
  2. Go to Settings β†’ System β†’ Resetting β†’ Resetting all settings (does not delete files).
  3. After rebooting, activate the developer menu again (see Section 1).

If nothing helps, try resetting to factory settings (see Section 6).

Why does Xiaomi ask for permission when connecting to a PC, but ADB doesn’t work?
It's a typical problem. MIUI 14 with Android 13. The reason is a protocol mismatch USB. Solution: Connect your smartphone to your PC. In the notification curtain, select File Transfer (MTP). Open the command line and execute: adb usb Re-start ADB-Adb kill-server adb start-server If it doesn't work, try another one. USB-cable (preferably original).
How to enable debugging on USB on a locked Xiaomi (if you forgot the password)?
If a smartphone is locked, standard methods won't work.Options: πŸ”Ή Mi Account: If you have a Xiaomi account attached, unlock your device via find.device.xiaomi.com. πŸ”Ή Fastboot: Connect your smartphone in Fastboot mode (press Power) + Volβˆ’) and execute: fastboot oem unlock Attention: this will erase all data! πŸ”Ή EDL-Mode: For advanced users – firmware through Qualcomm 9008 (requires an authorized Xiaomi account).
Do I need to enable USB debugging for the average user?
Not if you're not studying: πŸ”Ή Unlocking the loader. πŸ”Ή Installation of custom firmware (LineageOS, Pixel Experience). πŸ”Ή Debugging applications through Android Studio. πŸ”Ή Data recovery through ADB For everyday use (calls, social networks, games) debugging is not necessary and poses a security risk.
How to turn off USB debugging on Xiaomi forever?
To fully deactivate debugging: Open Settings β†’ Developer β†’ Disable the USB Debugging Switch. For reliability, turn off the developer menu: go to Settings β†’ Application Management β†’ Settings β†’ Storage β†’ Clear Data. After that, the developer menu will disappear, and debugging will not be enabled without re-activating (7 taps according to MIUI).