Google is committed to advancing racial equity for Black communities. See how.
- Check Samsung Battery Health
- Android Battery Testing App
- Android Battery Tester
- Laptop Battery Tester App
- Android Battery Test Code
You can determine device power consumption for Android devices that include a battery fuel gaugesuch as a Summit SMB347 or Maxim MAX17050 (available on many Nexus devices). Use the in-systemgauge when external measurement equipment is not available or is inconvenient toconnect to a device (such as in mobile usage).
Mar 26, 2020 Best battery apps for Android and iOS Battery HD (Image credit: smallte.ch) Battery HD is niftiest-looking entries on our list of best battery apps. And that appearance is all about showing off. You don't have to register an actual BroadcastReceiver as Android's BatteryManager is using a sticky Intent: IntentFilter ifilter = new IntentFilter(Intent.ACTIONBATTERYCHANGED); Intent batteryStatus = registerReceiver(null, ifilter); int level = batteryStatus.getIntExtra(BatteryManager.EXTRALEVEL, -1); int scale = batteryStatus.getIntExtra(BatteryManager.EXTRASCALE, -1); float batteryPct. Battery health is a big deal—perhaps now more than ever, with the whole iPhone slowdown debacle. While that in itself doesn’t necessarily have any bearing on Android phones, keeping your device’s battery health in mind is never a bad idea. The thing is, there isn’t an easy or built-in way to check your battery health on Android. PCMark for Android introduces a fresh approach to benchmarking smartphones and tablets. It measures the performance and battery life of the device as a complete unit rather than a set of isolated components. Oct 15, 2020 To enter these codes just pull up the default dialer app and use your chubby fingers to press the correct buttons. Code Description.#.#4636#.#. Display information about Phone, Battery and Usage.
Measurements can include instantaneous current, remaining charge, battery capacity at test startand end, and more depending on the supported properties of the device (see below). For bestresults, perform device power measurements during long-running A/B tests that use the same devicetype with the same fuel gauge and same current sense resistor. Ensure the starting battery chargeis the same for each device to avoid differing fuel gauge behavior at different points in thebattery discharge curve.
Even with identical test environments, measurements are not guaranteed to be of high absoluteaccuracy. However, most inaccuracies specific to the fuel gauge and sense resistor are consistentbetween test runs, making comparisons between identical devices useful. We recommend runningmultiple tests in different configurations to identify significant differences and relative powerconsumption between configurations.
Reading power consumption
To read power consumption data, insert calls to the API in your testing code.
Available properties
Android supports the following battery fuel gauge properties:
Most properties are read from kernel power_supply subsystem attributes of similar names.However, the exact properties, resolution of property values, and update frequencyavailable for a specific device depend on:
- Fuel gauge hardware, such as a Summit SMB347 or Maxim MAX17050.
- Fuel gauge-to-system connection, such as the value of external current sense resistors.
- Fuel gauge chip software configuration, such as values chosen for average current computationintervals in the kernel driver.
For details, see the properties available for Nexus devices. Tenorshare icarefone 2 2 1 0 download free.
Maxim fuel gauge
When determining battery state-of-charge over a long period of time, the Maxim fuel gauge(MAX17050, BC15) corrects for coulomb-counter offset measurements. For measurements made over ashort period of time (such as power consumption metering tests), the fuel gauge does not makecorrections, making the offset the primary source of error when current measurements are too small(although no amount of time can eliminate the offset error completely).
For a typical 10mOhm sense resistor design, the offset current should be better than 1.5mA,meaning any measurement is +/-1.5mA (PCBoard layout can also affect this variation). For example,when measuring a large current (200mA) you can expect the following:
- 2mA (1% gain error of 200mA due to fuel gauge gain error)
- +2mA (1% gain error of 200mA due to sense resistor error)
- +1.5mA (current sense offset error from fuel gauge)
The total error is 5.5mA (2.75%). Compare this to a medium current (50mA) where the same errorpercentages give a total error of 7% or to a small current (15mA) where +/-1.5mA gives a totalerror of 10%.
For best results, we recommend measuring greater than 20mA. Gain measurement errors aresystematic and repeatable, enabling you to test a device in multiple modes and get clean relativemeasurements (with exceptions for the 1.5mA offset).
For +/-100uA relative measurements, required measurement time depends on:
- ADC sampling noise. The MAX17050 with its normal factory configuration produces +/-1.5mAsample-to-sample variation due to noise, with each sample delivered at 175.8ms. You can expect arough +/-100uA for a 1 minute test window and a clean 3-sigma noise less than 100uA (or 1-sigmanoise at 33uA) for a 6 minute test window.
- Sample Aliasing because of load variation. Variation exaggerates errors, so for sampleswith variation inherent in the loading, consider using a longer test window.
Supported Nexus devices
Nexus 5
Model | Nexus 5 |
---|---|
Fuel Gauge | Maxim MAX17048 fuel gauge (ModelGauge™, no coulomb counter) |
Properties | BATTERY_PROPERTY_CAPACITY |
Measurements | The fuel gauge does not support any measurements other than battery State Of Charge to aresolution of %/256 (1/256th of a percent of full battery capacity). |
Nexus 6
Model | Nexus 6 |
---|---|
Fuel Gauge | Maxim MAX17050 fuel gauge (a coulomb counter with Maxim ModelGauge™ adjustments), and a 10mohmcurrent sense resistor. |
Properties | BATTERY_PROPERTY_CAPACITY BATTERY_PROPERTY_CURRENT_NOW BATTERY_PROPERTY_CURRENT_AVERAGE BATTERY_PROPERTY_CHARGE_COUNTER BATTERY_PROPERTY_ENERGY_COUNTER |
Measurements | CURRENT_NOW resolution 156.25uA, update period is 175.8ms. CURRENT_AVERAGE resolution 156.25uA, update period configurable 0.7s - 6.4h, default 11.25 secs. CHARGE_COUNTER (accumulated current, non-extended precision) resolution is 500uAh (raw coulombcounter read, not adjusted by fuel gauge for coulomb counter offset, plus inputs from the ModelGaugem3 algorithm including empty compensation). CHARGE_COUNTER_EXT (extended precision in kernel) resolution 8nAh. ENERGY_COUNTER is CHARGE_COUNTER_EXT at nominal voltage of 3.7V. |
Nexus 9
![Android Battery Test Android Battery Test](https://ae01.alicdn.com/kf/HTB1FR0gXx2rK1RkSnhJq6ykdpXaP/Autool-BT-BOX-Bluetooth-Automotive-Battery-Tester-for-Android-IOS-Phone-Car-battery-Charging-Cranking-Test.jpg)
Model | Nexus 9 |
---|---|
Fuel Gauge | Maxim MAX17050 fuel gauge (a coulomb counter with Maxim ModelGauge™ adjustments), and a 10mohmcurrent sense resistor. |
Properties | BATTERY_PROPERTY_CAPACITY BATTERY_PROPERTY_CURRENT_NOW BATTERY_PROPERTY_CURRENT_AVERAGE BATTERY_PROPERTY_CHARGE_COUNTER BATTERY_PROPERTY_ENERGY_COUNTER |
Measurements | CURRENT_NOW resolution 156.25uA, update period is 175.8ms. CURRENT_AVERAGE resolution 156.25uA, update period configurable 0.7s - 6.4h, default 11.25 secs. CHARGE_COUNTER (accumulated current, non-extended precision) resolution is 500uAh. CHARGE_COUNTER_EXT (extended precision in kernel) resolution 8nAh. ENERGY_COUNTER is CHARGE_COUNTER_EXT at nominal voltage of 3.7V. Accumulated current update period 175.8ms. ADC sampled at 175ms quantization with a 4ms sample period. Can adjust duty cycle. |
Nexus 10
Model | Nexus 10 |
---|---|
Fuel Gauge | Dallas Semiconductor DS2784 fuel gauge (a coulomb counter), with a 10mohm current senseresistor. |
Properties | BATTERY_PROPERTY_CAPACITY BATTERY_PROPERTY_CURRENT_NOW BATTERY_PROPERTY_CURRENT_AVERAGE BATTERY_PROPERTY_CHARGE_COUNTER BATTERY_PROPERTY_ENERGY_COUNTER |
Measurements | Current measurement (instantaneous and average) resolution is 156.3uA. CURRENT_NOW instantaneous current update period is 3.5 seconds. CURRENT_AVERAGE update period is 28 seconds (not configurable). CHARGE_COUNTER (accumulated current, non-extended precision) resolution is 625uAh. CHARGE_COUNTER_EXT (extended precision in kernel) resolution is 144nAh. ENERGY_COUNTER is CHARGE_COUNTER_EXT at nominal voltage of 3.7V. Update period for all is 3.5 seconds. |
Battery life is one of the key features that most consumers want to see upgraded in their new phone, even ahead of slimmer designs and faster processors. Ironically, having the longest battery life doesn't really sell more phones, while other more visible features certainly do. To be fair, from the dozens of phones we've tested in the past couple of years, very few have had terrible battery performance. But what's great and what's not in today's market?
For this article, we’ll be looking at over 500 hours of battery life testing across 12 tests, to ensure we have the best possible picture of how current generation phones perform. On the test bench today is basically every high-end Android phone we’ve reviewed in the last 12+ months. We haven’t been able to test every single phone on the market, but we are covering all the big guns, including the Samsung Galaxy S8+, LG G6, HTC U11, Huawei P10, OnePlus 5, Google Pixel XL and more. Every phone we are testing is currently available to purchase, with prices ranging from $400 upwards.
Along with camera quality, one of the most important aspects to any smartphone is its battery life
It’s worth mentioning that every phone has been tested in the same way, under the same conditions. There’s no subjectivity or usage opinions here; we ran every phone through repeatable tests, collected the numbers, and put them into easy-to-read charts for your viewing pleasure.
Phone | Battery Capacity | Display Size |
Google Pixel XL | 3,450 mAh | 5.5-inch |
HTC U Ultra | 3,000 mAh | 5.7-inch |
HTC U11 | 3,000 mAh | 5.5-inch |
Huawei P10 | 3,200 mAh | 5.1-inch |
Huawei Mate 9 | 4,000 mAh | 5.9-inch |
LG G6 | 3,300 mAh | 5.7-inch (18:9) |
Motorola Moto Z2 Play | 3,000 mAh | 5.5-inch |
OnePlus 5 | 3,300 mAh | 5.5-inch |
Samsung Galaxy S8+ (Exynos) | 3,500 mAh | 6.2-inch (18.5:9) |
Xiaomi Mi 6 | 3,350 mAh | 5.15-inch |
Let’s get on with the benchmarks!
We have two web browsing tests that we have performed on Wi-Fi, the results above belong to the more intensive of the two.
There seems to be a performance floor of around five hours, where phones like the OnePlus 5 and LG G6 sit. Like most tests, this one does favor large batteries and smaller displays, which is why the Xiaomi Mi 6 performs very well.
Larger phones – those with 5.5-inch or larger displays – that don’t opt for larger-than-average batteries tend to perform down the bottom. The end result is opting for something like the Xiaomi Mi 6 over the OnePlus 5 could give you 85% more battery life.
Our second Wi-Fi browsing test is less intensive and more closely reflects 'real-world' web browsing scenarios. There is a bit of a shuffle at the top end, with the Mate 9 taking the lead over the Mi 6, however devices like the LG G6 and HTC U11 still fall at the bottom. The median result on this test is around eight hours, so phones like the G6 don’t hold up well.
Switching from Wi-Fi to 4G LTE in the same test negatively impacts the battery life of every single phone in our testing group, except for the Huawei P10, which remains on-par with its Wi-Fi result. The general order of phone's performance is similar though.
On average, battery life is reduced by 16% when switching from Wi-Fi to LTE. If you thought you were saving battery by disabling Wi-Fi for transferring data, think again.
On average, battery life is reduced by 16% when switching from Wi-Fi to LTE
The Exynos Galaxy S8+ dropped the most, at 27%, while Snapdragon flagships tended to fall consistently in the 19 to 24 percent decrease range. This supports most reports that suggest the integrated modem in Snapdragon SoCs is more efficient than their Exynos counterpart, though only marginally.
The last browser test we performed is Basemark Web 3.0, which is a processor-intensive workload that pushes phones to their limits, both on the CPU and GPU fronts. The Moto Z2 Play succeeds here because it doesn’t have a top end SoC, despite costing $500; the Snapdragon 626 instead uses its lower performance and therefore lower power consumption to its advantage, more than doubling the battery life of some other phones.
Here you can appreciate the efficiency advantage of Qualcomm's high-end Snapdragon SoCs relative to its Exynos and Kirin competition. The Galaxy S8+, for example, has a 3,500 mAh battery but is beaten by the roughly 3,300 mAh batteries in the LG G6 and Xiaomi Mi 6.
The Huawei Mate 9, despite having a 4,000 mAh battery, gets crushed.
Check Samsung Battery Health
PCMark is one of my favorite tests because it represents a wide variety of typical smartphone tasks. Phones that score well in this battery test tend to have the best 'real world' battery life throughout a day of typical use.
Once again we see a strong result from the 5.15-inch Xiaomi Mi 6, and weaker results from better known flagships like the LG G6 and HTC U11. The Galaxy S8+ sits in the middle of the pack with a respectable result.
![Tool Tool](https://ae01.alicdn.com/kf/HTB1xJTYPVXXXXcpaXXXq6xXFXXXg/2018-Newest-Battery-System-Tester-AUTOOL-BT-BOX-Car-Diagnostic-Battery-Tester-for-iOS-Android-Vehicle.jpg)
Android Battery Testing App
There’s another PCMark battery test available, which uses the newer and more intensive Work 2.0 workload. The general order of phones remains very similar, although the Pixel XL slips down a few places.
How long can you game on these flagship phones? GFXBench will give us a good idea, starting with the older and less intensive T-Rex test. Results here are varied, with some odd outliers like the OnePlus 5 significantly outperforming other handsets.
GFXBench Manhattan 3.1 is a much, much more intensive test that sucks up battery life and throttles SoCs like nothing else. Interestingly, there is not necessarily strong correlation between a greater level of throttling and longer battery life. The U11 lasts the longest of the Snapdragon 800-series flagships, however the Xiaomi Mi 6 throttles more and the LG G6 throttles around the same amount.
Android Battery Tester
There are two notable results here: the Exynos-powered Galaxy S8+ and Huawei P10 both throttle significantly, but neither can match the HTC U11 or Xiaomi Mi 6.
Laptop Battery Tester App
The Huawei P10 in particular throttles by nearly 50 percent yet it falls almost at the bottom of the chart. Clearly the GPU in the Kirin 960 is not efficient.
Android Battery Test Code
Article Index