How to enable USB debugging on Xiaomi: a complete guide with pictures and tips

Regime. USB Debugging (debugging by USB) Xiaomi is a hidden feature for developers that gives you access to the advanced capabilities of the device. Without it, you can't flash your phone through fastboot, get root rights, use it. ADB-But the manufacturer hides this mode deep in the settings, and its activation requires prior unlocking of the developer options.

In this article, you will find the latest manual for MIUI 14/15 (2026), which is suitable for all modern Xiaomi, Redmi and POCO models, from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. We will analyze not only the standard way to turn on, but also the avoidance of possible errors (for example, when the debugging button is inactive), and also give security tips. If you plan to sew your phone or install custom software, this guide will become your navigation map.

Why do you need USB Debugging on Xiaomi?

USB debugging isn't just a "geek mode," it's needed in a number of practical scenarios:

  • πŸ”§ Firmware via fastboot: Installing official or custom firmware (LineageOS, Pixel Experience) requires a connection to a PC with debugging enabled.
  • πŸ“± Root rights: Programs like Magisk or SuperSU use the same software. ADB to obtain superuser rights.
  • 🐞 Application testing: Developers debug programs directly on the device through Android Studio.
  • πŸ”„ Data recovery: Tools like Dr.Fone or Tenorshare require debugging to scan a smartphone’s memory.
  • πŸ”“ Bypassing locks: In some cases (such as a forgotten pattern lock), debugging helps unlock the device without resetting.

But there are risks: when you connect to an untrusted PC, an attacker can access data or install malware, so Xiaomi hides this option behind several layers of protection.

⚠️ Attention: Inclusion USB Debugging is disabling some of the protective mechanisms MIUI, including data breach protection. Don't connect your phone to a public one. USB-ports (for example, in airports or cafes) with active debugging.

Preparation: Unlocking the Developer Menu

Before you start debugging, you need to activate the hidden "Developers" menu. In MIUI, this is done via the About Phone settings, but the path may vary depending on the firmware version.

  1. Open the Settings. β†’ The phone.
  2. Find the line "Version" MIUI" and tap it 7 times in a row (on some models - 10 times).
  3. The message will be: β€œYou are a developer!”
  4. Return to the main Settings menu – there will be a new item β€œAdditional” β†’ β€œFor developers”.

On some devices (e.g., POCO F5 or Redmi K60), the path may look like Settings β†’ System β†’ Additional β†’ For developers. If the menu doesn’t appear, check:

  • πŸ“± Version MIUI: on old firmware (below) MIUI 12) another algorithm may be required.
  • πŸ”’ Mi Account: on some models without a linked account, the menu is not unlocked.
  • πŸ”„ Reboot: Sometimes changes only apply after restart.
πŸ“Š What Xiaomi model do you use?
Redmi Note 12/13
POCO F5/X5
Xiaomi 13/14
Redmi K60/K70
Another model

Step-by-step: how to turn on USB Debugging

Once the developer menu is unlocked, you can start debugging activation. Follow the instructions carefully - skipping steps can lead to connection errors.

The menu "For developers" has been activated"|USB-cable connected to PC|Drivers are installed on the PC ADB|Smartphone unlocked (no pin code / pattern lock)-->

  1. Open the developer menu: Go to Settings β†’ Additional β†’ Developer (or Settings β†’ System β†’ Additional β†’ Developers on new versions of MIUI).
  2. Find the debugging option: Scroll down to the Debugging block and find the USB Debugging switch (or USB debugging in English firmware).
  3. Activate mode: Turn the slider to "On." A warning will appear, press "OK." Some models (Xiaomi 13T, POCO X5 Pro) will require you to enter the password from Mi Account to confirm.
  4. Confirm trust in the PC: When you first connect to the computer, the request "Allow debugging over USB?" with the RSA key will appear on the phone screen. Check "Always allow from this computer" and click "Allow".

If after these actions the PC still does not see the device, check:

  • πŸ”Œ Cable: Use the original Xiaomi cable or certified USB-C (Cheap cables often don’t support data transmission).
  • πŸ–₯️ Drivers: The PC must be installed ADB-Drivers (you can download from Google or Mi) PC Suite).
  • πŸ”„ Connection mode: In the notification curtain, select "File Transfer" (MTP), Not Charging".

πŸ’‘

If the USB Debugging button is inactive (grey), check if the OEM Unlock option is included in the same developer menu, and on some models, it blocks debugging activation.

Common mistakes and their solution

Even if you follow the instructions correctly, users often encounter problems, and we have collected TOP-5 errors and ways to fix them:

