yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Oswald Boelcke:
On my still daily driver, Samsung S5 LTE+ (SM-G901F - kccat6) with RR-N-v5.8.5 (intentionally not upgrading to Oreo/Pie) my usual overnight-idle-drainage is 0.3%/h. Very happy with it under special consideration that a few applications (including email and messenger) are not greenified and/or battery optimised.

Last Monday, I received my "new" device, a used Samsung Galaxy S7 Edge (SM-G935F) in really excellent condition bought for a great price. Currently, setting up this device that is supposed to become my new daily driver. LOS 15.1, custom kernel and quite a few other things already installed. As soon as I've experiences with the G935F in regard to battery drainage I'm going to share them here.
[BetterBatteryStats] le_mi:
Galaxy S10e Exynos

I have installed the latest xda version and set the permissions via ADB. Then I have load the device till 100%, unplugged the cable and put the s10e on my desk for 7h.

This was the result:

Summary: shows only Deep Sleep

Kernel Wakelocks: shows 'No stats have been collected yet'

Partial Wakelocks: shows 'No stats have been collected yet'

Alarms: shows all info

Network: empty

CPU States: shows all info

Process: empty

Sensors: empty

Is there a solution by now?
[BetterBatteryStats] DB126:
Seems this thread has run its course based on quantity and nature of inquires over the past few months (closer to a year). Not much happening w/BBS nor is it really needed on contemporary platforms as there are simpler tools (native and 3rd party) to assess drain and identify abusers. No doubt those with older devices or a high enthusiast coefficient will continue to stop in. For that community BBS is still best of bred when used in combination with this thread and the guidance offered by experienced members.
[BetterBatteryStats] DiamondJohn:
and in other ROMs with even more aggressive doze settings, its even more amazing. My current ROM is Havoc-OS, but I am running Oreo (not Pie) but with my own very very very aggressive doze config.

The attached graph can be made using https://xdaforums.com/showpost.php?p=79135309&postcount=74

The red bits are basically when I turn my screen on, and then it goes into deep-idle very soon after the screen is off. It lives in deep-idle.

I still use Greenify because I have apps that do not "behave", but I want their functionality when I need them, so I use Greenify to rein them in when not in use. And similar to you

I have a hot-spot on my home screen that puts apps to sleep and turns the screen off.

So in a way you are manually doing what Greenify does for me. Many ways to skin a fish...err..I mean cat:o.
[BetterBatteryStats] artisticwizard:
Hi,

here's a dump file (unplugged to current), someone please check it. I hope I got it right. :D

TIA
[BetterBatteryStats] Ammitz:
Hi, I have a more than 2 year old Mi Max prime, which has the fantastic battery & battery life. Previously overnight (around 6- 7 hours) the phone drained approx 0-1% battery , but since few days it tends to drops around 20-30% battery with no activity. I searched the forums at xda and came to know about BBS and here I am trying to find the solution. I uninstalled all the apps which I installed in the past week but nothing good happened, battery continued to drain without any reason. Attaching the log files, kindly see if their is any fault with the battery or some problem with any if the process and show me the way out. I would be so so thankful to you.

