Owners of Xiaomi, Redmi and POCO smartphones often encounter a situation where the device begins to discharge faster than usual or turns off with 10-15% charge remaining. This is a sure sign that the resource battery is coming to an end. However, before you run to a service center or order a new battery, you need to conduct an accurate diagnosis to make sure there is a problem. Software glitches, background processes and incorrect settings can mimic physical wear and tear, so it is important to be able to distinguish one from the other.

The Android system on the MIUI (HyperOS) shell provides the user with several tools for analyzing power status, from hidden engineering menus to advanced methods via ADB. In this article we will analyze all the available methods: from simple codes that work on most models to in-depth analysis of system logs. You will learn to interpret the data received and understand when replacing the battery is really necessary, and when software calibration is enough.

Using the engineering menu and USSD codes

The fastest way to obtain primary information about the power status is to use secret codes built into the firmware. On Xiaomi smartphones, these codes provide access to the CIT (Customer Information Test) engineering menu, where data from all sensors is collected. To start diagnostics, you need to open the standard phone application and enter the combination ##6485##. After entering the last characters, the menu will open automatically without the need to press the call button.

In the list of parameters that opens, you need to find lines marked MB_06 and MF_02 (or MF_05 in new versions of HyperOS). The parameter MB_06 displays the current state of the battery: the value "Good" means that the system does not see critical errors. More informative is the parameter MF_02, which shows the calculated residual capacity in milliamp-hours (mAh). By comparing this number with the factory capacity of your model, you can easily calculate the percentage of wear.

It is worth considering that on some global firmware versions these codes may be blocked or redirect to a page with general information. In this case, the system will simply show the charge level and temperature without revealing information about the health of the battery. If the code does not work, try an alternative path through the settings: go to Settings โ†’ About phone โ†’ All options โ†’ SIM card status, although the data here is often less detailed.

๐Ÿ’ก

If the code ##6485## does not work, try entering it in the application "Phone" slowly, character by character. On some models it works only with speed dialing, on others - vice versa.

โš ๏ธ Attention: Do not change the values โ€‹โ€‹in other fields of the CIT engineering menu. Resetting sensor calibration or changing charging parameters can lead to incorrect operation of the power controller and require flashing the device.

Analysis of the battery_health system file via ADB

For those who want to get the most accurate data that is not available in the usual interface, there is a method for reading the system file file battery_health. This file contains raw data from the battery controller, including the number of recharge cycles and actual capacity. To access it you will need superuser rights (Root) or a connection to a computer with the utility installed ADB (Android Debug Bridge).

First you need to activate developer mode. Go to Settings โ†’ About phone and quickly press 7 times on the โ€œMIUI Versionโ€ (or โ€œOS Versionโ€) item. Then, in the advanced settings, enable "USB Debugging". Connect the smartphone to the PC with a cable and run the command in the terminal or command line:

adb shell cat /sys/class/power_supply/battery/charge_counter

The result of the command will show the current capacity in microamp-hours. Divide the resulting number by 1000 to convert it to the usual milliamp hours. You can also request a file cycle_countto learn how many complete charge-discharge cycles the battery has gone through. Li-ion batteries usually retain 80% capacity after 500-800 cycles, so exceeding this threshold indicates natural aging.

What to do if ADB does not see the device?

Make sure that the ADB driver is installed on your smartphone (often included in Minimal ADB and Fastboot). When you connect, a request for debugging permission will appear on your phone screenโ€”be sure to click โ€œAllow.โ€ If the device is displayed as "unauthorized", disconnect the cable and try another USB port or cable.

Third-party diagnostic applications

If you donโ€™t want to mess around with codes and your computer, specialized applications from Google Play will come to the rescue. They collect usage statistics and calculate wear based on voltage and capacitance analysis algorithms. One of the most popular and reliable tools is AccuBattery. After installation, the application will ask you to carry out several charge cycles to calibrate its data.

The principle of operation of such apps is based on comparing the amount of energy entering the battery (measured by the charger) with the change in the percentage of charge that the system sees. Over time, the application displays the Estimated Capacity and compares it to the Design Capacity. The difference between these values โ€‹โ€‹is the actual wear. Other useful utilities include CPU-Z and Battery Charge Limitwhich also provide detailed voltage and temperature information.

  • ๐Ÿ“Š AccuBattery is the best choice for long-term battery health monitoring and accurate wear calculations.
  • ๐Ÿ› ๏ธ CPU-Z โ€” provides summary information about the hardware, including current voltage and battery technology.
  • ๐Ÿ”‹ 3C Battery Manager โ€”a powerful application for advanced users with discharge graphs and detailed statistics.

It is important to understand that third-party applications take time to accumulate statistics. Instant results after installation may not be accurate. It is recommended to use the smartphone in normal mode for 3-5 days, periodically charging it to 100% so that the application algorithms can generate the correct battery profile.

