yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] lbreak:
This thread is proof for us all that Android will forever remain a Beta OS.

The pain one has to go through to figure out what's killing their battery is not worth the time wasted in anyone's life.

Just remember, this thread started 9 years ago, and people are still having massive problems with their Android battery life.

Every major release of Android promises better batter management etc but it never comes to fruition.

Gingerbread in 2011 was meant to improve battery efficiency - it didn't

KitKat in 2013 disabled 3rd party access to detailed battery stats - so they could hide their poor battery performance and make it harder for everyone to figure out what's going on

Lollipop in 2014 introduced project Volta to better manage battery efficiency - it was so good (not) that the project ended in the next release of Android

Marshmallow in 2015 introduced Doze (as Volta did nothing) - we've had multiple versions of Doze, but Android apps continue to kill your battery hiding behind anonymous wakelocks and Android System

We've had multiple versions of Doze since, with every release promising better battery performance and standby management. It's all resulted in very little improvements.

In the end the Android OS is a very poorly designed system that allows apps to destroy your battery in no time unless your OCD managing every detail on your phone on a daily basis, which sort of defeats the purpose of it being a "Smart" phone.
[BetterBatteryStats] vojopd:
I agree.. Since note 3 (4.4.2 I think) I have had problems with battery. S7 edge, note 8, now s10 plus, NOTHING has changed. I am so dissapointed and mad, because this is (was 9 months ago) a 1000€ phone. Now it barely costs 500 euros, used, and its price is dropping very fast. Software updates are faster than before, but still slow. And I hate I always have to look what is draining mt battery (BBS, gsam battery monitor, etc...)

And newest update on 10, s*cks. It should be called 9.1. Nothing new (new gestures that arent supported by 3rd party launchers and wont be in near future, because google did that on purpose, cosmetic changes and nothing else). When updating phone, it has 422 installed apps. 422, hello?! Ridiculous. That why I am switching to iPhone 11 pro max in future. I even sold my Galaxy Watch. I think this will be goodbye to Samsung, just because they dont care about their customers.
[BetterBatteryStats] DB126:
More a reflection of devices vs Android itself. Samsung's heavy handed skin and app portfolio (much of which can't be easiky removed) can be rough on batteries when left in default configuration. One can contain drain on these platforms but it takes work - time I'd rather invest elsewhere. iPhone 11 series are certainly nice devices but not without fault. Given the choice I'd take iPhone over Samsung and several other Android based phones over either of those. Good luck with whatever path you take.

---------- Post added at 02:41 AM ---------- Previous post was at 02:19 AM ----------

Clearly an Android fan (lol).

I respectfully disagree with such broad generalizations as each Android generation (post Lollipop) has seen clear structural improvement in power management methodologies/policies/toolsets that generally do not require user direct engagement to realize benefits. As with automobile fuel efficiency YMMV and individual use cases do not tell the whole story.

Your mind is made up; no illusion of changing that. Sure - this thread will remain "active" with a few dozen posts a month which is far less than in previous years. Most remediations are app and/or hardware oriented vs issues with core OS. No matter, Android suks. Social told me so.

Let's see - how may Android devices out there, a billion or so give or take a few hundred million? And how many more imbedded sensors are in modern devices - not to mention always active social apps that are netorious power pigs. Naa, none of that matters either. Refer to last sentence in previous paragraph.

Mods: I know, I know...don't feed the trolls. I hang my head in shame.
[BetterBatteryStats] lbreak:
I use both the Galaxy Note 10 & iPhone 11 Pro Max at the moment. Last year Note 9 and iPhone XS Max.

The iPhone battery is infinitely more reliable than the Note 10. The other day I got almost 8 hrs of SoT using the iPhone including 3 hrs of Call of Duty (Heavy battery drainer!) over a 21 hr period.

My Note 10 was down to 40% battery with 2.5 hrs of SoT the same day.

Over the last 8 years I've always had 2 phones an Android (mostly Samsung) + iPhone. I've probably had 2 battery drain issues in 8 years of iPhone which got resolved with a simple restart on the same day.

I've probably had 2 days of no battery issues on Android in the same period of time. What a waste of time! That's not even getting into fast updates, updates are supported for around 5 years, app performance, app quality. Android is simply Beta in comparison.

