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)
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:
- Open the Settings. β The phone.
- Find the MIUI version and tap it 7 times in a row (you should be notified "You became a developer!").
- 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
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:
- Open the Settings. β For developers.
- Scroll down and find the item "Debugging by" USB" (USB debugging).
- Activate the switch and a risk warning will appear.
- Confirm the action by pressing "OK".
- Connect your phone to your PC via the USB- cable (use the original cable or USB 2.0 certified cable).
- 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:
- On PC, open the command line (Win + R β cmd).
- Enter the command: Adb devices
- If your Redmi 5 Plus serial number appears in the answer, the debugging works.
What if the ADB canβt see the device?
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 enabled | Link 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 blocking | Install Mi PC Suite, check USB (MTP) mode, disable antivirus |
| No request for debugging permission appears | Adb service failure or conflict with other devices | CMD: Adb kill-server adb start-server |
| Debugging is disabled after rebooting | MIUI Security Policy for Unconfirmed Accounts | Confirm 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):
- Install TWRP via Fastboot (unlocked bootloader required).
- Slice MIUI from Xiaomi.eu or LineageOS β these firmwares do not have an account binding.
- 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):
- Sign in to Xiaomiβs account at account.xiaomi.com.
- Find the Device Management section and remove Redmi 5 Plus from the trusted list.
- 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):
- Connect your phone to your PC via USB and activate debugging.
- Enter CMD: Adb tcpip 5555
- Turn it off. USB-cable.
- 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:
| Method | Does USB need? | Need root? | Speed. | Reliability |
|---|---|---|---|---|
| USB debugging | Yes. | No. | βββββ | βββββ |
| ADB on Wi-Fi | No (only for activation) | No (on MIUI 12+) | βββ | βββ |
| Fastboot | Yes. | No. | ββββ | ββββ |