๐Ÿ“Š Which way do you prefer to check the battery?
Engineering menu (codes)
Applications from Play Market
Connecting to a PC (ADB)
Visually by discharge rate

Interpretation of indicators and wear rates

Having received the numbers, many users are at a loss: when is it time to change the battery, and when can you still use the device? The critical threshold is considered to be a loss of 20% of the original capacity. If your smartphone originally had a 4000 mAh battery, and the diagnostics show 3200 mAh, this is a signal to replace it. With such wear, the power controller may incorrectly determine the remaining charge, causing sudden shutdowns.

You should also pay attention to the voltage. At rest, a working lithium-ion battery should produce about 3.7โ€“3.8 Volts. If the voltage drops below 3.5 V with an average charge (40-50%), this indicates degradation of the chemical composition of the cells. High temperature during charging (above 45ยฐC) is also an indirect sign of problems with the battery or controller.

Indicator Normal Alarming symptom Action
Residual capacity > 80% of factory < 75% of factory Plan replacement
Charge cycles 0 โ€“ 500 > 800 Monitor discharge
Voltage (rest) 3.7 โ€“ 4.2 V < 3.5 V at 50% Controller diagnostics
Temperature 25 โ€“ 35 ยฐC > 45 ยฐC Check background processes
๐Ÿ’ก

Capacity loss of up to 10-15% is a natural process for any battery after a year active operation and does not require immediate intervention.

Battery calibration and software reset

Sometimes the problem of rapid discharge lies not in physical wear, but in desynchronization of the software charge indicator and real capacity. The system โ€œforgetsโ€ where 0% is and where 100% is. In such cases, the calibration procedure helps. It is safe for the equipment and allows you to reset the controller error. First, completely discharge your smartphone until it turns off automatically.

Then, without turning on the device, charge it to 100%. After reaching a full charge, keep it on the wire for another 1-2 hours. Then perform a forced reboot (holding the power button for 10-15 seconds) and check the charge level. If it drops below 100%, connect the charger again. Repeat the cycle until after a reboot the indicator consistently shows 100%.

On devices with root access, you can use special scripts or applications like Battery Calibrationthat clean the file batterystats.bin. However, on modern versions of Android this file plays a lesser role, and manual calibration with a discharge-charge cycle is often more effective. You should not carry out this procedure more than once every six months, since deep discharge is harmful to lithium batteries.

โš ๏ธ Attention: Do not leave a completely discharged smartphone in storage, turned off, for weeks or months. A deep discharge below a critical level can lead to an irreversible drop in voltage and the impossibility of subsequent charging using the standard method.

Physical signs of battery failure

Software methods are good, but they cannot always detect physical damage. A careful inspection of the smartphone case can tell you more about the condition of the battery than any tests. The most obvious sign of a problem is a swollen battery. If the back cover begins to come off, the screen bends, or the smartphone no longer lies flat on the table, stop using the device immediately.

A swollen battery creates pressure on internal components, which can damage the display, motherboard, or cause a fire. Also pay attention to the heating rate. If the phone becomes hot in the area of the camera or the bottom of the case even during light tasks (web browsing, instant messengers), this may indicate an internal short circuit in the batteries.

  • ๐Ÿ” Visual inspection โ€”check the gaps between the screen and the frame, whether there are any bulges on the back panel.
  • ๐ŸŒก๏ธ Temperature control โ€” use a thermal camera or simply tactilely evaluate the heating in different areas of the case.
  • โšก Charging behavior โ€” if the phone charges intermittently (for example, from 20% to 50% at once) or heats up on slow charging, the battery is faulty.

If physical defects are detected, software calibration or reset methods will no longer help. The only correct solution is to replace the battery at an authorized service center. Using non-original batteries or attempting to replace them yourself on complex models with adhesive fixation can lead to damage to the cables and loss of moisture protection.

โ˜‘๏ธ Signs of urgent battery replacement

Completed: 0 / 4

Frequently asked questions (FAQ)

Why code ##6485## shows only the charge level, not the capacity?

This depends on the firmware version and regional settings of the smartphone. On some global versions of MIUI and HyperOS, access to extended battery data through this menu is limited to developers. In this case, use applications like AccuBattery or the ADB method.

Is it possible to restore the capacity of an old battery programmatically?

No, the physical degradation of chemical elements cannot be reversed programmatically. Calibration only corrects the display of the percentage of charge, but does not increase the actual energy reserve. If the capacity has dropped critically, only replacement will help.

How many charge cycles can a Xiaomi battery withstand?

Modern lithium-polymer batteries in Xiaomi smartphones are designed for an average of 500-800 full charge-discharge cycles before losing 20% โ€‹โ€‹of capacity. With careful use (charge in the range of 20-80%), this resource can be extended.

Does fast charging affect battery wear?

Yes, high currents and heating when using turbo charging (67W, 120W and above) accelerate battery degradation faster than slow charging. However, Xiaomi power controllers have protections that minimize this effect. For maximum service life, it is sometimes recommended to use regular 5V/2A charging.