How to disable USB charging from your computer on Xiaomi smartphones: all methods

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).
πŸ“Š Why you need to turn off the charging on USB?
To extend the life of the battery
For Firmware/Debugging through ADB
Due to conflicts with file transfer
Other

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:

  1. Open the phone app and enter the combination: ##4636##
  2. In the menu that appears, select Battery Information.
  3. Slap the USB charge label 5-7 times until the current settings window appears.
  4. Set a value of 100 mA (or 0 mA if available).
  5. 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

Done: 0 / 4

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:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and tap 7 times on the MIUI version.
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect your smartphone to your PC and confirm the debugging permission.
  4. Open the command line (Windows) or terminal (macOS/Linux) in the folder with the platform-tools.
  5. 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 reset

What if the ADB can’t see the device?
1. Install drivers for your Xiaomi model (you can download it on the official website](https://new.c.mi.com/global/miuidownload/index)). 2. Check if File Transfer is enabled (MTP) plug-in. 3. Try another one. USB-cable (preferably original). 4. Restart your PC and smartphone.

⚠️ 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 modelSupport for dumpsy batteryAlternative 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:

  1. Download Disable USB Charging (check compatibility with your version of MIUI).
  2. Open Magisk Manager and go to the Modules section.
  3. Click Install from Storage and select the downloaded.zip file.
  4. 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:

  1. Take apart your smartphone (see YouTube or iFixit for instructions for your model).
  2. Find it. USB-connector on the motherboard (usually marked as USB_C or CONN1).
  3. Find the resistor or capacitor that is responsible for the VBUS line (in the scheme it can be designated as RUSB or CUSB).
  4. Carefully solder the element or cut the track (pre-check with a multimeter!).
  5. 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:

  1. Connect the hub to the computer.
  2. Activate the power lock mode (if there is a physical switch).
  3. Connect your Xiaomi smartphone to the hub.
  4. 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 changesTry settings put global command usb_charging_disabled 1 Or you get rooted.
Smartphone is not defined in ADBThere are no drivers or debugging is not includedInstall Mi USB Driver and check the Connection Mode (MTP)
After soldering, the smartphone does not turn onShort circuit or damage to the trackCheck the multimeter supply chain, if necessary, restore the track
Current settings in the engineering menu are resetUpdate MIUI or reset cacheRe-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.

Can I turn off USB charging on Xiaomi without root?
Yes, but not completely. via the engineering menu (#4636##) or ADB-So you can reduce the current to 100 mA, which will actually stop charging. Complete shutdown without root is only possible at the hardware level (USB-power-lock).
Why after disabling charging, the smartphone stopped being determined in ADB?
This can happen if you used the Magisk power lock module, which also blocked data transmission. Try: Remove the module via Magisk. Use the adb shell setprop sys.usb.config diag,adb command to force debugging to be enabled. Check the cable and USB port on the computer.
Will the smartphone charge from wireless charging if you turn off USB?
Wireless charging (Qi) works independently of the USB-port, because it uses a separate inductance coil. USB It will not affect Wireless Charging.
How to return the standard settings if something went wrong?
The methods of rollback depend on the method: For ADB: perform adb shell dumpsys battery reset. For Magisk: remove the Disable USB Charging module. For the engineering menu: reset the battery settings via ##4636## β†’ Battery Information β†’ Reset. For hardware changes: restore the power chain (solder the resistor back).
Is there a risk of damaging your smartphone when you turn off USB charging?
The risks are minimal if you use software methods (ADB, Hardware interventions (soldiers, Magisk modules) can lead to: Warranty loss (when disassembling or unlocking the bootloader). Unstable operation USB-port (if the track is damaged) Firmware conflicts (on some models) MIUI It blocks changes in the kernel. We recommend starting with the safest ways (USB-hub).