Cleaning the battery cache on Xiaomi: when you need it and how to do it without mistakes

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.

πŸ“Š How often do you calibrate your battery on Xiaomi?
Never did.
Every 3-6 months
Only after replacing the battery
With each update of MIUI

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:

  1. Open the phone app and enter the combination: ##4636##
  2. In the menu that appears, select Battery Information.
  3. Click on the three dots in the upper right corner and select Clear Battery Stats.
  4. 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:

  1. Connect your smartphone to your PC and confirm the debugging permission.
  2. Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.
  3. Enter the command to check the connection: adb devices must appear serial number of the device.
  4. Do the reset: adb shell dumpsys batterystats --reset
  5. 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.settings

This 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:

  1. Turn off your smartphone.
  2. Press the Power button + Volume up at the same time until the Mi logo appears.
  3. From the Recovery menu, select Wipe & Reset β†’ Wipe Battery Stats (navigation with volume buttons, confirmation with power button).
  4. 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 methodPC requiredIt's good for MIUI.DifficultyImplementation 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:

  1. Charge your smartphone to 100% and hold on charging for another 1-2 hours (even if the indicator shows β€œfully charged”).
  2. Turn off charging and use the device as normal until it is completely discharged (until it turns off itself).
  3. Wait 3-5 hours (this is important for the "calming" of the battery controller).
  4. Connect charging and charge up to 100% without interruptions (preferably the original adapter).
  5. 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?
If you interrupt the process during the discharge stage (for example, put the smartphone on charge at 20%), the battery controller will β€œremember” the incorrect limits of capacity, which can lead to even greater jumps in the percentage of charge, in the worst case, the system will start to turn off the device at 30-40% mistakenly counting it as 0%.

⚠️ 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.

  1. Check the battery status through the AccuBattery app (Health section) if the capacity is below 60-70%, a replacement is required.
  2. 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).
  3. 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.

FAQ: Answers to Frequent Questions

Can I clean the battery cache without a computer?
Yes, most Xiaomi models support reset via the engineering menu (combination #4636##) or Recovery Mode.The ADB method requires a PC, but it is universal for all versions of MIUI.
Why did the battery start to run out faster after cleaning the cache?
In the first 1-2 cycles, the system recalibrates the data, so there are percentage surges. If the fast discharge lasts longer than 48 hours, the problem is the wear of the battery, not the cache. Check the capacity through AccuBattery.
Do I need to clean the cache after replacing the battery?
The new battery has a different real capacity, and the old calibration data will be incorrect. After you replace it, reset the cache + complete calibration (discharge / charge).
Can cleaning the cache damage the smartphone?
No, the procedure is safe, because only service data is reset, but if you interrupt the calibration process (for example, remove the battery during discharge), it can cause the controller to fail. Always bring the procedure to the end.
How often should I clean the battery cache on Xiaomi?
1 time in 6 months in normal use is enough. After replacing the battery, deep discharge or updating the MIUI - immediately. Frequent resets (for example, once a month) will not improve the situation, but may disrupt the stability of the controller.