Auto-disconnection of the phone Xiaomi: the reasons and how to remove forever

Your Xiaomi smartphone suddenly shuts down for no apparent reason? The battery shows 30-50% and the device goes out as if the battery has gone down? This problem is familiar to many owners of Redmi, POCO and Mi series - and it is not always associated with battery wear. More often to blame software restrictions MIUI, which force to turn off the phone in case of critical errors, overheating or "protection" from deep discharge.

In this article, we will analyze all possible causes of auto-disconnection - from banal (contaminated charging connector) to hidden (work failures). battery_stats Or thermal-engine. And most importantly, let's give it to you. 5 working ways to remove auto-disconnection: through standard settings, engineering menu, ADB-And they've tested each method in models, and they've even physically cleaned the contacts. 2020โ€“2026 years, including the Redmi Note 12 Pro+, POCO F5 Xiaomi 14.

โš ๏ธ Warning: If the phone turns off when charging or immediately after the cable is removed, the problem may be a bloated battery or a damaged power controller, in which case software methods will not help, and further use of the device is dangerous!

1. Causes of Xiaomi Auto Shutdown: Hardware vs. Software

Before you can "treat" a problem, you need to understand the source of the problem, and all the causes fall into two groups:

  • ๐Ÿ”‹ Hardware: wear of the battery (capacity) < 70%), oxidation of battery contacts, damage to the plume or power controller, often accompanied by a sudden shutdown at 15-40% charge.
  • ๐Ÿค– Programmatic: failures in MIUI Optimization, battery calibration errors (battery_stats.bin), overheating due to background processes or forced shutdown by the system under "critical" conditions (e.g. temperature) CPU > 65ยฐC).

How to distinguish hardware from software problems?

Sign.Hardware reason.Programmatic reason
Disconnection when connecting to chargingโœ… Yes (damaged controller)โŒ No.
The phone is turned on only after connecting to the ZUโœ… Yes (battery wear and tear)โœ… Possibly (thermal-engine failure)
The percentage of charge "jumps" (for example, from 30% to 1%)โœ… Yeah (bad battery contact)โœ… Yes (calibration error)
Disconnection at high load (games, video shooting)โŒ No.โœ… Yes (overheating or trottling)

๐Ÿ” Diagnostic test: Install the AccuBattery app and check the actual battery capacity (Health tab) if the value is below 2000 mAh for the 4000 battery+ mAh is the battery problem. If the capacity is normal but the phone is still off, read on.

๐Ÿ“Š Your Xiaomi is shut down most often when youโ€™re in a
Charging.
Use of the camera
Games.
Low charge (10-30%)
No reason.

Method 1: Reset battery calibration (without root)

Frequent cause of false auto-disconnection โ€“ incorrect data in the file battery_stats.bin, If the phone thinks the battery is dead, it's a charge history. 0%, It is forced to shut down even if the real charge is 20โ€“30%. The solution is to reset the calibration.

Instructions:

  1. Discharge your phone before automatically shutting down (donโ€™t manually turn it off!).
  2. Connect the original RAM and charge for at least 8 hours (even if the indicator shows 100% sooner).
  3. Turn off the charging, turn on the phone and wait for the system to fully boot.
  4. Repeat the discharge / charge cycle 2 more times.

โš ๏ธ Note: This method only works if the battery capacity is real > 70%. If the battery is worn out, calibration won't help, you need a replacement.

โ˜‘๏ธ Preparation for battery calibration

Done: 0 / 4

Method 2: Disabling "Optimization" MIUI" (advanced)

The MIUI's proprietary shell aggressively manages power to extend the battery life, sometimes resulting in a forced shutdown when the battery is "suspicious," and to fix this, you need to turn off some optimizations through hidden settings.

Method 1: Engineering menu (works on 80% of models)

  1. Open the Phone app and dial the code: ##4636###.
  2. Go to the Battery Information tab.
  3. Check the health option - if it's not good, the battery is the problem.
  4. Return to the main menu and select Battery Settings โ†’ turn off MIUI Optimization (if you have an option).

Method 2: ADB (100% working method)

If the engineering menu does not give access to optimizations, use it. ADB-team:

adb shell settings put global miui_optimization_disabled 1


adb shell settings put global hidden_api_policy_pre_p_apps 1




adb shell settings put global hidden_api_policy_p_apps 1

