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.
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:
- Discharge your phone before automatically shutting down (donโt manually turn it off!).
- Connect the original RAM and charge for at least 8 hours (even if the indicator shows 100% sooner).
- Turn off the charging, turn on the phone and wait for the system to fully boot.
- 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
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)
- Open the Phone app and dial the code: ##4636###.
- Go to the Battery Information tab.
- Check the health option - if it's not good, the battery is the problem.
- 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:
- Turn off the phone and remove the battery (if possible).
- 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?
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:
- Make a backup of data (photos, contacts, SMS) through Settings โ Additional โ Backup.
- Go to Settings โ About the phone โ Reset settings.
- Select "Erase all data" and confirm.
- 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):
| Service | Price (โฝ) | Repair time |
|---|---|---|
| Battery replacement (original) | 1 500 โ 3 500 | 30-60 minutes |
| Battery replacement (analogue) | 800 โ 1 800 | 30-60 minutes |
| Repair of the power controller | 2 500 โ 5 000 | 1-3 days |
| Diagnosis (if the cause is unclear) | 500 โ 1 000 | 20-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).