To describe the issue better I need to define the word "total uptime". We all know what the uptime is: a number of hours since the last reboot i.e. the amount of time when the phone was on. I want to know the same number but throughout the entire device lifetime, I want to know how many hours (days, weeks) the phone was powered on since the production date.
Is there any programmatic way to obtain this info via ADB or any other toolset? Can a battery health be an estimator? Does it have any measurable metrics of wear?
I am interested in all ways, both for rooted phones and not. My device is Samsung S21, but I'm interested for generic way which will work for all vendors.