Mistake.Reason.Decision
The device is not found in adb devicesThere are no drivers or incorrect connection modeInstall Mi USB Driver, switch mode to MTP
The debugging button is inactiveUnlocked OEM Unlock or Mi Account Protection enabledEnable OEM Unlock in the Developer Menu and Link Your Mi Account
Unauthorized (unauthorized device)Not confirmed trust in PC or reset settingsDisconnect/connect the cable again and confirm the request on the phone
Debugging is self-deactivated.The option β€œRevocation of USB permissions” is active in the developer menuDisable this option or add PCs to trusted devices
Device offline in adbADB version conflict or USB port issuesUpdate Android SDK Platform-Tools and try a different port

If none of these methods worked, try resetting the network settings (Settings). β†’ SIM-maps and mobile networks β†’ Reset network settings) or update firmware to the latest version.

⚠️ Note: On devices with a blocked bootloader (bootloader) some ADB-Teams may not work even if debugging is enabled. Full access requires unlocking through the Mi Unlock Tool (more in our Xiaomi Unlock Guide).

Security: How to protect data when debugging is enabled

Activating USB Debugging opens up potential vulnerabilities. Follow these rules to minimize the risks:

  • πŸ”’ Turn off debugging after use: Leave it on constantly - how to keep the door to the house open.
  • πŸ–₯️ Use Trusted PCs: Connect your phone to your devices or trusted workstations only.
  • πŸ›‘οΈ Set up the lock: Enable "Blocking when connected" USB" Developer menu (if available).
  • πŸ”„ Reset permissions: In the menu "For developers" there is an option "Revocation of permissions" USB" β€” Use it after working with unfamiliar PCs.

MIUI 14/15 has a Debugging Protection feature that requests Mi Account confirmation every time you connect, activate it in the security settings.

What can an attacker do with the debugging enabled?
With ADB, you can steal data (photos, messages, passwords), install spyware, change system settings, or even lock your device, for example, the adb shell pm clear com.android.contacts command will delete all contacts, and adb install malware.apk will install a malicious application.

Features for different Xiaomi models

Although the general algorithm for enabling debugging is the same, there are nuances on some devices:

  • πŸ“± Xiaomi 13/14 Mi Account Confirmation Required Even When You First Enable Debugging.
  • πŸ“± POCO F5/X5: The developer menu may be called "Developer options" (on global firmware).
  • πŸ“± Redmi Note 12: On some versions MIUI You must first turn on "Allow unlocking" OEM".
  • πŸ“± Xiaomi Pad 6: Debugging may not work through USB-C-Hub – connect directly to the PC.

On HyperOS devices (a new shell instead of MIUI, debuted in 2026), the path to the developer menu has changed:

Settings β†’ About Phone β†’ HyperOS Version (stamp 7 times) β†’ Return to Settings β†’ Additional β†’ Developer Options

Checking the work of USB Debugging

To make sure that the debugging is working correctly, follow the following steps:

  1. Connect your phone to your PC via USB.
  2. Open the Command Prompt (Windows) or Terminal (macOS/Linux).
  3. Enter the command: Adb devices
  4. If the device is identified, you will see its serial number with device status, for example: List of devices attached 1234abcd5678 device

If the device is displayed unauthorized, then you have not confirmed trust in the PC on the phone (see step 4 in the instructions).

πŸ’‘

If the adb device command produces a command not found error, then the ADB is not installed or added to the environment variables. Download Platform Tools from Google and try again.

FAQ: Frequent questions about USB Debugging on Xiaomi

Can I enable debugging without unlocking the developer menu?
No, it's impossible. Xiaomi (like other manufacturers) deliberately hides this option to prevent accidental activation. ADB-Settings put global development_settings_enabled 1, But you still need access to the developer menu to do it.
Why did the MIUI update shut down?
In major updates (e.g., from MIUI 13 to MIUI 14), the system resets some security settings, including ADB permissions. You'll have to re-enable debugging and confirm trust in the PC, and this is done to protect against vulnerabilities in new firmware versions.
How to disable permission request at each connection?
In the developer menu, find the option "Revocation of USB permissions" and turn it off. Also make sure that when you first connect, you check the box "Always allow from this computer." If the problem persists, try to delete the adbkeys file in the ~/.android/ folder and connect again.
Can I turn on the debugging on a locked phone?
No, if the screen is locked (pin code, pattern lock, fingerprint), you can not activate USB Debugging. Exception - if debugging was already on before locking, and you have confirmed trust in the PC. In this case, you can use ADB to unlock (for example, the command adb shell input text 1234, where 1234 is your pin code).
Where to download the official ADB drivers for Xiaomi?
The official drivers can be found on the Android Developers website (Platform Tools package); Mi PC Suite (download from Xiaomi's official website); XDA Developers repository (for specific models, such as POCO X3 Pro); Avoid downloading drivers from third-party sites, which may contain malware.