---------- Post added at 01:33 PM ---------- Previous post was at 01:26 PM ----------

iPhone has the same sensors and same apps, but it massively outperforms Android in standby time and always has.
[BetterBatteryStats] DB126:
Multiple Andriod and iPhone handsets in the family crossing several generations. I have seen good and bad on both sides. Your last statement is a reflection of personal experience which I do not doubt. But it does not generalize to Android vs iOS. As for hardware, sensor suite is most definitely not the same across models and platforms once one gets past the givens like accelerometers, gps, etc.

Folks love absolutes and extending individual data points into irrefutable truisms that encompass everything everywhere with copious superlatives. Which leads to nowhere that has any factual basis. But it does play well on social ...

Seriously, if you are so down on Android why continue to invest in the ecosystem? iPhones are excellent devices that have only improved over the years. We have two XRs and a pair of 11s in the family at present with few complaints. Also have a number of Androids that fully satisfy their owners. Filling the cat box with Android vs iPhone comparisons got old long ago. To each his own; there is a device for everyone.

As an aside, SoT is a ridiculous metric (even across identical devices) unless normalized for things like panel brightness, active vs passive time, signal strength (all radios), permitted background CPU use, sensor activity and a bunch of other variables.

[--]

Too much OT for this thread; going to end it here.
[BetterBatteryStats] lbreak:
I have had enough experience over the years with family and friends phones, being the tech who they come to for issues, to know that Android is laughable when it comes to battery life. The No1 complaint about Android is random standby battery drain across many years and devices. iPhone users generally have no complaints other than wanting some help in backing or setting something up.

SoT comparisons are very very useful.
[BetterBatteryStats] TNSMANI:
MOD EDIT:

Gentlemen, enough OT here. Please stop this Android vs IOS nonsense here. This has nothing to do with BBS.

Rule 15 of XDA's Rules:

Please adhere to the Rules.
[BetterBatteryStats] DB126:
Déja vu:

https://xdaforums.com/showthread.php?t=1179809&p=79929311
[BetterBatteryStats] mrjuniork:
I think the part with "minor amount of off-topic" is totally acceptable in reference to the previous discussion here. With more than 3600 pages I consider a cleansing a little too edgy, coz I enjoyed reading the different perspectives. And far stretched, there is a correlation between previous posts and BBS.. I'm sure the OP wouldn't have had any problems with it.. Just my opinion.
[BetterBatteryStats] Lughnasadh:
Absolutely agree 100%. "What is your SOT?" is the most ridiculous question still being asked.
[BetterBatteryStats] jukyO:
Is this normal?
[BetterBatteryStats] strongst:
Hello,

you might want to share a dump file according to the instructions in the first post to receive an appropriate answer.

Only one picture does not contain suitable information to answer your questions like you want it to be answerd ;)
[BetterBatteryStats] jukyO:
Ok, will leave overnight and share then.
[BetterBatteryStats] satti8893:
My device went from 57 to 44 overnight. I have attached the logcat. Can you please tell me what exactly is draining my battery?
[BetterBatteryStats] githyanki:
Screen On (): 2 h 37 m 28.2%