๐Ÿ”น What do these teams do:

  • ๐Ÿ› ๏ธ Shut down. MIUI Optimization (first team).
  • ๐Ÿ”“ Unlock access to hidden API (Second and Third Commands โ€“ This is necessary for proper operation without root.

โš ๏ธ Warning: After completing the commands, restart the phone. Some features (such as the Game Turbo) may not work smoothly - this is normal.

๐Ÿ’ก

If after disabling optimizations, the phone began to discharge faster, return the settings back with the command adb shell settings put global. miui_optimization_disabled 0.

Method 3: Cleaning the battery contacts and the charging connector

If the phone turns off when the slightest movement or charging is connected, the problem may be oxidized contacts, especially for models with a removable battery (Redmi 4X, Redmi Note 5) or after moisture is injected.

What you need: alcohol (90%+), cotton swabs, plastic spatula (or mediator).

Step-by-step:

  1. Turn off the phone and remove the battery (if possible).
  2. Plenty of soaking cotton swab with alcohol and gently wipe: ๐Ÿ”Œ Battery contacts (gold plates). ๐Ÿ”Œ Contacts in the phone's socket (where the battery is in contact with the body). โšก Contacts in the connector USB-C (If the phone is switched off when charging).

at least 30 minutes

Collect the device and check the work.

๐Ÿ“Œ Signs of oxidation: green / white coating on the contacts, the smell of burning when charging, โ€œfloatingโ€ charge (that is, no).

What to do if your contacts are damaged?
If the contacts are not just oxidized but physically damaged (such as bent or chipped), they can be temporarily resuscitated with conductive glue (such as Contactol), but this solution is short-lived โ€“ in the future, you will need to replace the plume or connector.

5. Method 4: Update firmware and reset to factory settings

Sometimes auto-disconnection causes firmware bugs, especially after major MIUI updates. For example, MIUI 14 had a charge mismatch error on some models (POCO X3 Pro, Redmi Note 10).

How to update the firmware correctly:

  • ๐Ÿ“ฑ Go to Settings. โ†’ The phone. โ†’ Update MIUI.
  • ๐Ÿ”„ Click on the three dots in the upper right corner and select Download the latest version".
  • โš ๏ธ If the update weighs > 2 GB, download only over Wi-Fi and with charge > 50%.
  • ๐Ÿ”ง After installation, reboot.

If the update did not help - reset to factory settings:

  1. Make a backup of data (photos, contacts, SMS) through Settings โ†’ Additional โ†’ Backup.
  2. Go to Settings โ†’ About the phone โ†’ Reset settings.
  3. Select "Erase all data" and confirm.
  4. After reset, do not restore data immediately โ€“ check if the problem is recurring.

๐Ÿ”น Important: Reset deletes all data, including accounts. If the phone is linked to Mi Account, you will need to enter a login/password after the reset.

๐Ÿ’ก

If the auto-disconnection started after the MIUI update, try to roll back to the previous version via Fastboot or Recovery. instructions for this are available on the XDA Developers forum (see your phone model).

Method 5: Replace the battery or repair the power controller

If all the software methods have been tried and the phone still turns off at 20-40% charge, the problem is guaranteed to be hardware, 90% of the time the battery is to blame, but sometimes the power controller or even the motherboard.

How to know if you need a battery replacement:

  • ๐Ÿ“‰ The phone will run out in 2-3 hours with normal use.
  • ๐Ÿ”ฅ The body heats up in the battery area (even without loading).
  • ๐Ÿ’ฅ The battery is swollen (check by putting the phone on a flat surface - if it sways, this is a sure sign).
  • โšก When charging, the charge โ€œjumpsโ€ (for example, from 50% to 20% and back).

Cost of repair (2026):

ServicePrice (โ‚ฝ)Repair time
Battery replacement (original)1 500 โ€“ 3 50030-60 minutes
Battery replacement (analogue)800 โ€“ 1 80030-60 minutes
Repair of the power controller2 500 โ€“ 5 0001-3 days
Diagnosis (if the cause is unclear)500 โ€“ 1 00020-40 minutes

โš ๏ธ Warning: If the battery is swollen, do not try to replace it yourself - risk short circuit and fire.

๐Ÿ”ง Where to order a battery: Original batteries for Xiaomi can be bought on AliExpress (official Mi Store stores) or in Russian online stores (Svyaznoy, M. Video, BM4B For the Redmi Note 10 Pro).

FAQ: Frequent questions about Xiaomi auto-disconnection

๐Ÿ”‹ Why Xiaomi shuts down at 30-40% charge, even though the battery is new?
It's a typical sign of incorrect calibration. battery_stats.bin (method 2) or complete the full discharge/charging cycle (method) 1). If it doesnโ€™t help, the problem is the power controller that gives incorrect voltage data.
๐Ÿ“ฑ The phone shuts down when you connect to the charger?
Most likely, the connector is damaged. USB-C Try: Clean the connector with alcohol (method 4); try another charger (original); if it doesn't work, bring it to the service for diagnostics. โš ๏ธ Do not use a phone with a damaged connector โ€“ this can lead to a short circuit!
๐Ÿ”ฅ Xiaomi overheats and turns off during games?
This is trottling -- forced shutdown due to overheating: ๐ŸŽฎ Turn off Game Turbo in the game settings. โ„๏ธ Use a cooling stand or play in a cool room. ๐Ÿ”ง Reduce screen resolution and frame rate in game graphics settings. ๐Ÿ› ๏ธ Replace the heatpast on the processor (disassembly required).
๐Ÿ”„ After resetting the auto-disconnection disappeared, but then it came back?
This means that the problem was in Conflict with apps installed or MIUI settings. It is likely one of the applications that is aggressively using the battery or conflicting with MIUI optimizations. Try: Remove newly installed applications. Disable autorun for all applications in Settings โ†’ Apps โ†’ Autorun. Re-reset and do not restore data from the backup (set the phone from scratch).
๐Ÿ›’ Where to buy the original battery for Xiaomi and not run into a fake?
Verified options: ๐ŸŒ Official Mi Store on AliExpress (seller Xiaomi Official Store). ๐Ÿฌ Xiaomi Service Centers (list on mi.com). ๐Ÿ›’ Russian shops: Svyaznoy, M.Video, DNS (Look for batteries marked "Original"). โš ๏ธ Signs of counterfeiting: no hologram on the package, too low price (less than 1 000) โ‚ฝ), misspelling.