Debugging by USB on Xiaomi Redmi 5 Plus: how to turn on the developer mode and activate ADB

USB debugging mode on Xiaomi Redmi 5 Plus (codename vince) is a hidden feature without which it is impossible to unlock the bootloader, flash custom software or use tools like ADB and Fastboot. Many users face problems when trying to turn on this mode: the system does not show a point in the settings, MIUI blocks access or requires an account to be linked. In this article, a step-by-step instruction with all the nuances of MIUI firmware (including global and Chinese versions), as well as solutions to typical errors.

Debugging by USB β€” It's not just a checkmark. It's a bridge between a smartphone and a computer that allows you to do low-level operations, from the installation. TWRP On Redmi 5 Plus, the activation process is peculiar due to Xiaomi’s policy: for example, on some versions of the system. MIUI item β€œVersion” MIUI" We're going to go through all the scenarios, from standard onset to bypassing locks.

If you plan to unlock the bootloader, the Redmi 5 Plus with MIUI version below 12.5 requires you to link your Xiaomi account to the device, otherwise USB debugging will be disabled after you reboot. This is the official manufacturer's requirement for protection against unauthorized access. There is a separate section on how to circumvent this restriction by legal means.

1. Preparation of the smartphone: checking the version of MIUI and unlocking the bootloader

Before you turn on USB debugging, make sure your Redmi 5 Plus is ready for it. On some firmware (especially Chinese) the "Developers" item is hidden until you do the extra steps.

βœ… Check the version of MIUI:

  • πŸ“± Open Settings β†’ About Phone β†’ Version MIUI. Remember the number (e.g., MIUI Global 12.5.3).
  • πŸ” If there is no "Version MIUI" item, tap 5 times on the "Core" (on some firmware).
  • 🌐 On Chinese versions (China ROM), you may need to change region to "India" or "Global" via Settings β†’ Additional β†’ Region.

⚠️ Warning: On Redmi 5 Plus with MIUI 11 and below, after activating debugging by USB, the system may require confirmation via SMS or a linked Xiaomi account. If you have not linked your account in advance, debugging will be disabled after the reboot.

πŸ”§ Unlock the bootloader (not necessary for debugging, but required for firmware):

  • πŸ”— Go to en.miui.com/unlock and download the Mi Unlock Tool.
  • πŸ“± In your phone settings, link your Xiaomi account to Settings β†’ Xiaomi Account.
  • ⏳ Wait 72 hours (Xiaomi’s new account requirement)
πŸ“Š What version? MIUI You are using the Redmi 5 Plus?
Global (Global)
Chinese (China)
European (EU)
Castom (TWRP/Custom ROM)
I don't know.

2. activation of the developer mode on Xiaomi Redmi 5 Plus

The default mode is hidden by the developer. To turn it on, follow the following steps:

πŸ“Œ Instructions for MIUI 12/12.5/13/14:

  1. Open the Settings. β†’ The phone.
  2. Find the MIUI version and tap it 7 times in a row (you should be notified "You became a developer!").
  3. Return to the main settings menu – there will be a new section β€œFor developers”.

πŸ” If the paragraph "Version MIUI" is not available:

  • πŸ”„ Try tapping on "Assembly Number" or "Kornel" (on some firmware).
  • 🌍 Chinese ROM (China Stable) may require a change of language to English: Settings β†’ Additional β†’ Language and input.
  • πŸ“² If nothing helps, upgrade to the latest version of the firmware via Settings β†’ System Update.

⚠️ Warning: On Redmi 5 Plus with MIUI 10 and below, once developer mode is activated, the system can automatically disable debugging using USB when connecting to new PCs. To avoid this, link the device to your Xiaomi account in advance.

β˜‘οΈ Preparation for the inclusion of debugging USB

Done: 0 / 5

3. Step-by-step activation of debugging over USB

Once the developer mode is activated, you can enable debugging over USB. Follow the instructions carefully - errors at this stage can lead to blocking access.