Please make a new dump with less than 1 minute screen on time.
[BetterBatteryStats] robi10101298:
Hello guys, I don't know what to do so I'm hoping to find some help from you...I tried to flash every single ROM for MI 9T, I can't get more than 4-4.5h SOT, I tried anything from Pixel Experience, MIUIMIX, MI Globe, Xiaomi EU, nothing seems to help me..Now I'm stuck with Miui MIX and I can get 4H SOT with bluetooth connection (mi band 4) always on, location on and 4g/ wifi always on..Any ideas what can I do to have at least 5-6h SOT? I saw people that are having 8H SOT which is really amazing..I can't even resist to a full day, I'm feeling like I'm using my old iPhone SE... :(
[BetterBatteryStats] DB126:
This thread can not directly help with 'active use' longevity but can assist with identifying background drainers that may impact overall battery life. But I don't think that's the issue. Seems like you are approaching the limits of your device given the stated hardware configuration. Want to stretch battery life? Lower screen brightness (#1 power consumer), turn off unused radios, disable GPS, etc. Changing ROMs will do little to alter the equation; they all draw about the same power all else being equal. Those dudes who claim extraordinary endurance probably have taken most of the steps noted above. Good luck.
[BetterBatteryStats] robi10101298:
My drain it's currently at 10%/h with screen and 2% on idle which I think it's still huge...
[BetterBatteryStats] githyanki:
Then please submit an idle dump as per the directions in the OP and someone should be able to look into what's causing the idle drain. This may help with the active drain a little.
[BetterBatteryStats] DB126:
10%/hr with screen on is typical and should yield the desired "SOT" even with active apps. 2%/hr idle drain is elevated and suggests something is leaching power when the screen is off. Submit log for analysis as suggested.
[BetterBatteryStats] crazy4jack:
I have wakelock on my Z play moto runing Lineage 15.1 and its on every build so i install BBS and i dont know how to read :( i dont see what specific app doing this, can someone help me discover this?
[BetterBatteryStats] TNSMANI:
Yes, but only if you post an idle dump file as per the instructions in the OP.
[BetterBatteryStats] bukanpasarmalam:
Hello, I was wondering why this cellphone always had less battery when I was sleeping. In fact, only wifi is active. I tried to do what the OP said to do the report. So here goes, every hour my battery is reduced by 1.5% and that's weird. If I could be helped to analyze. thanks.
[BetterBatteryStats] jukyO:
Hello,

Please find attached logs from 10 hours of overnight usage.

Also, attached screenshot.

Is it normal to have 10 wakeups per hour from Android /Google?
[BetterBatteryStats] TNSMANI:
Mainly WhatsApp, Instagram. In addition, the ColorOS push notification feature also seems to play a major part. If you can contain these, I think your drain rate will improve.

Let the others also comment.
[BetterBatteryStats] TNSMANI:
Location seems to be on or scanning for wifi/BT seems to be enabled. You don't need it while sleeping.

More than 21 MB download happened in the background, mostly by Google Docs. May not happen everyday but one of the sources of drain on this day.

The Significant Motion Detector sensor was held awake by Play Services for nearly the whole time. Try clearing the data and cache of the Play Store app.

Let others also comment.
[BetterBatteryStats] strongst:
Can't find something bad. Do you use mods or stock rom? Did you tried to factory reset to exclude any software related issues?
[BetterBatteryStats] DB126:
While the items noted contributed idle drain I believe poor signal is the bigger issue. Even though mobile data was disabled the radio remained active with modest signal strength. I'd try with WiFi off / mobile data on. Make sure WiFi scanning is disabled; that can be a killer if other location data is indecisive.
[BetterBatteryStats] jukyO:
Scanning is off. Location is on for some apps, now I set all of those to use location only when in use.

Cleared data/cache for Play store. Will see now will drainage will reduce.

Thank you!

I use only xXx ROM mod + Omega kernel.
[BetterBatteryStats] strongst:
Ok, it's worth to do the following after you monitored the drain for the tips of [MENTION=5656100]TNSMANI[/MENTION].

-Flash stock kernel. Make a new dump file.

-if it is not better afterwards, deactivate/uninstall xXx Mod(maybe some xXx mods going roque).

-if it's not better afterwards. Clean flash. Make a new dump file
[BetterBatteryStats] bukanpasarmalam:
Thank you for being helped in the analysis. It seems that the wifi signal is really my battery drain problem. Well, now I am trying to turn on cellular data, the results are quite good. When using wifi reduced by 1.6%, with data reduced by 1.1%. But still, I'm curious why the battery drain is still quite high. I attach this dump with the use of data packages.
[BetterBatteryStats] DB126:
As noted by [MENTION=5656100]TNSMANI[/MENTION] it's likely the social apps and related support services. Do you really need realtime Instagram and Reddit updates overnight? Tough questions whose answers vary by individual. How about Play Store app updates? Maybe batch those once/week. Decide if you want to keep ocamp enabled 7x24; that sucked up some juice too. Or just plug in overnight and don't sweat the small drains.
[BetterBatteryStats] munted:
Would some very kind person be able to have a look at my dump?

I went from a Pixel 2 XL to a Samsung S10e, using the same apps and same usage, my Pixel 2 XL used to have around 3 hours SOT and be around 40-50% battery by the end of the day. With my new S10e I have less SOT of around 2 hours (because the battery drain is so bad) and end up with 10-20% battery at the end of the day. But the problem is when the screen is off the battery drain is terrible, you can see from this log the phone is awake Awake (Screen Off) 90.4% but the Deep Sleep is only 7.4% :(

I don't know what is causing the battery drain, I thought it might be Chrome so I disabled it but that doesn't seem to have helped. Disabling Samsung's Always on Display doesn't seem to help either :(
[BetterBatteryStats] munted:
The dump in the previous post was basically my commute home from work then I let me phone sit for a while and I made sure not to turn the screen on the whole time and I had a drain of 3.0% per hour and only 7.4% deep sleep.

I did another dump which was interesting, last night I charged up my phone, went to Settings then Device Care and then Optimize which closes background apps. That dump is attached but has a drain of 0.7% per hour and 88.3% deep sleep. I don't know how to intemperate these results well enough to tell what's causing the extra drain between the two dumps. I'm a bit sad that my new phone has such terrible battery life when I use it the same as my old phone. I never closed any background apps or even installed BetterBatteryStats on it because the battery on the Pixel 2 XL was fine.
[BetterBatteryStats] DB126:
A device in motion is susceptible to being held awake by apps that utilize location services. Use the build in battery app (augmented by more powerful tools under developer options) to identify offenders and decide if action is warrented.

Samsung devices are notoriously 'alert' due to the number of pre-loaded apps that are watching...always watching. The hardware itself is not a power suck as evidenced by the overnight idle study which returned a respectable 0.7%/hr idle drain rate. That can be incrementally improved, but should not be the initial focus given your concern with so called "SOT".

Try disable Bluetooth/Wifi scanning which are enabled by default in most Android builds. Consider temporarily disabling location services to see if location tracking and excessive use of hardware GPS is contributing to drain. Look through Samsung's huge cache of built-in apps and decide which ones are beneficial; disable the rest. Make sure screen brightness is at a reasonable level as the panel is the #1 power draw during active use.

I would advise against any guidance that suggests unlocking/rooting your device and/or using a custom kernel or ROM solely to achieve better power utilization. Once upon a time such techniques held merit. All the tools you need to rein in bad behavior are already baked into the stock ROM. Good luck.
[BetterBatteryStats] turbotwo:
If someone is willing to take a look at my log file it would be greatly appreciated. Apologies in advance that it's not totally in compliance with the recommendations in the first post. I charged it to 100% unplugged it, and then left it undisturbed on my night stand for around 7 hours and the battery dropped 10% which is what I've typically been seeing. Also, my alarm was set for 6:50 am, but I woke up around 5am and noticed my ambient display was on and it was notifying me that there is an upcoming alarm. The display seemed to stay on for a few minutes. I didn't touch the phone.

The item that stands out to me the most is the 3 hours of wifi time. Ideally, should this be near zero, or should it be connected to wifi all night? Any insights would be appreciated.

Thank you.

https://drive.google.com/open?id=1EHwB0lNesE5tI8-xH95AeknjLbrpke_4
[BetterBatteryStats] DB126:
Sleep/wake ratio looks fine as does background app activity (within norms). Look for other hardware culprits such as weak radio signals, frequent panel illumination, etc which are not directly measured by BBS. Make sure both mobile and WiFi signals are strong you choose to keep both enabled. If not certain disable the WiFi radio as it's almost impossible to fully disable the mobile radio on modern devices.
[BetterBatteryStats] turbotwo:
Thanks for taking a look, I'll try disabling wifi tonight and see if it makes a difference.
[BetterBatteryStats] kazik56:
I cannot finish the adb commands part. When I enter the last command

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.PACKAGE_USAGE_STATS

it throws an Security exception:

Security exception: Package com.asksven.betterbatterystats_xdaedition has not requested permission android.permission.PACKAGE_USAGE_STATS

java.lang.SecurityException: Package com.asksven.betterbatterystats_xdaedition has not requested permission android.permission.PACKAGE_USAGE_STATS
at com.android.server.pm.permission.BasePermission.enforceDeclaredUsedAndRuntimeOrDevelopment(BasePermission.java:389)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:2374)
at com.android.server.pm.permission.PermissionManagerService.access$1100(PermissionManagerService.java:131)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:3240)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:6407)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:25740)
at android.os.Binder.shellCommand(Binder.java:642)
at android.os.Binder.onTransact(Binder.java:540)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3315)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4737)
at android.os.Binder.execTransact(Binder.java:739)

