Try Accubattery, it's pretty good for the health check of the battery.
Android
DROID DOES
Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
We are Android girls*,
In our Lemmy.world.
The back is plastic,
It's fantastic.
*Well, not just girls: people of all gender identities are welcomed here.
Our Partner Communities:
tried it, that's the opposite of what I need. that app guesses what's going on with the battery, based on prolonged usage patterns. I need something that talks to the battery controller and gives me numbers I can use.
It can do a health check, just requires 1 or 2 full discharge/recharge cycles.
It measures current consumed during the charges and compares that to the battery specs.
Over the years I've found it pretty accurate. I keep multiple phones of the same type with the exact same OS/app build out, and can see the difference in battery health between old/new, and see it reflected in battery life when using either one.
I keep phones forever, and run AB on them once or twice a year, and it consistently shows their health dropping. I lose about 7-10% health per year, and that's reflected in reduced battery life during a day.
One phone is down to about 40%, and even with Lineage you can tell. It can run for a couple hours before needing a charge, while the 83% health phone goes most of a day. Again, same hardware, same OS, same apps, same usage.
Yeah you're right, it guess the battery health based on prolonged usage. I'm not sure what you are looking for exists in stock Android ROM. It's very possible that info is restricted to the system, so apps cannot access it.
Let us know if you find something, I would be very interested.
The best info you can get on "battery capacity" is what the battery controller exposes and even that's just an educated guess on its side. It's no different on macOS but at least there you have a somewhat standardised interface for this kind of information; allowing apps to access it in a generic way.
If your controller firmware doesn't expose the info to the kernel, you won't be getting it, sorry.
I doubt this is a hardware issue though. Even a battery at 80% capacity won't lose it all overnight when the device is actually in deep sleep.
With this many services each doing their own power management, I would not be surprised if it never got there. Do a bug report and analyse it using battery historian to get an idea of where the power draw comes from.
An easier test would be to simply shut all of those services down for a given time frame, measure power draw (%/h) and compare to when all of them are running. Safe mode might come in handy here as you can be sure there's no user app running in that state. If it's many % per hour in that state, there's either an issue with the OS or indeed the HW.
Soon this will be built into the OS: https://www.theverge.com/2023/12/21/24011265/android-battery-health-indicator-features
I use this app, but it only works in Android 14: https://apt.izzysoft.de/fdroid/index/apk/com.porg.batt
Try acca and acc. Dunno if will help but it's good for charge limits. It van be hit or miss though. If your going to try change acc versions if it doesn't work