P.s i used the phone for around 30 min after charging it to approx 97%
[BetterBatteryStats] githyanki:
Please make a new dump without the 30 minutes of screen on time. Use custom reference point before turning off the screen if you never get a screen off option (I don't)
[BetterBatteryStats] strongst:
Hello, the dump has 9m screen on time, that's too much(refer to first post). What I can tell you so far: blue mail is a drainer(replaced it for me too).

Otherwise: please make a new dump.
[BetterBatteryStats] artisticwizard:
Hi, thanks for replying.

When i charge it to 100 and then use it till 95, there will be definitely some screen on time. Or should i skip the drain upto 95, that way there won't be any sot

Also I tried the from to ref as screen off - on, i didn't see anything, so i posted the unplugged to current .

I'll switch to gmail :laugh:

Any other advise you would like to share. Thanks again
[BetterBatteryStats] strongst:
You can also set custom reference point, which is what I did.

For other investigation, please make a new dump.
[BetterBatteryStats] cpasoft:
Hello. Maybe this has been resolved before, but I was trying to search for it, but I wasn't be able to find it...

Is there a problem if I disable the bbs's notifications??

I've updated the bbs and now there is a permanent notification on the panel. I'm on android Pie BTW.

Enviado desde mi LG-H870DS mediante Tapatalk
[BetterBatteryStats] strongst:
No, you don't need it and you can disable it.
[BetterBatteryStats] cpasoft:
Thanks!

Enviado desde mi CMR-W09 mediante Tapatalk
[BetterBatteryStats] Ammitz:
Here are the dump files without any deliberate screen ON time. I charged , removed the charger, turned off the screen, and created the dump files as soon as I woke up in the morning, without using the phone. Today the battery drop was from 96% to 69%, without using the phone for anything.. :(
[BetterBatteryStats] githyanki:
You cannot use boot to current as your reference points. You charged it during the reporting period. Went from 52 to 69%, so please try again.
[BetterBatteryStats] artisticwizard:
The sot is 2 secs (unplugged to current) and I still have BlueMail installed, I'll replace it soon :p

I have another dump with 0 sec sot and that's unplugged to screen on, but i guess the 1st one will do.
[BetterBatteryStats] githyanki:
Same results, Blue Mail is the biggest issue, followed by systemui (can't do anything about that most likely) but the drain is only .6%/hr, so if you fix that one issue you should be golden.
[BetterBatteryStats] DB126:
Looks fine. 0.6%/hr average idle drain is within norms. While Bluemail was the one of the largest 'drainers' overall impact was not that significant. Enjoy your device; don't sweat the little details.

============

Battery Info

============

Level lost [%]: Bat.: -5%(94% to 89%) [0.6%/h]

Voltage lost [mV]: (4401-4221) [22.7%/h]

===========

Other Usage

===========

Deep Sleep (): 7 h 30 m 34 s 94.7%

Awake (Screen Off) (): 24 m 55 s 5.2%

Screen On (): 2 s 0.0%

Doze Interactive Time (): 2 s 0.0%

Doze Idle Mode Time (): 7 h 31 m 32 s 95.0%

No or Unknown Signal (): 11 m 35 s 2.4%

Poor Signal (): 4 m 14 s 0.9%

Moderate Signal (): 7 h 24 m 59 s 93.6%

Great Signal (): 14 m 42 s 3.1%

Screen dark (): 2 s 0.0%
[BetterBatteryStats] artisticwizard:
Sometimes the idle drain is double the active drain, around 2-3%/h. That's the only thing i was worried about. But now i know the culprit.
[BetterBatteryStats] curiousrom:
Fix FAQ Post Please...

From the BBS dev:

"...I'm on android Pie BTW.." - Then read his other post here about the API compatibility... error: https://xdaforums.com/showpost.php?p=77305270&postcount=34635

Heloooo [MENTION=1330150]chamonix[/MENTION]? Maybe you could add those 2 things to the FAQ on page 1, post #3 and also fix the 2 important broken links pointed out by [MENTION=7408621]Oswald Boelcke[/MENTION] here:

Never got some feedback to this post: :crying:
[BetterBatteryStats] cpasoft:
Very useful information. This topic is so huge, and I've read a lot, but I cannot find this...

Thank you. I also think that this would be useful to write this into the FAQs.

Regards and thanks!

Enviado desde mi LG-H870DS mediante Tapatalk
[BetterBatteryStats] Ammitz:
I have options as :

Boot to current/custom

Unplugged to current/custom

Charged to current/custom

Custom to current/custom

Which one would give you the required detailed info?
[BetterBatteryStats] artisticwizard:
Unplugged to current
[BetterBatteryStats] TNSMANI:
The main reason seems to be BlueMail and poor mobile connection for sometime and somewhat better signal for most of the time. Since wifi was not enabled, all background downloads happened on mobile data and the signal being poor/moderate for a majority of the time, contributed to the drain. Why don't you enable wifi and check?

That said, 0.6% per hour drain on mobile data is not that bad.

---------- Post added at 02:53 PM ---------- Previous post was at 02:41 PM ----------

After charging the phone, when you start the dump, use the three dots on top right of the app and create a custom 'from' reference point and then lock the screen. When you want to save the dump, adjust the references from 'custom' and to 'current' and save the dump. Pl note that the screen on time must be as less as possible, preferably less than one minute.
[BetterBatteryStats] artisticwizard:
I had switched to gmail app in the mean time and i didn't get any notification for new mails so got back to BlueMail. Which ofc i will switch to something else. But i guess mail apps will need some of juice to deliver mails on time :laugh:

As of now I've turned off the *keep screen awake" for BlueMail in AppOps. Let's see if that does any good
[BetterBatteryStats] DB126:
Gmail will deliver timely notifications if battery optimization is disabled.

FWIW - I use Aquamail (pro) with IMAP push and full notifications. Long time user; got my license when they were cheap. :)
[BetterBatteryStats] artisticwizard:
Ahh, i forgot that battery optimization part, but won't it consume same battery. Will check again.

Aquamail is super expensive, even while in sale

Nonetheless, I'll switch to gmail, dark mode is on the way and also substratum themes support it :D
[BetterBatteryStats] mrjuniork:
Yeah, but that price is super justified! That mail is simply the best, one of the most secure and has tons of settings! You should really give it a try and if it's not to your likes, then simply apply for a refund.. My 5 cents :)
[BetterBatteryStats] Oswald Boelcke:
I use a totally different email application as I didn't only require PGP but also S/MIME support. But my next choice would be this one: https://xdaforums.com/android/apps-games/source-email-t3824168
[BetterBatteryStats] DB126:
Gmail is a fine general purpose email app. Privacy concerns are overblown IMO and was not a factor in my opting for AquaMail. I needed more functionality than the Gmail app provided at the time. Today I use the two interchangeably although AquaMail remains primary on most devices.
[BetterBatteryStats] Ammitz:
Here are the dumps, please see which explains the drain better.
[BetterBatteryStats] artisticwizard:
I m no expert, but according to instructions sleep time should be more than 6 hrs and screen on time < 1 min. U got both of em wrong. 5hrs + and more than 1 min.

Wait for someone else to check.
[BetterBatteryStats] jesrani:
I am using OnePlus 3T with latest build of Havoc ROM. Battery life not as good as OxygenOS Oreo I feel. Am attaching my BBS dump and hope that the experts can give suggestions for better battery life
[BetterBatteryStats] strongst:
What does Titanium Backup and busybox did in the background?

If you already compared the battery life with OxygenOS(I hope with same test scenario) it's more likely a rom/kernel issue not recorded with bbs.

2.1%/h is the drain which is too high for standby drain. Would be interesting how it's draining on OxygenOS?
[BetterBatteryStats] jesrani:
TitaniumBackup takes a backup at 02:00 at night. I do not know which app installed busybox or what it is used for. Yes battery life comparison with OOs is with similar apps installed, similar scenarios. Drain was less on OOs I think but I don't have exact figures. So if BBS cannot detect the reason for the drain, any other way to do it?
[BetterBatteryStats] githyanki:
TB uses busybox, so probably related to the backup. Try disabling backups for a night and get a dump.
[BetterBatteryStats] strongst:
It's most likely the rom/kernel which suits not really with your device but I would stop the backup at night and check where busybox come from(they're Linux command sets) at first.
[BetterBatteryStats] jesrani:
Ok. Will do that and revert.
[BetterBatteryStats] Ammitz:
Hi, I have a more than 2 year old Mi Max prime, which has the fantastic battery & battery life. Previously overnight (around 6- 7 hours) the phone drained approx 0-1% battery , but since few days it tends to drops around 20-30% battery with no activity. I searched the forums at xda and came to know about BBS and here I am trying to find the solution. I uninstalled all the apps which I installed in the past week but nothing good happened, battery continued to drain without any reason. I have attached dump files and log files but each time there is some proboem with the screen ON time and total sleep time of the device. Today, Attaching the log files, with less than 1min screen ON time and more than 6hrs of sleep time. kindly see if their is any fault with the battery or some problem with any of the processes and show me the way out. I would be so so thankful to you.
[BetterBatteryStats] DB126:
I'd say failing battery; let's see if the experts agree.

============ Battery Info ============

Level lost [%]: Bat.: -44%(98% to 54%) [6.7%/h]

Voltage lost [mV]: (4397-3723) [103.4%/h]

=========== Other Usage =========== Deep Sleep (): 6 h 26 m 47 s 98.8% Awake (Screen Off) (): 4 m 1.0% Screen On (): 34 s 0.1% Doze Interactive Time (): 33 s 0.1% Doze Idle Mode Time (): 6 h 18 m 8 s 96.6% No Data Connection (): 6 h 31 m 21 s 100.0% No or Unknown Signal (): 2 s 0.0% Great Signal (): 5 h 56 m 18 s 91.0% Screen dark (): 34 s 0.1% ======================================================
[BetterBatteryStats] strongst:
[MENTION=5308801]Ammitz[/MENTION] please tell us more about your rom/kernel /mods
[BetterBatteryStats] Ammitz:
I have rooted in the past. But as of now, I am on unrooted, default Global miui 10.2.20 stable ROM, Official.

Only Bootloader is unlocked.
[BetterBatteryStats] strongst:
Ok. Maybe you can do a factory reset to double check. Otherwise as db126 suggested already.
[BetterBatteryStats] chamonix:
My apologies for not getting back to you sooner: I have been pretty busy lately. The links are fixed and the notification question added to the FAQ
[BetterBatteryStats] chamonix:
I have reverted back a change that was a little too agressive in avoiding calling the battery info service on the S10. Unfortunately this change does not fix the real issue with the S10, it is still a workaround. I still hope that Samsung fixes the issue as it has an effect on other parts of the system but for the time being BBS will show stats until the point when the battery info service stops responding. From that moment on unfortunately only a reboot fixes the issue, until the service crashes again.

The new build is up and will go the gplay beta in a bit
[BetterBatteryStats] curiousrom:
Re: Fix FAQ Post Please...

Thanks! :good::cool:

But you forgot the "API compatibility..." popup error for Pie users. :crying:

May I suggest:

26. For Android 9.0 Pie users getting the "Detected problems with API compatibility (visit g.co/dev/appcompat for more info)" popup error please see this post.

***
[BetterBatteryStats] Oswald Boelcke:
@chamonix Congrats to 19,000 thanks. I think it really espresses the excellence of your work,
[BetterBatteryStats] chamonix:
Oops, added!
[BetterBatteryStats] curiousrom:
New BetterBatteryStats 2.5-333 Feedback - Share To Crashing

Thank you [MENTION=1330150]chamonix[/MENTION] for keeping the super useful BBS alive all these years & fixing the How-to and FAQ post. :good:

***

This feedback post is about two minor bugs in BetterBatteryStats-xda-edition-96-(2.5-333).apk downloaded & installed today via the HockeyApp as per post #2 on a Galaxy S5 G900M LineageOS 16.0 klte build 2019-07-22 + Open GApps Pico + LineageOS AddonSU, no custom kernel or system mods of any kind.

As you can see in the side-by-side screenshots if in BBS 2.5-333 (& 2.5-330 also) > Settings > Theme > Dark is selected then in > Settings > Advanced > App Permissions these permissions are hidden under a white rectangle while they are fine in the Light theme:

PACKAGE_USAGE_STATS

APPOPS_USAGE_STATS

***

BBS crashing: while > Share icon > Save works fine, Share icon > Share To... crashes the app & when restarting it I got a BBS Unexpectedly Quit error popup (screenshot). I did click on Send Report.

BBS is crashing regardless if I select only Dumpfile or Dumpfile + Logcat for sharing. But both files are saved anyway in /Android/data/com.asksven.betterbatterystats_xdaedition/files/Download/.

I attached a logcat created by BBS > Share icon > Save after re-starting it as well as a full logcat captured with SysLog.

--------- beginning of crash

07-24 04:24:42.631 E/AndroidRuntime( 2432): FATAL EXCEPTION: main

07-24 04:24:42.631 E/AndroidRuntime( 2432): Process: com.asksven.betterbatterystats_xdaedition, PID: 2432

07-24 04:24:42.631 E/AndroidRuntime( 2432): android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.asksven.betterbatterystats_xdaedition/files/Download/BetterBatteryStats-2019-07-24_042441838.txt exposed beyond app through ClipData.Item.getUri()

07-24 04:24:42.631 E/AndroidRuntime( 2432):	at android.os.StrictMode.onFileUriExposed(StrictMode.java:1978)

I also attached the Dumpfile saved after restarting BBS. It was done after only 29 minutes of Screen Off for testing Share To, not for testing wakelocks on my device as described in post #1 > If you need help.

I can see in the Dumpfile > Services: …(com.asksven.betterbatterystats.services.EventWatcherService) ...Crash count:1.

Otherwise AFAIK everything else in BBS works fine on my S5. :cool:

***
[BetterBatteryStats] Ammitz:
[MENTION=613506]strongst[/MENTION] System battery stat ( *#*#4636#*#*) in miui , says Battery health as GOOD.

Other battery apps, like accubattery etc says health as 83%

Does data from these apps not reliable?

Didnot any process in my smartphone misbehaving? No wakelocks?

[MENTION=1330150]chamonix[/MENTION] please verify my dump file if you get some free time.

Else I will go with the suggestion from [MENTION=5488402]DB126[/MENTION] and start with the process of replacing battery.

Ofcourse After factory data reset as suggested by [MENTION=613506]strongst[/MENTION]

Thankyou all for your efforts.
[BetterBatteryStats] strongst:
That's why I suggest to do a factory reset cause not everything is recorded by bbs.

So backup, do a factory reset without installing additional apps(none except bbs and root), then take a new bbs dump and check if the drain/h is the same.
[BetterBatteryStats] chamonix:
Thanks for reporting. You can track the fix with issue #864
[BetterBatteryStats] koekoek91:
On my S10+ Exynos a reboot doesn't fixes the issue.

Only charging back up to 100% will make BBS show stats again (which is not a huge problem for me though) ;)
[BetterBatteryStats] Ammitz:
I did factory reset and installed BBS, didn't signed into play store nor in chrome, no other app installed. Facebook was there pre-installed, no WhatsApp ,nothing. Data off, 4G VOLTE ON , Service provider AIRTEL.

And there is drain, huge drain. Also attached the dump as well as screenshot of Graph, which shows wavelocks.

Now what to do?

If I have to replace the battery, then I will go to authorised mi service centre near my place, cannot risk of exploding phone with outside repair & below par spare parts.

Also, if possible, can anyone let me know if I need to ask service centre guys to show me the battery , so as to check the battery's manufactured date, as I have a notion that if it's manufactured a year ago or so, it wouldn't be able to give good backup. am I right here?
[BetterBatteryStats] pjadec:
Battery is very bad. Very huge drain without any use
[BetterBatteryStats] jesrani:
OnePlus 3T with Havoc ROM, Clean flashed, Android Pie. Night backup stopped but there is still the same battery drain.
[BetterBatteryStats] strongst:
Well, with 8%/h on deep sleep it can be a battery issue as db126 suggested already. Also possible hardware issues like moisture or bad connection which raises the resistance is possible.

Next test you can do is: repeat the same test with flight mode(4g volte off) to check if it's modem related or not.

---------- Post added at 07:11 AM ---------- Previous post was at 06:57 AM ----------

2%/h

You can try to repeat measurements with WiFi off, just mobile data(not visible how mobile data drains your battery or

Try another rom like stock rom just with bbs installed.
[BetterBatteryStats] dcop7:
Hi,

Why do you think disabling double tap gesture in Nova launcher will stop Nova launcher to monitor the accelerometer?
[BetterBatteryStats] githyanki:
Sorry, I meant the double tap to wake.
[BetterBatteryStats] dcop7:
Ah, OK. It is because I have Nova checking the accelerometer. I have double tap to lock. But I've disable it and re enable it, changing to the new lock screen mode which requires pie. Apparently it stopped.
[BetterBatteryStats] chamonix:
Fix for both the "share to..." (good catch!) and system app screen colors in dark theme is building and will be available in a few minutes
[BetterBatteryStats] Mugatu485:
Can you download + pruchase the app without Google (Gapps) being involved?

Cheers,

Mugatu
[BetterBatteryStats] artisticwizard:
I guess not
[BetterBatteryStats] Mugatu485:
Whats with apkmirror.com? :rolleyes:
[BetterBatteryStats] chamonix:
If you want the app without gplay check the first posts of this thread. I do not maintain the binaries on apk mirror so that would be your risk
[BetterBatteryStats] curiousrom:
BetterBatteryStats 2.5-337 Feedback - Fails to Create dmesg

Thanks! :good::cool:

Confirming that the 2 minor bugs reported here have been fixed in BetterBatteryStats-xda-edition-96-(2.5-337).apk downloaded & installed today via the HockeyApp as per post #2 on a Galaxy S5 G900M LineageOS 16.0 klte build 2019-07-26 + Open GApps Pico + LineageOS AddonSU, no custom kernel or system mods of any kind.

Dark theme works fine everywhere including in > Settings > Advanced > App Permissions (screenshot) & Share To via email of Dumpfile, Logcat & dmesg works fine too.

But then the only line BBS's dmesg contains is "Bad system call". :(

In BBS 2.5-337 both Share icon > Save > dmesg and Share To & dmesg selected fail to create a proper dmesg.

I created an issue in your GitHub asksven/BetterBatteryStats site & attached BBS logs & other logs captured with SysLog including a full dmesg there: BBS 2.5-337 Fails to Create dmesg #865:

Edit: [MENTION=1330150]chamonix[/MENTION] maybe you could update this thread's title to …[July - v2.5]…?

***
[BetterBatteryStats] chamonix:
Thanks for filing a detailed issue: will look into it.

Regarding the thread title: the logic I have been using in the past was to update the thread title once bbs got out of testing. As a customer of the thread do you feel this logical or would you prefer it showing the current activities?
[BetterBatteryStats] Ammitz:
[MENTION=613506]strongst[/MENTION]

I went to the service centre and got the battery replaced.

1st they said new battery also draining, then they did installed software again and reported that new battery not draining.

I asked them to check with my old battery installed, it still drained as per them.
[BetterBatteryStats] strongst:
Interesting
[BetterBatteryStats] creeve4:
How can I track down which app is causing Android to fire so many *job.delay* alarms?

Also, does anything look out of the ordinary in the attached log?
[BetterBatteryStats] githyanki:
Please make an idle dump, you need to have less than 1 minute of screen on time during the period.

Screen On (): 2 h 39 m 24 s 34.3%
[BetterBatteryStats] curiousrom:
Stinking Dump

Yes, it's all wrong. :D

Read post #1 > If you need help.

And also read post #2 > HockeyApp & get BetterBatteryStats-xda-edition-96-(2.5-337) instead of your old BetterBatteryStats xda-edition version: 2.3-248. ;)

***
[BetterBatteryStats] creeve4:
Out of curiosity, why is it so important to have screen on time < 1 minute when analyzing battery drain?
[BetterBatteryStats] artisticwizard:
To see how much battery drained while phone was idle and the apps which woke up the phone while in deep sleep ?

(I believe so) :D