My phone is Samsung Galaxy S9, on Android 9. Is this common?
[BetterBatteryStats] munted:
A big thanks for your help, disabling turning Location off in the settings does actually seem to of helped the battery life quite a lot.

I'm not sure where Wifi scanning is in the settings or is that just turning Wifi off?

Where's the best place to disable Samsung's built in apps? Is that under Settings -> Developer Options -> Background Check?

You mentioned Developer Tools, is there anything else I should have a look at you reckon?
[BetterBatteryStats] Oswald Boelcke:
Screenshots are from a Samsung S8+/SM-G955F with LOS16/GApps free. Maybe the settings look slightly different on your device.

Even with WiFi disable, when WiFi scanning is enabled the device regularly turns WiFi on. From my point of view this is also a breach in privacy e.g. if your downtown for shopping.

You'll find WiFi scanning (and btw. Bluetooth scanning) at Settings => Security & Location => Location / See all => Scanning

As I've said the device is on LOS i.e. no Samsung bloatware but you can disable the Samsung application (unless rooted you won't be able to uninstall them) via Settings => Apps & Notification => select the respective app and click "disable".
[BetterBatteryStats] DB126:
Scanning toggle(s) are usually located in the connections section on Sammy ROMs. Better yet, use the search function vs wadding through screens :)

