Connecting Xiaomi smartphone to your computer through USB-The cable automatically starts the battery charging process β even if you only wanted to transfer files or use the device in mode. MTP (For many users, this becomes a problem: the battery wears out quickly due to frequent microcharges, and when diagnosed through a diagnosis of the battery, it is not easy to use. ADB It's important for the firmware to eliminate any power interference. MIUI There is no obvious switch to turn off charging on USB.
In this article, weβll look at 5 proven ways, from hidden shell settings to ADB commands and hardware solutions. All methods are tested on Redmi Note 10 Pro, POCO X3 Pro, Xiaomi 12T and other models with MIUI 12-14 (including global and Chinese firmware versions).
Why Xiaomi is always charging via USB and can it be fixed?
The problem lies in the architecture of the Qualcomm Quick Charge power controller (or analogues from MediaTek), which is used in most Xiaomi smartphones. USB-The controller automatically initiates charging at the computer port (even with a current limit of 500 mA), ignoring the type of connection. This is done for convenience - but poses risks:
- β‘ Battery degradation: Frequent recharging up to 80-100% reduces battery life by 15-20% per year, according to a study by Battery University).
- π Firmware conflicts: Some tools like the Mi Flash Tool require stable battery power.
- π₯οΈ Data transmission problems: on weak PCs, charging can "eat away" current, causing errors MTP.
Can I turn off the charger completely? Yes, but with reservations:
- β At the level of software settings - partially (constraining current to a minimum).
- β At the level ADB/root β full, but at the risk of loss of warranty.
- β At the level of hardware modifications - radically (solding resistors on the board).
Method 1: Limiting charging current through hidden MIUI menu (no root)
The safest method is to use an engineering menu. MIUI, which reduces the charge current to 100 mA (actually turning it off) works on most models. Xiaomi/Redmi/POCO s MIUI 12β14.
Instructions:
- Open the phone app and enter the combination: ##4636##
- In the menu that appears, select Battery Information.
- Slap the USB charge label 5-7 times until the current settings window appears.
- Set a value of 100 mA (or 0 mA if available).
- Save the changes and restart the smartphone.
β οΈ Note: On some firmware (for example, MIUI 14 for Xiaomi 13) this menu can be blocked:
##2846579##ProjectMenu
Background Settings
USB Settings
βοΈ Preparation for current limitation
Pros of the method:
- β Does not require root or unlocking the bootloader.
- β It works on most Xiaomi models.
- β Reverse (you can return the standard settings).
Cons:
- β Does not turn off charging completely (current 100 mA is still supplied).
- β After updating MIUI settings may reset.
Method 2: Use of the ADB-Teams (for experienced users)
If the engineering menu is not available, you can use the commands ADB (Android Debug Bridge), which requires you to enable debugging over USB and install Platform Tools on your computer.
Step-by-step:
- Activate Developer Mode: Go to Settings β About Phone and tap 7 times on the MIUI version.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect your smartphone to your PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (macOS/Linux) in the folder with the platform-tools.
- Execute the command to limit the current: adb shell dumpsys battery set ac 0 (where ac 0 is disabling charging from USB).
To return the standard settings, use:
adb shell dumpsys battery resetWhat if the ADB canβt see the device?
β οΈ Note: On some firmware (for example, MIUI 13 for POCO F3) The dumpsys battery command may not be supported. In this case, try an alternative:
adb shell settings put global usb_charging_disabled 1(Reboot required).
| Xiaomi model | Support for dumpsy battery | Alternative team |
|---|---|---|
| Redmi Note 10/11 | β Yes. | β |
| POCO X3/X4 | β No (MIUI 13+) | settings put global usb_charging_disabled 1 |
| Xiaomi 12/13 | β οΈ Partially (root required) | su -c "echo 0 > /sys/class/power_supply/usb/online" |
| Redmi 9/9A | β Yes. | β |
Method 3: Turn off Magisk charging (root required)
If you have a bootloader unlocked and Magisk installed, you can use the Disable USB Charging module, which completely blocks USB power, which is suitable for firmware based on Android 10-13.
How to determine:
- Download Disable USB Charging (check compatibility with your version of MIUI).
- Open Magisk Manager and go to the Modules section.
- Click Install from Storage and select the downloaded.zip file.
- Reboot your smartphone.
Important: Once the module is installed, USB charging will be turned off completely, including connecting to the chargers. To return the function, delete the module via Magisk or turn it off in the settings.
β οΈ Note: Some models (e.g. Xiaomi) 11T) The module may conflict with system services MIUI, Reboots. Before installation, backup through TWRP.
π‘
If after installing the module, the smartphone stopped charging even from the outlet, check the settings of the module in the file. /data/adb/modules/disable_usb_charging/system.prop. Add a line. usb_charging_override=0, to allow charging from network adapters.
Method 4: Hardware Shutdown (for Advanced Users)
If software doesn't work, the radical solution is to physically disconnect the USB VBUS power line on the motherboard, which is irreversible and requires soldering skills, but is guaranteed to solve the problem.
What you need:
- π§ A soldering iron with a thin sting (power 20-30 W).
- π΅οΈββοΈ Loop or microscope (for precise operation).
- π§² Solder and flux (e.g, RMA-223).
- π Multimeter to check the circuit.
Step-by-step:
- Take apart your smartphone (see YouTube or iFixit for instructions for your model).
- Find it. USB-connector on the motherboard (usually marked as USB_C or CONN1).
- Find the resistor or capacitor that is responsible for the VBUS line (in the scheme it can be designated as RUSB or CUSB).
- Carefully solder the element or cut the track (pre-check with a multimeter!).
- Collect your smartphone and check: USB charging should be absent, and data transfer should work.
β οΈ Warning: Incorrect soldering can short circuit and fail the power controller. If you are not sure about your skills, contact the service center. Also note that after such an intervention, Xiaomi warranty will be canceled.
π‘
Hardware disabling USB charging is the only method that works 100% and is independent of firmware updates, but it requires disassembling the device and soldering skills.
Method 5: Use USB-power-locker
If you don't want to interfere with your smartphone settings, you can solve the problem at the hardware level. USB-Hubs (Hubs) with Power Delivery Block function, which physically cut off the power line, leaving only data transfer.
Examples of devices:
- π Sabrent USB 2.0 4-Port Hub with Individual Power Switches (Blocking Power on Each Port).
- π Anker 7-in-1 USB-C Hub (Hub) has a Data Only switch).
- π UGREEN USB 3.0 Hub (supports Charge Block modes).
How to use:
- Connect the hub to the computer.
- Activate the power lock mode (if there is a physical switch).
- Connect your Xiaomi smartphone to the hub.
- Check in Settings β Battery: Status should not be charged.
β Pluses:
- It does not require changes in the smartphone.
- It works on all devices (not just Xiaomi).
- You can quickly return the charge by turning off the hub.
β Cons:
- Additional costs (hubs cost between 1,500 and 5,000) β½).
- Occupying. USB-computer-port.
Frequent Mistakes and How to Avoid Them
When trying to disable USB charging, users often face typical problems, and here are the most common ones and ways to solve them:
| Problem. | Reason. | Decision |
|---|---|---|
| After the ADB command, charging does not turn off. | Firmware blocks changes | Try settings put global command usb_charging_disabled 1 Or you get rooted. |
| Smartphone is not defined in ADB | There are no drivers or debugging is not included | Install Mi USB Driver and check the Connection Mode (MTP) |
| After soldering, the smartphone does not turn on | Short circuit or damage to the track | Check the multimeter supply chain, if necessary, restore the track |
| Current settings in the engineering menu are reset | Update MIUI or reset cache | Re-set or use ADB for permanent use |
π‘ Tip: If you often connect your smartphone to your computer to transfer files, consider using wireless transmission (for example, via Mi Drop or LocalSend.