A sudden shutdown of the smartphone at 20–30% charge or the device discharging in a few hours directly indicates wear of the physical capacity of the battery or a calibration error of the power controller in Android. Before taking the gadget to a service center to replace the battery, it is necessary to accurately diagnose the current state of the power source, using built-in system codes or specialized utilities that will show the real remaining resource and help distinguish a hardware malfunction from a software failure.
Many manufacturers deliberately hide detailed information about the health of the battery from the average user in order to avoid panic or unnecessary calls to support. However, the system kernel stores this data in special logs and system files. Our task is to extract this information correctly. We will look at both built-in methods available without superuser rights, and more advanced methods for experienced owners.
Understanding the actual capacity will help you make an informed decision: calibrate the power controller or replace a worn-out element. In this article, we will look at methods from simply viewing the settings to using a debug bridge so that you can get the most complete picture of the state of your device.
Checking settings and hidden manufacturer menus
The easiest and safest way to start diagnosing is to turn to the standard system tools. In the latest versions Android 11, 12, 13 and 14 Google developers have introduced more transparent battery usage statistics. Go to menu Settings → Battery → Battery status (the path may differ depending on the shell). Here you will see a condition rating, such as “Good” or “Requires replacement.”
However, standard settings often show only a general rating, and not specific numbers in milliamp hours (mAh). To obtain detailed information, you can use the engineering menu. Enter the secret code ##4636##in the "Phone" application. If the menu opens, select “Battery Information.”
The window that opens displays the current charge level, voltage and, in some firmware, the estimated capacity. Pay attention to the field Health (Health). If the value “Good” is indicated there, it means that the controller does not record critical deviations. But remember that on brand devices Samsung or Xiaomi this code may be blocked by the manufacturer.
⚠️ Attention: Do not try to change parameters in the engineering menu if you are not sure of their purpose. Resetting the calibration (
Battery Stats Reset) without a real need can lead to incorrect display of charge percentages for several days.
If the code ##4636## does not work, try entering #0000# or #06#, although they are more often used to check IMEI and software version.
An alternative to standard codes are proprietary applications from manufacturers. For example, smartphones Xiaomi have a “Security” application with a diagnostics section, and in Samsung there is an application Samsung Memberswhere in the “Diagnostics” section you can run a battery test. These tools analyze charging cycles and issue a verdict on the need for maintenance.
Using specialized applications from Google Play
When the built-in tools are not enough, third-party utilities come to the rescue. The ecosystem Google Play offers dozens of apps for monitoring battery health, but not all of them are equally useful. Some simply read the data embedded by the manufacturer in the configuration file, while others conduct real testing by discharging and charging the device.
The application is considered one of the most authoritative tools. AccuBattery. Its uniqueness lies in its evaluation method: it does not simply read a static number, but calculates the actual capacity based on the amount of energy poured into the battery during charging and the change in charge level. To obtain accurate data, the app requires several charging cycles from 15% to 80-90%.
Other popular utilities, such as Ampere or Battery Guru, focus on the charging and discharging current in real time. They allow you to identify parasitic processes that drain the battery in the background. When choosing an application, pay attention to permissions: for basic monitoring they do not need access to contacts or geolocation.
It is important to understand the difference between Design Capacity and Estimated Capacity. The first value is the rated capacity of the new battery, the second is how much it can hold now. The difference between these indicators is your wear.
- 🔋 AccuBattery —the best choice for assessing wear in percentage and milliamp-hours based on actual use.
- ⚡ Ampere —ideal for checking the quality of the charger and cable, showing the incoming current.
- 🛠️ CPU-Z —a system combine that shows the battery model and its rating data from the system report.
- 📊 Battery Monitor Widget —provides detailed statistics on temperature and voltage for advanced users.
⚠️ Attention: Data in applications may vary by 5-10% due to the error of the current sensors on the motherboard. Use the average value after 3-5 charging cycles to make decisions.
Diagnostics via computer and USB debugging (ADB)
For users who need the maximum level of detail without installing unnecessary software on the phone, the ideal solution would be to use the interface ADB (Android Debug Bridge). This method allows you to access the system file batteryinfo directly, bypassing interface restrictions.
First, you need to enable USB debugging in the “For Developers” menu on your smartphone and install ADB drivers on your computer. After connecting the device, run the command in a terminal or command line:
adb shell dumpsys battery
This command will display a summary of the current power status. However, it only shows current parameters (level, status, technology), but does not always display the nameplate capacity. Obtaining capacity data (if available in the driver) sometimes requires using more specific commands or reading files through root access, but even basic output will help identify voltage anomalies.
What to do if ADB does not see the device?
Make sure that USB Debugging is enabled in the developer menu. Try changing the USB cable to an original or high-quality analogue. Also check if the connection mode is set to "File Transfer" (MTP), although for ADB the "Charge Only" mode with confirmation on the phone screen is often sufficient.
A more advanced method is to use a utility AccuBattery in conjunction with ADB to collect logs, or use scripts that parse the file /sys/class/power_supply/battery/capacity (required root). If you have superuser rights, the command cat /sys/class/power_supply/battery/capacity can show the current percentage, and in folders charge_counter or similar - the current charge in mAh.
The ADB method is especially useful when the phone screen is broken or unresponsive, but the system is working. You can remotely monitor the state of charge and decide whether to urgently charge or turn off the device.
Analysis of physical characteristics and documentation
Sometimes software methods fail or show clearly incorrect data due to errors in the firmware. In such cases, it is worth referring to the physical characteristics of the device. The nameplate capacity of the battery is always indicated in the technical documentation, on the box or on the manufacturer's official website in the specifications section.
If you do not have a box, find the exact model of the smartphone in the settings (Settings → About phone) and enter the query in the search engine. Please note that the same model may come with different battery capacities depending on your region. Always check the markings on the battery itself if it is possible to remove the back cover.
On non-removable batteries, the markings are hidden under the case, but they can be found in spare parts databases. Knowing the battery model (for example BN43 for Xiaomi or EB-BG950ABA for Samsung), you can easily find its nominal capacity. Comparing this figure with application readings will show the real percentage of degradation.
| Battery condition | Remaining capacity | Recommended actions |
|---|---|---|
| Excellent | 90-100% | Continue normal use |
| Good | 80-89% | Monitor the discharge rate, avoid overheating |
| Satisfactory | 70-79% | Think about replacing, the operating time will decrease noticeably |
| Critical | Less than 70% | Urgent replacement, sudden shutdowns are possible |
The nominal capacity is the volume of the new battery. If the application shows 80% of this figure, then physical wear and tear is 20%, which is a natural process after 1.5-2 years of active use.
Remember that lithium-ion batteries have a limited cycle life. Typically, after 500 complete charge-discharge cycles, the capacity drops to 80% of the original. This is a normal physical process that cannot be corrected programmatically.
Calibrating the Android power controller
There is a situation when the battery is physically healthy, but the phone shows the wrong percentage of charge: it turns off at 15% or hangs at 100% for a long time. This indicates a desynchronization between the actual voltage on the bank and the data in the system file batterystats.bin. In this case, a calibration procedure is required.
The classic calibration method is as follows: completely discharge the device until it turns off automatically. Then, without turning it on, charge it to 100%. After reaching 100%, keep charging for another 1-2 hours. Then turn on the phone and check the charge level.
If the indicator shows less than 100%, reconnect the charger (you can directly while it’s on) and make sure it’s completely full. Repeat the discharge cycle until turned off and fully charged 1-2 more times. This will help the controller to “remember” the limits of the minimum and maximum voltage again.
☑️ Checklist for correct calibration
There is a myth that to calibrate you need to remove file batterystats.bin via Recovery. Modern versions of Android do this automatically every time it's fully charged, so manually tampering with the file system is often redundant and risky. It is better to trust the natural charging cycle.
⚠️ Attention: A deep discharge of 0% is harmful to the chemistry of a lithium battery. Do not use the full calibration method more than once every 3-6 months. Frequent full discharges accelerate battery degradation.
Factors affecting measurement accuracy
Why do different applications show different capacities? The fact is that measuring capacitance is an indirect calculation. The applications analyze the current flowing through the power controller and integrate it over time. Any sensor errors, background processes or device heating affect the final figure.
Temperature plays a critical role. At low temperatures (< 10°C), the chemical reaction inside the battery slows and the available capacity is temporarily reduced. Applications may detect this drop and erroneously report high wear. Always carry out diagnostics at room temperature (20-25°C).
It is also worth considering the age of the device. If the smartphone is more than 3 years old and you have never changed the battery, a health score below 75% is expected. In this case, searching for ways to “deceive” the system is useless - you need to physically replace the battery with a new one.
For maximum measurement accuracy in applications like AccuBattery, turn off Wi-Fi and the mobile network during the charging test to minimize background energy consumption.
Some manufacturers use non-standard power controllers, the data from which is difficult to correctly interpret for a third party software In such cases, the most reliable source remains the official service menu or diagnostics at an authorized center.
Frequently asked questions (FAQ)
Is it possible to increase the battery capacity programmatically?
No, the physical capacity of the battery cannot be increased. Software methods only allow you to calibrate the display of the charge percentage or limit the background activity of applications to save energy, but do not add milliamp-hours to the bank itself.
Why does the phone show 100%, but quickly discharges?
This is a sign of a “memory effect” (rare for Li-Ion) or, most often, severe degradation of one of the battery elements. The voltage drops quickly under load, although it is high at rest. It is also possible that there is a “parasitic” process in the system that is consuming resources.
Is it safe to use engineering menu codes?
Viewing information in the engineering menu is safe. The danger comes from changing parameters (for example, processor frequencies or voltage levels), which can lead to overheating or unstable operation of the device. Be careful and do not change settings without understanding the consequences.
How often should you check the battery condition?
It is enough to carry out diagnostics once every 3-4 months. Frequent checking does not make sense, since battery wear is a slow process. An unscheduled check should be done only if there is a sharp change in battery life.
Does fast charging affect battery wear?
Yes, high currents and heating during fast charging accelerate the chemical degradation of lithium. However, modern power controllers minimize this effect. To extend battery life, it is recommended to use regular charging (5-10 W) at night.