Categories: Gadgets360

Android 14 Might Introduce Battery Health Feature, Apps Could Use APIs to Reveal Health Statistics

Android 14 could add support for a new feature that could give users insights into their device’s battery health. New application programming interfaces (APIs) found on the latest Android 14 beta could show details such as the health of the phone’s battery, the manufacturing date, when it was first used, how many charging cycles have been completed, and the charging policy. As these are provided using APIs, third party apps can also access some of the statistics, ahead of the expected arrival of battery health monitoring features when Android 14 is released later this year.

The new BatteryManager APIs were spotted by Esper’s Mishaal Rahman on the latest Android 14 beta. Two of these APIs that track battery charge cycles and the battery’s charging status are public, which means that third-party apps can access them. On the other hand, details such as charging policy, health state, and charging policy can only be accessed by system apps.

https://twitter.com/MishaalRahman/status/1664340669756743687?ref_src=twsrc%5Etfw

Battery health monitoring apps have existed on the Play Store for several years, with apps like AccuBattery and BatteryGuru offering estimates of battery health, without any APIs to rely on. Meanwhile, iPhone owners have had access to a battery health monitoring feature built into the settings app since iOS 11.3.

In order for a third-party app to gain access to these system APIs, you will need to grant it the BATTERY_STATS Android permission, according to Rahman. This is a permission that you can grant via a command line interface and a USB cable.

While Android 14 is still a few months away, developer Narek (Twitter: @narektor) has already published an open-source app that is capable of reading these statistics from the public and system APIs. If you are running Android 14 Beta 2 on your Pixel smartphone, you can download the open-source Batt app from GitLab.

It is worth noting that the app is merely a proof-of-concept and you should not rely on these details until Android 14 is released later this year. Rahman also points out that apps like Tasker will also add support for automation based on battery statistics provided by the system on Android 14. Similarly, if Google offers an inbuilt system like iOS to provide battery health statistics, it will curtail the need for third party apps to offer similar functionality.  


Apple’s annual developer conference is just around the corner. From the company’s first mixed reality headset to new software updates, we discuss all the things we’re looking forward to seeing at WWDC 2023 on Orbital, the Gadgets 360 podcast. Orbital is available on Spotify, Gaana, JioSaavn, Google Podcasts, Apple Podcasts, Amazon Music and wherever you get your podcasts.
admin

Recent Posts

Beyoncé’s NFL Christmas Halftime Show Now Streaming on Netflix: Everything You Need to Know

Beyoncé's much-anticipated halftime performance, part of Netflix's NFL Christmas Gameday event, is set to release…

10 months ago

Scientists Predict Under Sea Volcano Eruption Near Oregon Coast in 2025

An undersea volcano situated roughly 470 kilometers off Oregon's coastline, Axial Seamount, is showing signs…

10 months ago

Organic Molecules in Space: A Key to Understanding Life’s Cosmic Origins

As researchers delve into the cosmos, organic molecules—the building blocks of life—emerge as a recurring…

10 months ago

The Secret of the Shiledars OTT Release Date Announced: What You Need to Know

Director Aditya Sarpotdar, following his successful venture "Munjya," has announced the release of his treasure…

10 months ago

Anne Hathaway’s Mothers’ Instinct Now Streaming on Lionsgate Play

The psychological thriller Mothers' Instinct, featuring Anne Hathaway, Jessica Chastain, and Kelly Carmichael, delves into…

10 months ago

All We Imagine As Light OTT Release Date: When and Where to Watch it Online?

Payal Kapadia's award-winning film, All We Imagine As Light, will soon be available for streaming,…

10 months ago