New APIs make it attainable to construct apps that can provide you an estimate concerning the state of your Pixel’s battery
Android 14 has been out for some time now in its beta type, however we’re nonetheless continually studying about new options hidden inside it. The newest in line is an API that permits you to verify how wholesome your battery nonetheless is, just like what Apple has provided on iPhones for some time. The one caveat is that proper now, you want a third-party app with privileged system entry to try your telephone’s stats, and even then it is not clear how correct the info is.
The brand new APIs accountable for displaying battery well being stats had been noticed by Mishaal Rahman some time in the past, however it appeared like they had been solely absolutely accessible for system apps (which signifies that Google desires so as to add a battery well being function to system settings on Pixel telephones in some unspecified time in the future). Nevertheless, it seems that third-party apps are additionally able to working with these privileged APIs with the assistance of a permission toggled on through ADB. developer @narektor took this activity upon himself and created a proof-of-concept app that’s able to wanting up a telephone’s battery well being stage.
Mishaal Rahman notes that your mileage might range, although. The app is not able to truly measuring battery well being itself — it solely serves as a method to show precisely what Google’s APIs inform it to. A number of the information is even blocked out because it’s confirmed to be incorrect, just like the “first utilization date,” which shows 2020-12-01 for a lot of no matter when it was truly first used. It is also unclear how precisely battery well being information is collected and saved. Given the shortage of an official UI for this from Google, it is even attainable that the APIs merely aren’t prepared to be used but.
In case you’ve already put in the Android 14 Beta in your Pixel telephone, you can provide the app a strive your self by downloading “Batt” from Gitlab. The app does a great job of guiding you thru the setup course of, together with a observe that you want to set up Shizuku to make use of it, a service that permits you to use system APIs with out having to fret a few command line interface.