Xiaomi smartphones are famous for their energy-efficient iron and optimized MIUI shell, but over time, even the most reliable lithium-ion battery loses its original capacity. The owner of the device notices that the phone starts to discharge faster, suddenly turns off in the cold or holds charging for a long time to 80%.
Unlike some competitors, the Chinese manufacturer does not always display the exact percentage of battery health in the standard settings menu, hiding this data in the engineering sections of the system. Diagnostics of the condition requires the use of special codes, third-party software or deep analysis of system logs. Understanding the real level of degradation will help make the right decision: calibrate, replace or buy a new gadget.
In this article, we will take a look at all the available methods for assessing battery life, from simple visual checks to professional utilities, learn how to interpret the data and understand when to sound the alarm. The critical threshold for replacement is considered residual capacity below 75-80% of the factory. Let's figure out how to get this information as accurately as possible.
Visual diagnosis and indirect signs of wear
Before we get to software, we need to look at the device and analyze its behavior in everyday scenarios. Physical battery bloating is the most dangerous sign that we can't ignore. If the back of the phone (if it's removable or plastic) has started to move away and the screen has risen slightly above the frame of the case, then there are irreversible chemical reactions inside, releasing gas.
Indirect programmatic symptoms also speak eloquently about the state of the battery: Sharp spikes in the percentage of charge, for example, when the phone shows 30%, and after a minute suddenly turns off, indicate the desynchronization of the controller and the real capacity of the cell. Unstable work under load is often the first call for a deep check.
β οΈ Warning: If you notice a bloating or heavy heating of the device at rest, immediately stop using the gadget and do not put it on charging.This can lead to fire or damage to the display pressure.
A properly functioning modern smartphone with a serviceable battery loses no more than 5-8% of its charge per night with Wi-Fi on. If your Xiaomi loses 20-30% in 8 hours of inactivity, the problem lies either in the background processes or in the high self-discharge of the worn-out battery.
Use of the engineering menu and USSD-code
The fastest way to access hidden system settings is through the use of an engineering menu, where the MIUI and HyperOS shells have a dedicated hardware testing section that is available without superuser permissions, and you need to open a standard caller and enter a special combination of characters to enter it.
Enter ##6485## in the dial box. The menu should open automatically, you don't need to go anywhere. If the code didn't work, maybe your firmware version restricts access to this data, or requires activation through the developer menu. In the list of parameters that opens, we're interested in specific lines that show the current state of the battery.
What if the code doesn't work?
And you'll see a table with a lot of parameters on the screen, and the key ones for us are the following:
- π MB_06 β Battery status (good status) means good state).
- π’ MB_00 β current-rate.
- β‘ MB_01 β current-voltage.
- π MF_02 (or MF_05, MF_06 in different versions) - the calculated cycle of recharging.
It's important to understand that not all models support the output of the exact percentage of health (SOH) through this code. However, the presence of the parameter of the recharge cycles gives a great idea of the age of the device. The standard life of modern lithium polymer batteries is about 500-800 full cycles to lose 20% capacity.
Analysis of battery.log system logs via ADB
For users who want to get the most accurate and honest data that is not available in a normal interface, there is a method of analyzing system logs. Android constantly keeps a battery.log, which records all the parameters of the power controller, and you can access this data using a computer and the ADB debugging bridge (Android Debug Bridge).
The first step is to activate the debugging mode on USB You can use your smartphone. β About the phone and seven times quickly click on the build number (MIUI After the message βYou became a developerβ appears, go to the Additional β For developers and turn on the switchboard "Debugging by" USBΒ». Connect your phone to your PC with a cable.
βοΈ Preparation for log analysis
On your computer, open the command line in the folder with the ADB installed and enter the following command to unload the battery log into the text file:
adb shell dumpsys batterystats --checkin > battery_check.txtFile received battery_check.txt It's going to have thousands of lines of code, and you're going to have to open it with any text editor and find a line that contains the keyword com.android.phone, or just look up CurrentCapacity and DesignCapacity. Divide the current capacity by design capacity and multiply by 100, You will get the exact percentage of battery health at the moment.
This is the most reliable method, because data is taken directly from the controller, bypassing the shell's software add-ons, and it's especially useful when the engineering menu doesn't show recharge cycles, but it's worth remembering that interpreting raw data requires careful attention.
| Parameter in the log | Description | Normal value. |
|---|---|---|
| DesignCapacity | Factory capacity (mAh) | 4000-5000 (depending on the model) |
| CurrentCapacity | Current full capacity | At least 80% of the design |
| Voltage | Current voltage | 3.7B - 4.4B |
| Temperature | Cell temperature | 20Β°C - 40Β°C |
Third-party monitoring applications
If you don't want to mess with command line logs, you'll find specialty apps from Google Play that automatically read data from system files and present it in a graphical way. AccuBattery is one of the most popular and time-tested tools.
The application is based on tracking charge and discharge, and it doesn't know the exact capacity of your battery initially, so it takes time (usually 3-5 charging cycles) to calibrate and generate statistics, and then it will appear in the Health section as estimated capacity.
π‘
To get accurate data in AccuBattery, charge your phone in small portions (e.g. 20% to 80%) and donβt use the device during calibration to keep current measurements clean.
Other useful utilities worth considering:
- π± CPU-Z β Shows basic information about the iron, including battery type and voltage.
- π Battery Guru β advanced analysis with recommendations for the prolongation of the life of the battery.
- βοΈ AIDA64 β Comprehensive system information tool for deep diagnostics.
It should be noted that third-party applications operate at the operating system level and can receive data with some error, which allows the power controller itself in the survey.
Checking through the Mi Assist service menu
In some regions and on certain versions of MIUI firmware, the Mi Assist (or simply Device Checker) service app is available to automatically diagnose all components of a smartphone, including the battery, and can be found in the Tools folder or through a search in settings.
Run the app and select Battery or Charge, and the system will test the ability to keep the voltage under load. Unlike the engineering code, you won't see the capacity numbers here, but you'll get a verdict of "Normal" or "Anomaly," which is a quick way to rule out software calibration errors.
If the test shows an error but the phone is working normally, try calibrating: discharging the device before turning it off, charging it to 100% off, and then holding it for another 1-2 hours to help the controller re-determine the capacity limits.
When a battery replacement is needed
Sooner or later, there comes a point where software tricks stop helping, and knowing when to change your battery will save you nerves and time, and the main criterion is not just your health, but your behavior in critical situations.
There are a number of clear indicators indicating the need for replacement:
- π Residual capacity fell below 75-80% factory-wise.
- π§ Phone turns off when charged 15-20% frosty.
- π₯ The device is very warm even with simple tasks (browser, messengers).
- β³ Work time decreased by 2 times compared to the new state.
β οΈ Warning: Don't try to "swing" a deeply worn battery with full discharge cycles to zero. For modern Li-Pol batteries, deep discharge is harmful and can permanently disable the controller.
If you decide to replace the battery yourself, choose original components or quality counterparts from well-known brands like Nohon or Baseus. Cheap copies often have a real capacity of 2-3 times less than the declared one, which will return you to the original problem after a month of use.
π‘
Timely battery replacement prolongs the life of the smartphone, as the worn-out battery puts a strain on the power controller and can cause the processor to shut down at peak moments.