Owners of Xiaomi, Redmi and POCO smartphones often face situations where the charge indicator behaves unpredictable: the device can show 20% and then suddenly turn off, or charging stops at 99% and does not go further, even if the cable is connected for hours, these are classic symptoms of desynchronization of the power controller and the MIUI operating system.
A procedure known as battery calibration, which resets accumulated errors in the Android file system, does not restore the physical capacity of the worn battery, but causes the system to correctly read the real voltages of the cells. It is a software reset that often solves problems with the "jumping" percentage of charge.
In this article, we will discuss secure customization methods that do not require root rights. You will learn how to properly prepare the device, what steps to take to reset statistics and when the use of engineering codes is really justified.
Understanding the problem: why percentages are lost
The Android operating system doesn't measure charge directly like the water level in a tank. It relies on a statistics file (usually batterystats.bin) that stores data on charging and discharging cycles. Over time, errors accumulate in this file, and the system begins to misinterpret the voltage at the battery terminals.
On Xiaomi devices, the situation is exacerbated by aggressive optimization of background processes. The system may misjudge residual capacity, especially after firmware updates or long periods of downtime. Calibration does not increase the physical wear of the battery, it only updates the software cut-off thresholds.
There is a myth that frequent calibration harms lithium-ion cells, but in fact, only a deep discharge to zero, which we will use once for the procedure, is harmful. If the percentage "jumps" constantly (it was 40%, became 15%, then again 35%), it is a signal that intervention is necessary.
Preparation of the device for the discharge procedure
Before any manipulations, you need to make sure that the smartphone is in stable condition. Do not try to reset if the device is running heavy games or downloading large files.
Make sure you use the original power supply and cable, or certified analogues with support for Quick Charge or Xiaomi Turbo Charge protocols.Using cheap cables can lead to unstable current, which will distort the calibration results.
β οΈ Note: Do not perform the procedure if the battery charge is below 10%. Start by connecting the device to the network to avoid emergency shutdown during preparation.
It is also recommended to close all background applications and clear RAM, which will allow the system to more accurately assess the real power consumption at rest, which is important for the final stage of the setup.
Classic Full-Cycle Charge-Discharge Method
The safest and most efficient method recommended by the engineers is to run a full cycle, which requires no third-party software installation and is safe to guarantee, and the essence of the method is to "teach" the controller to redefinite the 0% and 100% boundaries.
First, you need to completely discharge your smartphone. Use the device in active mode until it turns off on its own. If the phone is turned off but shows a few percent again after turning on, discharge again until the screen stops responding to the power button.
Then there's the charging step. Connect the device to the grid. It's important not to turn it on until the indicator shows 100%. After reaching the maximum, leave the phone on charge for another 1-2 hours. This is necessary for balancing the cells and saturating the battery with low-power current.
After that, you can turn on the smartphone. If it shows less than 100%, connect the charging again (already on) and wait for full filling. This cycle is recommended to repeat 2-3 times to consolidate the result.
Use of engineering menu and codes Xiaomi
The MIUI and HyperOS shells have an engineering menu that allows you to access advanced battery information. Entering special codes in the Phone app can help reset some controller settings, but this method does not work on all processor models.
Enter the diagnostics menu with a code ##6485##. In the list that opens, look for parameters that start with the letter "B." We're interested in your current health and your cycles. MB_06 (The battery status is good, it should be good".
What do the codes in the engineering menu mean?
MB_00 β current charge level as a percentage. MB_01 β battery voltage. MB_05 β Real capacity (may be different from passport). MB_06 β Battery status (Good, Bad, Overheat) The other parameters are technical in nature and are not intended to change users.> Some users try to change the values in this menu, but it is strongly recommended not to do this. Reset statistics often occurs automatically when viewing certain items, but forced change of values can lead to malfunctioning of the power system. Parameter Description Normal value MB_00 Current charge (%) 0-100 MB_01 Voltage (mV) 3700-4400 MB_05 Residual capacity Depends on the model MB_06 Home >> Battery status >> Good Third-party apps: help or harm In the Google Play store there are many utilities that promise to "resurrect" the battery. Popular applications like Battery Calibration or Battery Doctor work on the same principle: they forcibly clean the stats file. batterystats.bin The effectiveness of these programs is controversial, on modern versions of Android (starting with the use of the new version). 6.0 And above, you have limited access to system files without root permissions, so many applications simply mimic activities without making any real changes to the system, and if you do decide to use software, choose applications that have high rankings and a long history. Avoid programs that require suspicious permissions or promise to increase capacity. 50%". It's not technically possible in software. MIUI After calibration, it is important to configure the system so that errors do not accumulate again. Shell MIUI It has powerful built-in power saving tools that often block applications too aggressively. Go to the battery settings and check the application list. For instant messengers and important services, set No Limits mode. This will prevent constant restarts of applications that also add charge and confuse statistics. disable unused features: Wi-Fi network search, Bluetooth scanning and constant work. GPS. These modules create background loads that can distort current sensor readings at rest. π‘Enable "Extended Power Saving" at night to keep background activity to a minimum and allow the power controller to stabilize. Regularly update system applications through the GetApps store. Xiaomi engineers often release patches that correct errors in the drivers of the power controller, which directly affects the accuracy of the display of charge. Diagnostics of physical wear Sometimes software calibration does not help, and the problem lies in the physical condition of the battery. Lithium-ion batteries have a resource of about 500-800 And then they drop in capacity, and then the chemical composition goes down. And notice the look of the device, and if the back cover is swelling or the screen is moving away from the body, the battery needs to be replaced immediately. Operating a swollen battery is dangerous and can lead to fire. β οΈ Note: If after calibration the phone is discharged with 30% before 0% post 10 minutes in standby mode, most likely, the battery life is exhausted and a replacement is required in the service center. For accurate diagnosis, you can use the command adb shell dumpsys batterystats via a computer, but this requires the skills to work with the device. ADB. The user can simply observe the behavior of the device during the 2-3 days after calibration. π‘Calibration is a one-off preventive measure, not a way to restore an old battery. If the wear is high, only replacement will help. Is it safe to discharge the phone to zero? Deep discharge is harmful to lithium-ion batteries if they are stored in this state for months. A single discharge before shutdown followed by immediate charging will not harm a modern device. Xiaomi's power controllers have overdischarge protection. How long does it take to fully calibrate? A full cycle can take from 6 before 12 hours, including discharge time and long-term charging. Don't try to speed things up using powerful power supplies -- the charge current is still regulated by the controller inside the phone. Should you calibrate after updating the firmware? Yes, after major Android or MIUI updates (e.g., switching from MIUI 13 to 14), a full charge-discharge cycle is recommended. This will help the system recalculate the power consumption of new system processes. Will calibration help if the phone turns off itself? If the shutdown happens when the remaining 10-15%, calibration is likely to help. If the phone turns off chaotically on any charge, the problem may be a software malfunction (rep) or a board malfunction.