No need to proactively disable apps (Samsung or otherwise) unless an item is demonstrating or suspected of 'bad behavior' - which itself is subjective. As previously noted use the built in battery tool to find the biggest offenders and focus there. Also consider the merits of hyper optimization; I assume you purchased the device to use vs manage. If idle drain is <1% or less on that big boy declare victory and move on.

tldr: careful of the xda lemonade
[BetterBatteryStats] -sandro-:
Can you tell why I'm losing battery charge while not using it so fast?

View attachment BetterBatteryStats-2020-01-20_080105808.txt
[BetterBatteryStats] TNSMANI:
The dump file is not useful. It is hardly for 50 mts against the requirement of 6+ hrs. Screen on time is in excess of 2 mts against the requirement of less than a minute.

Please read the OP to know how to create an idle dump and post it here.
[BetterBatteryStats] suvam69:
Can't go past this screen on Android Q unrooted

6t
[BetterBatteryStats] guhvanoh:
Read what it says after the last red bit and do that...
[BetterBatteryStats] stanvv89:
My situation:

owner of a Huawei Mate 20 Pro (4200 mAh) since June this year.

first few months I could easily get up to 1.5 days, sometimes even 2 days with one full charge

since a few weeks had some troubles with charging and fast battery discharge (didn't make it till end of day, with barely using the phone). Sent to repair shop, few items got replaced (i.e. the battery)

all issues were fixed, except for fast battery drain. Therefore once again sent it to repair shop. They couldn't find any issues and sent it back

issue of fast battery drain is still there. Used BBS overnight with Flight mode on, location + NFC disabled, basically no connections whatsoever. Average battery drain/hour: 3.5% which seem a lot to me. Please see log file below

Anyone any idea what is causing this?
[BetterBatteryStats] DB126:
Not Android. Either have (another) bad battery or, more likely, an active/stuck hardware sensor that does not directly register in BBS. Try disabling all health and fitness related services on the off-chance goodies like "step counter" are keeping accelerometer busy.

Stats collected by BBS (assuming they're accurate/complete) suggest a very tranquil device; hardly any screen-off time and low CPU use. Hence the kernel or hardware diagnosis.

Good luck.
[BetterBatteryStats] Unknowx:
Is it possible to know if my charger is working properly by monitoring it through the app? and what would be the "right" values ​​in the case?