πŸ›  Instructions:

  1. Open the Settings. β†’ For developers.
  2. Scroll down and find the item "Debugging by" USB" (USB debugging).
  3. Activate the switch and a risk warning will appear.
  4. Confirm the action by pressing "OK".
  5. Connect your phone to your PC via the USB- cable (use the original cable or USB 2.0 certified cable).
  6. On the phone screen, a request will appear "Allow debugging over USB?" - tick "Always allow from this computer" and click "Allow".

πŸ”§ Additional settings for stable operation:

  • πŸ”„ Enable the Unlock OEM (OEM unlocking) menu in the developer menu to unlock the bootloader.
  • πŸ”’ Turn off "Protect MIUI" in Settings β†’ Memory β†’ Protection MIUI (may block ADB).
  • πŸ“Ά Make sure that the USB settings select File Transfer Mode (MTP) rather than Charge Only.

πŸ“Œ Checking the debugging operation:

  1. On PC, open the command line (Win + R β†’ cmd).
  2. Enter the command: Adb devices
  3. If your Redmi 5 Plus serial number appears in the answer, the debugging works.
What if the ADB can’t see the device?
1. Check if Google USB Driver or Xiaomi ADB Driver. 2. Try another USB- cable (not all cables support data transfer). 3. Disable the antivirus - it can block adb.exe. 4. Restart the phone and PC. 5. If you are using a virtual machine (e.g. VirtualBox), enable support for USB 2.0/3.0 in the settings VM.

4. Solving typical errors when enabling debugging

Even after following the instructions correctly, Redmi 5 Plus users often face problems, and let’s look at the most common ones and how to fix them.

🚨 Table of Errors and Decisions:

Mistake.Reason.Decision
"USB debugging is not available" (gray switch)Not tied to Xiaomi account or MIUI protection enabledLink your account to Settings β†’ Xiaomi account and disable MIUI Protection
ADB does not see the device (no devices/emulators found)No drivers, incorrect USB mode or antivirus blockingInstall Mi PC Suite, check USB (MTP) mode, disable antivirus
No request for debugging permission appearsAdb service failure or conflict with other devicesCMD: Adb kill-server adb start-server
Debugging is disabled after rebootingMIUI Security Policy for Unconfirmed AccountsConfirm your account via SMS or wait 72 hours after the link

⚠️ Warning: If after debugging USB turned on, the phone stopped charging through some cables, that's OK. ADB Mode may conflict with fast charging. Use the original Xiaomi cable or the USB 2.0 cable.

πŸ’‘

If you frequently connect Redmi 5 Plus to different PCs, add adbkey.pub (from the %USERPROFILE%\.android folder) to your backup, eliminating the need to confirm debugging on each new computer.

5. debugging on USB without Xiaomi account: bypassing restrictions

On the Redmi 5 Plus with MIUI 11 and below, USB debugging can be blocked if the phone is not tied to a Xiaomi account.This is an official security requirement, but there are legal ways to get around it.

πŸ”“ How to activate without an account:

  • πŸ“± Temporary solution: Connect your phone to your PC, enable debugging, and don't restart the device. Debugging will work until the first reboot.
  • πŸ”„ Firmware Update: Install custom recovery (TWRP) and run MIUI without being linked to an account (e.g., Xiaomi.eu).
  • πŸ›  Patch usage: Magisk can install the Disable Miui Optimization module, which disables account verification.

⚠️ Warning: Bypassing restrictions can result in a device lock if Xiaomi detects changes to system files.Use these methods at your own risk, and only if you understand the consequences.

πŸ“Œ Alternative method (for power users):

  1. Install TWRP via Fastboot (unlocked bootloader required).
  2. Slice MIUI from Xiaomi.eu or LineageOS – these firmwares do not have an account binding.
  3. Activate debugging over USB in the standard way.

πŸ’‘

