Have you noticed that Xiaomi suddenly shuts down at 20-30% charge, even though it used to run up to 5-10%? Or does the battery change the system show an incorrect percentage? The reason most often lies in the battery cache - the service data that MIUI uses to calibrate the display of the charge level, this data is "polluted" over time, especially after deep discharges, a change of firmware or a physical replacement of the battery.
Unlike normal application cache cleaning, battery reset is a more delicate procedure, which does not require root rights, but if performed improperly can lead to temporary instability of the smartphone during the first 2-3 charging cycles. In this article, we will discuss official and alternative methods of cleaning the cache, and explain why sometimes the procedure has to be repeated.
What is the battery cache and why it is knocked down
Battery cache (or battery stats) is a file batterystats.bin, It's a system that stores the battery's discharge/charge history. MIUI uses this data to:
- π Adjust the displayed percentage of charge (to 100% match the actual capacity)
- π Optimization of the background of processes at low charge
- β‘ Deep discharge prevention (automatic shutdown at critical level)
The file is updated every time you connect the charger, but sometimes the data gets distorted.
- π Disabling charging during calibration (e.g. when 98-99%)
- π Replacement of the battery without resetting statistics
- π± Update of firmware with transition to a new version MIUI (especially 12-14+)
- π₯ Deep discharge to 0% followed by βrevivalβ through charging
It's important to understand that cleaning the cache doesn't restore the actual capacity of the worn-out battery, it just forces the system to re-learn how to correctly display the current charge level. If the smartphone still discharges quickly after the procedure, the problem is the physical wear and tear of the battery, it requires a replacement.
Official method: through the engineering menu (without root)
The safest method recommended by Xiaomi for devices on MIUI 12-15. Suitable for most models: Redmi Note 10/11/12, POCO F3/F4/F5, Xiaomi 11/12/13, etc. It is important: before the procedure charge the smartphone to at least 60%.
Instructions:
- Open the phone app and enter the combination: ##4636##
- In the menu that appears, select Battery Information.
- Click on the three dots in the upper right corner and select Clear Battery Stats.
- Confirm the action and restart the device
Once the smartphone is restarted, it will start collecting new statistics, and in the first 1-2 charge/discharge cycles, the percentage may not be accurate, which is normal, and it takes up to 48 hours to fully calibrate.
Charge your smartphone to at least 60% | Make a backup of important data | Disable charging optimization in settings |Close all background applications-->
β οΈ Note: Some models (e.g. Redmi) 9A or POCO M3) There may be no engineering menu, in which case you can use alternative methods in the following sections.
Alternative method: through ADB (for experienced users)
If the engineering menu is not available, you can reset the battery cache via Android Debug Bridge (ADB), which works on all versions of MIUI, but requires a connection to a computer.
What you need:
- π₯οΈ Computer with installed Xiaomi and ADB-tools drivers
- π± Included debugging by USB (Settings β The phone. β Version. MIUI (7 times) β Additionally. β For developers β Debugging by USB)
- π Original. USB-cable (will not damage ports!)
Step-by-step:
- Connect your smartphone to your PC and confirm the debugging permission.
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.
- Enter the command to check the connection: adb devices must appear serial number of the device.
- Do the reset: adb shell dumpsys batterystats --reset
- Reboot your smartphone: adb reboot
After the reboot, the system will start collecting new statistics. To speed up the calibration, complete the full discharge/charging cycle (from 100% to 0% and back).
adb shell pm clear com.android.providers.settingsThis command will reset all system settings, including battery data, but will not affect user files.-->
Reset via Recovery Mode (for older models)
On devices up to MIUI 11 (e.g. Redmi 4X, Mi A1), sometimes cache resetting via recovery mode is more radical and can result in the loss of some custom settings.
How to do this:
- Turn off your smartphone.
- Press the Power button + Volume up at the same time until the Mi logo appears.
- From the Recovery menu, select Wipe & Reset β Wipe Battery Stats (navigation with volume buttons, confirmation with power button).
- After reset, select Reboot β Reboot to System.
If you don't have Wipe Battery Stats on the menu, your version of Recovery doesn't support this feature, so use the methods in the previous sections.
| Cleaning method | PC required | It's good for MIUI. | Difficulty | Implementation time |
|---|---|---|---|---|
| Engineering menu | β No. | 12-15 | ββ | 2-5 minutes |
| ADB | β Yes. | Anybody. | βββ | 5-10 minutes |
| Recovery Mode | β No. | To MIUI 11 | βββ | 3-7 minutes |
| Manual calibration | β No. | Anybody. | β | 24-48 hours |
Manual battery calibration (if resetting didn't help)
If the percentage of charge is still not displayed correctly after cleaning the cache, perform a full calibration. This method does not require technical skills, but takes up to 2 days.
Algorithm of action:
- Charge your smartphone to 100% and hold on charging for another 1-2 hours (even if the indicator shows βfully chargedβ).
- Turn off charging and use the device as normal until it is completely discharged (until it turns off itself).
- Wait 3-5 hours (this is important for the "calming" of the battery controller).
- Connect charging and charge up to 100% without interruptions (preferably the original adapter).
- Repeat the cycle 1-2 times.
This method helps to train the battery controller to correctly determine the actual capacity, especially after battery replacement or prolonged use without calibration.
Why can't we interrupt the calibration?
β οΈ Note: On smartphones with Adaptive Charging (e.g. Xiaomi) 13 Pro) before calibration, turn it off in the battery settings, otherwise the system will artificially limit the charge to 80-90%, and the calibration will be inaccurate.
Frequent Mistakes and How to Avoid Them
Many users make critical mistakes when cleaning the battery cache, which leads to a deterioration of the situation.
Error 1: Cache resetting at low charge
If you clean up the stats at a battery level below 30%, the system may incorrectly initialize new data. Always charge your smartphone to at least 50-60% before the procedure.
Error 2: Using unoriginal chargers
Cheap cables or unstable voltage adapters distort calibration data. Only Xiaomi certified accessories are used for fine-tuning.
Error 3: Interrupting the first charging cycle
After resetting the cache, do not turn off charging, even if the indicator shows 100%. Let the smartphone stand on charging more 1-2 hourly data stabilization.
Mistake 4: Frequent cache resets
Clean the battery statistics need not more than 1 time in 3-6 months. Frequent discharges lead to unstable operation of the controller and accelerated wear of the battery.
π‘
If the battery is discharged faster than normal after cleaning the cache, it is not a calibration error, most likely, the battery is physically worn out (capacity below 70% of nominal value) and needs to be replaced.
When cleaning the cache won't help
It's not always the software part that's the problem, if after all the manipulations,
- π The smartphone is turned off when 30-40% recharge
- π Battery life has been reduced in 1.5-2 compared to the new device
- β‘ The battery heats up even with a small load.
- π The charge is carried out in jerks (fast, then slowly)
It's a problem with the physical wear of the battery.
- Check the battery status through the AccuBattery app (Health section) if the capacity is below 60-70%, a replacement is required.
- Contact Xiaomi service center or a checked repair center. The cost of replacing the battery with a Redmi Note is from 1500 to 3000 rubles (2026).
- After replacement, be sure to clean the cache and calibrate according to the instructions above.
On newer models (Xiaomi 14, Redmi Note 13) with Long Battery Life (Settings β Battery β Battery Settings) before replacing the battery, turn off this option. It limits the maximum charge to 80%, which will prevent the new battery from being calibrated correctly.