Xiaomi Redmi 4X (codenamed santoni) is still a popular budget-friendly device among customization enthusiasts β despite its release in 2017. But to install custom software, get root rights, or even just migrate files through ADB, you need to enable USB debugging mode, which is hidden in the developer menu, which is disabled by default in MIUI.
In this article, we will provide the current instructions for Redmi 4X on all versions of MIUI (including 14th) and Android 7.1.2, taking into account the features of Xiaomi firmware. We will analyze not only the standard way to enable, but also bypass possible locks (for example, if menu items are inactive), and also explain why debugging can be disabled after updating the software itself.
What is a debugging mode and why you need it on Redmi 4X
Debugging mode by USB (USB Debugging is an Android feature that allows the device to communicate with the computer at a low level through the protocol. ADB (Android Debug Bridge on Redmi 4X it is required:
- π§ Install custom firmware (LineageOS, Pixel Experience, etc.) via fastboot or TWRP.
- π± Getting root rights with Magisk or SuperSU.
- π₯οΈ Controlling a smartphone from a PC (for example, via scrcpy to mirror the screen).
- π Backup of data through ADB backup (including system applications).
- π Diagnostics of malfunctions using logs (logcat).
Without debugging enabled, many operations are simply impossible, for example, even unlocking a bootloader on a Redmi 4X through the official Mi Unlock Tool requires activating this mode.
β οΈ Attention: Including debugging by USB It reduces the security of the device. An attacker with physical access to an unlocked smartphone can extract data through the device. ADB, Even if the screen is locked with a password, turn off the mode after the work is completed!
On MIUI, debugging automatically deactivates after 7 days without using it β this is Xiaomiβs security mechanism.
Preparations for the incorporation of the debugging regime
Before activating debugging, follow several mandatory steps:
- Check out MIUI. Open Settings β About Phone β MIUI Version. Redmi 4X is up to date with MIUI 8 (based on Android 6.0) to MIUI 14 (Android 7.1.2). The instructions below are suitable for all options, but the location of menu items may vary slightly.
- Charge your smartphone. Make sure your battery level is at least 50 percent, which is critical if you plan to do ADB or bootload operations right after you turn on debugging.
- Connect your device to your PC (optional). If you enable debugging to work with your computer, install Xiaomi or ADB drivers beforehand (for example, via Mi PC Suite or 15 seconds ADB Installer).
Also prepare. USB-Data-enabled cable (not all charging cables fit!) Original cable from Redmi 4X A quality substitute from a proven manufacturer (e.g. Anker) is the best choice.
βοΈ Checklist before debugging is included
Step-by-step: how to turn on the developer mode on Redmi 4X
The debugging mode is hidden in the developer menu, which is disabled by default, to activate it:
- Open Settings (the gear icon on the home screen or in the application menu).
- Scroll down and select About Phone.
- Find the line MIUI version and tap it 7 times in a row, after 3-4 clicks will appear pop-up notification: "You're almost there!", and after the 7th - "You became a developer!".
- Return to the main Settings menu, and a new option will appear β Additional β Developer (or Advanced Settings β Developers in older versions of MIUI).
If the item for developers does not appear:
- π Reboot your smartphone and repeat the steps.
- π± Check if the item in the search is hidden by settings (the magnifying glass icon at the top of the settings screen).
- π§ In rare cases, resetting settings helps (Settings) β Additionally. β Recovery and reset, but only use this method if other methods have not worked.
On Redmi 4X with Android 7.1.2 firmware (MIUI 9β14), the developer menu can be called βDeveloper Settingsβ or βDeveloper Settingsβ β this is normal.
Enabling debugging by USB: detailed instructions with photo
After activating the developer menu:
- Go to Settings. β Additionally. β For developers (or similar path in your version) MIUI).
- Scroll down to the Debugging section.
- Activate the USB Debugging switch, and you'll see a warning, press OK.
- Confirm the inclusion by clicking Allow in the system dialog (if it appears).
The visual process looks like this:
You'll see on the screen:
- Gray switch Debugging over USB (off).
- After you click, a pop-up box says, "Let this computer debug over USB? Let this computer debug?" and checks "Always allow this computer."
- After confirmation, the switch will become blue (on), and a debugging icon (android with debugger) will appear in the status bar.
β οΈ Note: If you are connected to a Redmi PC 4X Does not request debugging permission, check: Is the cable connected to the port USB 2.0 (certain ports) USB 3.0 may not recognize the device. ADB (Device Manager should not have exclamation points next to Android Device, whether it blocks access to antivirus or firewall (turn them off temporarily).
π‘
If debugging does not turn on, try connecting Redmi 4X elsewhere USB-Sometimes the problem is a faulty hub or a port power shortage.
Common Problems and Their Solutions
When working with Redmi 4X users often encounter common errors.
| Problem. | Possible cause | Decision |
|---|---|---|
| No "Developers" option after 7 clicks | Misfunction of MIUI or incomplete pressing | Repeat the pressing strictly in the center of the line MIUI version. If it does not help, reset the settings (Settings β Restore and Reset). |
| Debugging is enabled, but the PC does not see the device | There are no ADB or Xiaomi drivers. | Install Mi PC Suite or drivers manually through Device Manager (update the driver for Android ADB Interface). |
| When you connect to a PC, an βunidentified deviceβ appears | Problems with USB-cable | Try another cable or port, and in extreme cases, reinstall the drivers by pre-deleting the device in the Controller. |
| After the MIUI update, the debugging was turned off | Resetting security settings when updating | Re-enable the developer mode and debugging over USB (see the instructions above). |
If Redmi 4X is not defined in ADB even after debugging is enabled:
- Open the command line on your PC and type: Adb devices If the list is empty, the problem is on the computer side.
- Check if the phone is on the βDebugging byβ notification USB If not, turn it off and turn on the debugging again.
- Reboot both the smartphone and the PC.
What if the ADB issues an error called "unauthorized"?
Security: How to protect data after debugging is enabled
Debugging mode opens up potential vulnerabilities.
- π Turn off debugging after you've finished. β For developers and deactivate the switch.
- π« Do not connect your smartphone to a public one. USB-Attackers can use them to attack through the airports, cafes, etc. ADB.
- π Use the lock screen (PIN, without it, access to data through ADB simplify.
- π± Limit your rights. ADB through settings β For developers β Configuration USB by default (select Only Charging).
If you are selling or selling your smartphone, you must:
- Turn off the USB debugging.
- Perform reset to factory settings (Settings β Restore and Reset β Reset settings).
- If you plan to unlock the bootloader, link the device to your Mi Account (Settings β Xiaomi Account), otherwise, after resetting, the phone may be blocked.
π‘
Never leave USB debugging enabled on a device with sensitive data (photos, passwords, banking apps) and even short-term access to an unlocked phone with active debugging can lead to leakage.
Additional settings for developers on Redmi 4X
In the menu for developers there are other useful options:
- π Do not turn off the screen β convenient for testing applications or firmware.
- πΆ Enable Wi-Fi log β helps diagnose connection problems.
- π― Show touch β displays touch points on the screen (useful for screencasts).
- β‘ Acceleration GPU β It can improve performance in games, but increases battery consumption.
- π Allow unlocking OEM β required to unlock the loader!
Option Allow unlocking OEM (OEM Unlocking is often a question:
- Unlock bootloader with Mi Unlock Tool.
- Installation of custom recavΓ©ri (TWRP).
- Unofficial firmware (for example, Global ROM on the Chinese version of the smartphone).
β οΈ Note: Some of the Redmi firmware 4X (especially Chinese) option OEM Unlocking can be blocked.In this case, you need to link your Mi Account and wait 7-30 days to unlock (Xiaomi policy).