On Redmi 5 Plus with MIUI 12.5+, Xiaomi account binding is mandatory for stable USB debugging. Without it, the function will shut down after a reboot or after 7 days.

6.Security: How to protect data when debugging is enabled

Debugging over USB offers a lot of opportunities for controlling the phone, but it also poses security risks, and an attacker with physical access to the device can copy data or install malware.

πŸ”’ Precautions:

  • πŸ” Turn off debugging after completion: Settings β†’ For developers β†’ Debugging on USB.
  • 🚫 Do not connect the debugging phone to public USB- ports (airports, cafes, etc.).
  • πŸ”‘ Use data encryption in Settings β†’ Security β†’ Encryption.
  • πŸ›‘ Install Magisk and the ADB Over Network module to disable debugging over USB and use wireless ADB.

πŸ“Œ How to disable debugging remotely (if phone is stolen):

  1. Sign in to Xiaomi’s account at account.xiaomi.com.
  2. Find the Device Management section and remove Redmi 5 Plus from the trusted list.
  3. Reset your account password and it will disable all active sessions, including ADB.

⚠️ Warning: If you sell or transfer Redmi 5 Plus to another person, be sure to reset to factory settings (Settings β†’ Additional β†’ Settings Reset) and disable debugging using USB. Otherwise, the new owner will be able to access your data via ADB.

7.Alternative Connection Methods: ADB over Wi-Fi and Fastboot

If USB debugging doesn't work or the cable is damaged, alternative ways of connecting can be used, which are less stable, but useful in emergency situations.

πŸ“Ά Wi-Fi debugging (root or MIUI 12+ required):

  1. Connect your phone to your PC via USB and activate debugging.
  2. Enter CMD: Adb tcpip 5555
  3. Turn it off. USB-cable.
  4. Connect via Wi-Fi: adb connect [IP- phone address]:5555 (you can find out IP in Settings β†’ Wi-Fi β†’ Current network).

πŸ”§ Fastboot Mode (for firmware and unlocking):

  • πŸ”„ Turn off the phone.
  • πŸ”˜ Press the Power button + Volume down before the Fastboot logo appears.
  • πŸ–₯ Connect to a PC and check for device detection: fastboot devices

πŸ“Œ Comparison of methods:

MethodDoes USB need?Need root?Speed.Reliability
USB debuggingYes.No.⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
ADB on Wi-FiNo (only for activation)No (on MIUI 12+)⭐⭐⭐⭐⭐⭐
FastbootYes.No.⭐⭐⭐⭐⭐⭐⭐⭐

FAQ: Frequent Debugging Questions on Redmi 5 Plus

❓ Why is the phone not being installed in ADB?
The problem could be drivers, cables, or USB settings. Try: Install Mi PC Suite (automatically puts drivers); switch USB mode to MTP (file transfer). In the command line, execute: adb kill-server adb start-server
❓ Can I enable debugging using USB without developer mode?
No, it's impossible. Developer mode is a prerequisite for debugging activation. If developer does not appear, update the firmware or change the region in the settings.
❓ What to do if the error "This device is locked" appears when you turn on debugging?
This error means that: Xiaomi account is not confirmed (you need to wait SMS or wait 72 hours). The device is tied to another account (you need to reset via Mi Unlock Tool). Find Device protection is enabled (turn off Xiaomi β†’ Account Find Device in Settings β†’).
❓ How to disable debugging permission request every time you connect?
When you first connect to a new PC, check the box "Always allow from this computer." If the request continues to appear: Delete the adbkey.pub file in the %USERPROFILE%\.android folder on your PC. Reconnect the device and confirm the request again.
❓ Does debugging work on USB custom firmware (e.g. LineageOS)?
Yes, but there are nuances: On LineageOS and AOSP- firmware, debugging is enabled in the standard way, but may require additional drivers on the PC. On some builds (for example, Havoc-OS), you need to manually activate ADB over network in the developer settings. If debugging does not work, check the SELinux settings (should be in Permissive mode).