yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] lm089:
BBS crashing

OnePlus 6 rooted, running stock OOS 9.0.5; BBS 2.5-330:

Every now and then I unlock my phone and find that the BBS notification is gone. So I start the app and get an error message that BBS crashed, with several options. Most of the times I hit "Send Report".

Of course battery statistics now are completely out of sync. Right now I am told that the phone was running since "2d 13h 15m 18s", calculating a drain of 0.1% /h. Would be great news, indeed! Unfortunately I unplugged the phone just 5 hours ago, so the info is rather irrelevant.

Questions:

is there some hidden means of resetting the statistics, other than plugging in a charger (which right now I don't have at hand)?

as I'm having these crashes roughly once a week I'd love to know what could be the reason. Probably some conflict with another app? I added a logcat I just saved from BBS right after I learned of the crash. But I don't feel it will be of much help.

If someone would like to see some other info just let me know; I'll do my best to provide it.

Greetings

=== UPDATE 2019-05-30 ===

yesterday afternoon I had to reboot my phone several times. I also plugged in a charger so that an update would be running through. I had expected that after booting into system battery statistic would have been reset, but that was not the case: BBS still told me the phone was running since nearly 3 days, and that I had a negative battery consumption (which was somehow correct).

I got out of that by deleting cache and all stored data through settings >> apps >> BBS. Now it's showing reasonable values
[BetterBatteryStats] vojopd:
Still not working on s10 or?
[BetterBatteryStats] bigknowz:
Signal

Before going down the rabbit hole, is this signal information key to horrible battery life?

Battery Info

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

Level lost [%]: Bat.: -28%(95% to 67%) [2.7%/h]

Voltage lost [mV]: (4388-3961) [41.8%/h]

===========

Other Usage

===========

Deep Sleep (): 7 h 46 m 76.0%

Awake (Screen Off) (): 1 h 45 m 23 s 17.2%

Screen On (): 42 m 5 s 6.9%

Phone On (): 9 m 34 s 1.6%

Wifi On (): 10 h 13 m 29 s 100.0%

Wifi Running (): 10 h 13 m 29 s 100.0%

Bluetooth On (): 1 s 0.0%

Doze Interactive Time (): 43 m 43 s 7.1%

Doze Idle Mode Time (): 7 h 34 m 38 s 74.1%

No Data Connection (): 9 h 11 m 52 s 90.0%

No or Unknown Signal (): 13 m 17 s 2.2%

Poor Signal (): 32 m 38 s 5.3%

Moderate Signal (): 7 h 5 m 19 s 69.3%

Good Signal (): 1 h 58 m 28 s 19.3%

Great Signal (): 23 m 45 s 3.9%

Screen dark (): 21 m 11 s 3.5%

Screen dimmed (): 12 m 48 s 2.1%

Screen medium (): 8 m 5 s 1.3%
[BetterBatteryStats] DB126:
Possible contributor but probably not a major factor. Note: snippet includes 42 min of 'screen on' time which distorts I true idle drain rate. Provide a BBS dump per OP for a more detailed analysis.
[BetterBatteryStats] fi3ry_icy:
it doesnt work on s10?

i was trying to get it to work by trying all sorts of things until i give up and come on xda.. :crying:
[BetterBatteryStats] oile:
No, not working for me on S10e. Only alarms do work

Inviato dal mio SM-G970F utilizzando Tapatalk
[BetterBatteryStats] teutate:
I've tried various versions of bbs on s10e without any luck, including version 2.5-311

after giving PACKAGE_USAGE_STATS, DUMP and BATTERY_STATS permissions all bbs shows is alarms.

i've tried also other battery monitors but they all seem to fail (accubattery, 3c, etc)

only one that fully works so far is WD 2.0.4 with BATTERY_STATS permission via adb.

All of Screen wakelocks, CPU wakelocks, wakeup triggers and kernel wakelocks are populated.

Hope you can get BBS running :fingers-crossed:
[BetterBatteryStats] Ryan1469:
Can someone please have a look on my dump file and tell me what is draining juice on my battery. And i am using a S10plus exynos version, so bbs does work on S series for some people.
[BetterBatteryStats] strongst:
Since there's a huge lack of collected data the bbs dump file cannot be analyzed(I guess due to s10 issues).

But according to the frequency table you have used your device a lot hence the 4.5%/h isn't your idle drain for sure.
[BetterBatteryStats] teutate:
this is a mistery to me...

decided to give bbs another shot and now it's fully working :good:

regarding your dump (and i'm no expert so perhaps I'm all wrong) but you have a lot of bt scans, do you have a watch connected that gets far from the phone and phone tries to pair again? or perhaps disable wifi and bt accuracy in location settings
[BetterBatteryStats] Ryan1469:
Glad it worked for you this time. Yes i do have a smart watch connected to my phone, which i didn't wear to work for last couple of days.
[BetterBatteryStats] DB126:
Frequency of use is irrelevant. Most fitness apps will keep the device awake for incessant communications regardless of whether the 'wearable' is active.
[BetterBatteryStats] Ryan1469:
So is there a solution to it. Other than uninstalling wear os app from the phone?
[BetterBatteryStats] teutate:
So, it turns out that only alarm stats are shown when settings -> battery stats is selected

If unelected bbs works ok
[BetterBatteryStats] strongst:
Please consider the 2nd part I wrote https://xdaforums.com/showthread.php?t=1179809&p=79661091 it's not an idle drain dump and majority of BBS categories are missing hence troubleshooting is like guessing around.
[BetterBatteryStats] oile:
Could you elaborate please?

Thank you

Inviato dal mio SM-G970F utilizzando Tapatalk
[BetterBatteryStats] DiamondJohn:
A simple thing that may work is when you have finished using it, go into settings/apps and select the app and click on "Force Close". Generally speaking that should stop the app running on the background, and should stop it from starting itself up again, however, some apps do work around that and manage to start themselves up (I'm looking at you google play:p).

edit: ooo, almost forgot, simply start the app to enable it again.
[BetterBatteryStats] firehearth:
Hey guys,

I bought OnePlus 6T last week, so far I'm really liking the phone but there is something strange with the battery stats:

I charged the phone yesterday to 100% before going to sleep, then left it out of the charger to see how much it would use, in 9 hours it used 5% (it's okay, but maybe it could be better?), the strange this is, from the dump file from BBS attached, you can see that WhatsApp and Google play services were using sensors all the time, what's is happening with them?

Also, on the process tab, it's showing Telegram on top, what does it mean?

Now, after 30% being used with 2.4 screen hours, I can see these stats on these stats on the battery menu:

Facebook used 13% with 1:36 hours in use and 13:25 in background

Telegram used 7% with 0 in use and 0 background (I didn't even open it today)

WhatsApp used 2% with 19min active and 4 hours in background

Can anyone help with what might be happening here?

I attached a dump from BBS from the moment I wake up (idle) and from now.
[BetterBatteryStats] akira888:
Hi folks,

Just checking back to see whether there is a working version for Galaxy S10?

A new phone without BBS is incomplete lol
[BetterBatteryStats] DB126:
Idle dump looks fine with only 12 min of wake time over a 8¾ hour window. Android 9 handles most routine power management tasks w/o further user intervention. Standard battery tools will highlight any offenders; social media and fitness apps are usually the worst. Enjoy your device vs managing it.
[BetterBatteryStats] razen_kain:
I have s10 stock unrooted with bbs fully working. Just grant it permissions with ADB.
[BetterBatteryStats] raptorskate:
Can anyone help me with this stats? I don't know what's causing 17%/hour of idle drain
[BetterBatteryStats] githyanki:
Phase share an idle log.
[BetterBatteryStats] denon480:
Hi, which version you have? Iam try many version and in all working only alarms, all permission granted

Samsung s10e
[BetterBatteryStats] raptorskate:
Here it is, thanks.
[BetterBatteryStats] Oswald Boelcke:
Screen-on-time is supposed to be less than one minute.
[BetterBatteryStats] razen_kain:
It's the one on the play store. I did buy the pro version something years ago but I don't think there's any difference.

My phone is there Snapdragon version, s10. Not e or plus. If you granted permissions with ADB it should be fully functional.
[BetterBatteryStats] denon480:
Maybe is the reason, my exynos and i try many versions, not one not working
[BetterBatteryStats] waylo:
I'm on a Galaxy s9 Snapdragon, nonrooted, Oreo 8.0.

Recently, maybe the last version or two, I cannot get the "since boot" time period to display anything. All permissions are granted through ADB. All other time periods seem to be working fine.

Any suggestions?

Currently on v2.5-325. Play store paid version, beta tester.
[BetterBatteryStats] rjshrjndrn:
Is there any way to figure out drain between time periods.
[BetterBatteryStats] strongst:
Graphs(and more settings within them), and setting custom references can support you with this.
[BetterBatteryStats] DB126:
Screen on time is too long to make a definitive assessment. However, your device appears (with caveats) to be behaving normally based on screen off time and other metrics gathered during the 6½ hour monitoring window. The 17%/hr drain rate referenced in a previous post likely refers to screen on (ie: active use) which is largely within your control. Try reducing screen brightness, update frequency of social apps, etc. Fitness apps (those that connect to wearables) can also trigger high drain rates. Good luck.
[BetterBatteryStats] ParanoidNemo:
Here my dump. Hope to have done it correctly!
[BetterBatteryStats] strongst:
Eat or die.

Not correct, you have 8 m 16 s screen on time.
[BetterBatteryStats] ParanoidNemo:
Sorry but I see 8' 16'' of screen off (awake) and 9" is screen on. Could you please direct me on the line where you read screen on 8' 16"?
[BetterBatteryStats] strongst:
Haha yeah that proves me to be a human!

But maybe you can elaborate what's your issue, what device age, battery age, rom, kernel, mods etc you have.

It's really hard when people posting just a dump file without any information or background facts.
[BetterBatteryStats] ParanoidNemo:
Ops. Sorry, you're right. I'm on a Xperia X. Little more then an year old, and on omnirom. Trying to understand why I cannot reach a full day when on stock I reached almost two. (I know that the same battery life is probably impossible but there is a huge gap in my opinion). I'd already asked on the ROM thread but without fortune, so I'm investigating. Maybe is just a ROM problem and I can do nothing but I don't really know yet if that's the situation or not. I'm trying to read the dump to but a little help would be really appreciated.
[BetterBatteryStats] strongst:
Again: what device age, battery age, kernel, mods etc you have?

Custom roms are not everytime the best and the bbs dump does not contain roque or suspicious behavior. So it can be a battery, kernel, rom issue.
[BetterBatteryStats] denon480:
Report, i install last verion allow all permissions, is not working, so i forget it for two days, yestarday i charge phone to 100%, today i open BBS and all working :)

So is need charge to 100% and all statistics refresh, everything is work now;)
[BetterBatteryStats] ParanoidNemo:
Sorry but I cannot understand what else to give as information. The device is a little more than an year old (if that what you mean for "device age"). Same for the battery, I've never change it. Kernel is the standard omni kernel (should be based on linux 4.9), no mod installed (no xposed, no magisk modules). If you mean something else I'm sorry but I don't know how to get other info.
[BetterBatteryStats] strongst:
That's what I mean exactly!

I recommend to use another (custom) rom and repeat the test within same conditions so you can compare your bbs dump files.
[BetterBatteryStats] ParanoidNemo:
Will try that then. Thanks a lot.
[BetterBatteryStats] Oswald Boelcke:
Nice dump. Although your times and CPU states show that your device was decently sleeping the battery draining is certainly much too high.

Looks to me that your significant motion detector was triggered (by what-so-ever) but didn't disable ifself afterwards, or events were permanently triggered although the device/user wasn't moving. Consider to check your doze and doze-on-the-go settings. If you're on Nougat or below, Greenify might be useful.
[BetterBatteryStats] Marco89989:
can someone pls help me? 4,5% loss per hour... over night :(

huawei p10, locked bootloader, no custom rom/kernel/recovery etc., got the device for about one year.
[BetterBatteryStats] strongst:
You charged your device while recording the dump file. Please follow the instructions on the first post how to provide a idle dump file :)
[BetterBatteryStats] alecs91:
IT wont work on android 9?
[BetterBatteryStats] strongst:
It work on Android 9
[BetterBatteryStats] ParanoidNemo:
Thanks a lot. I've reported it in the ROM thread too so maybe the dev could address the issue in future build.
[BetterBatteryStats] githyanki:
What version?
[BetterBatteryStats] alecs91:
2.3-248
[BetterBatteryStats] Zrbtfm:
Got the same error on pixel 3a xl stock.

Bbs version 2.5.330 but all counters look ok ... So I leave with the error message seems to show only first time you run BBS after reboot
[BetterBatteryStats] impasta:
]Hello,

I'm using BBS 2.5.330 on a rooted system. I've set the Awake Threshold to 0% and Duration threshold to 0Min. but I still fail to get a warning notification. These two can be found under Settings->Watchdog.
[BetterBatteryStats] Oswald Boelcke:
[MENTION=1330150]chamonix[/MENTION] These two links in the partially quoted port #3 are void (HTTP 404). I suggest to replace them by:

https://better.asksven.io/betterbatterystats/help/

and

https://better.asksven.io/betterbatterystats/how-to/
[BetterBatteryStats] curiousrom:
Detected problems with API compatibility (visit g.co/dev/appcompat for more info)

I also got that error pop-up: "Detected problems with API compatibility (visit g.co/dev/appcompat for more info)" (screenshot) on Galaxy S5 G900M LineageOS 16.0 klte (Android Pie 9.0) + Open GApps Pico + LineageOS AddonSU + BetterBatteryStats-xda-edition-96-(2.5-330).

The keyword here is Pie.

BetterBatteryStats dev chamonix posted explanations & the adb solution here.

[MENTION=1330150]chamonix[/MENTION] you wrote in that post: "If this works I will add it to the FAQ" but you never did. ;)

This easy & quick fix works & survives firmware updates. Can you please add it w/ the full exact error message in the FAQ post #3 of page #1 in this thread?

While you are there you could fix the broken links as suggested by [MENTION=7408621]Oswald Boelcke[/MENTION]:

In the BBS app 2.5-330 > 3-dots > Help > opens in a browser https://better.asksven.io/betterbatterystats/help/

BTW thanks for this essential app, been using for years on my Android devices. :good::cool:

***

When I don't need BetterBatteryStats for troubleshooting after getting good results like in the second attachment (-0.2%/h), I freeze it (disable) with a third-party app to save battery but it's always installed & ready to serve.

I like App Freezer because you can add some apps to Favorite & when pressing on the apps you get infos like path, services, etc.

For those without root see this XDA article: How to disable any pre-installed system app bloatware on Android without root.

***

Other BBS & Android Pie users with the same error:

***

Man sloppy posts where users just slap a screenshot of an error message without taking the time to type the exact error message is one of my pet peeves. :rolleyes:

How hard is it to type: Detected problems with API compatibility (visit g.co/dev/appcompat for more info)?

Your post will never come up in Search Thread results because it does not contain any keywords.

You are forcing all users to open the attachment to see what it is about.

You did not include any troubleshooting info: BBS version, exact device model & firmware version.
[BetterBatteryStats] drezz2:
but if this is done, it affects all applications that use it, is that correct?

happens in all versions of bbs or in the most recent does not show that message?
[BetterBatteryStats] Marco89989:
now :D
[BetterBatteryStats] strongst:
Your dump contains only e hours instead of minimum 6 hours(instructions in the first post), but overall it's good, but please repeat according to the instructions.
[BetterBatteryStats] bodya2539:
Hi! Problem with my Redmi Note 5 (9 month old). About a one month ago i received a regular awakenings.

I flashing various rom's (miui, aosp, 8 and 9 android), but all for nothing. Everywhere i have awakenings.

I hope you can help me.
[BetterBatteryStats] strongst:
Hmm, something is strange with your mobile radio. There's only 1s signal, but longer wakelock by RILJ.

Do you have a good signal(according to screenshot yes)? If not, can you switch to other bands like edge, just for testing?
[BetterBatteryStats] bodya2539:
I switched to 2g / 3g, but the problem remained.
[BetterBatteryStats] TNSMANI:
Supplementing what strongst said, BBS doesn't seem to have recorded the full mobile signal details. Likewise the Network details are also blank. May be a later version of BBS can be tried.

---------- Post added at 12:47 PM ---------- Previous post was at 12:42 PM ----------

But you haven't stated how the signal is in 4G/3G/2G. Is it constant at full or does it vary between one bar and four bars?
[BetterBatteryStats] bodya2539:
it constant at full in 4G.
[BetterBatteryStats] deloj:
Attached is my battery stats. Can you guys tells me what eating up my battery? Thanks.
[BetterBatteryStats] strongst:
Your device did not enter deep sleep at all. Do you have stock LineageOS kernel or custom kernel?
[BetterBatteryStats] deloj:
Yes I have lineagos 15.1 installed. What do you suggest?
[BetterBatteryStats] strongst:
I asked which kernel. It can be a kernel or rom issue that your device did not enter deep sleep. You need to figure it out.
[BetterBatteryStats] deloj:
I don't have a kernel installed whatsoever. I might have clicked 'custom' in bbs accidentally instead of screen off.

How do you make bbs or a tablet fall into deep sleep?
[BetterBatteryStats] githyanki:
That is something you need to ask in the support thread for your phone. All we can tell with BBS is that your phone is not sleeping properly. Perhaps someone will recommend a custom kernel.
[BetterBatteryStats] deloj:
I don't need a custom kernel since I used bbs on a phone a while ago successfully. As I said I clicked on 'custom' by accident instead of screen off. I will run it again.

Just to be sure, do I need to click sleep off/ sleep quickly after I wake my tablet after 6 hours of sleep? Or do I need to do this before it goes to the 6 hours of sleep?
[BetterBatteryStats] DB126:
Almost certainly a kernel compatibility issue - can't tell which kernel variant is installed. Device is idling a low CPU frequency but for whatever reason is not sleep (deep sleep). You'll need to poke around your device forum for answers.
[BetterBatteryStats] deloj:
Just to be sure, do I need to click sleep off/ sleep quickly after I wake my tablet after 6 hours of sleep? Or do I need to do this before it goes to the 6 hours of sleep?
[BetterBatteryStats] githyanki:
The word custom in the menu has nothing to do with the problem. It means you used a custom reference point for starting the dump. Since the dump time looked good, it is not the problem.

If you had a custom kernel installed, it is a common cause of this issue. Since you don't, look elsewhere.
[BetterBatteryStats] deloj:
I'll take another dump and post it in a matter of hours. Hope someone here will give help.
[BetterBatteryStats] strongst:
Maybe you didn't understand your problem I told you already here https://xdaforums.com/showthread.php?t=1179809&p=79735026

Your device don't enter deep sleep instead it is idling on lowest frequency hence your device is awake all the time. That's your issue and HAS NOTHING TO DO WITH THE BETTER BATTERY STATS SETTINGS!

You need to figure it out with the help of your device forum if similar issues are made public, test other versions of LineageOS or kernels.

Againb no issue of better battery stats or its settings. Your dump is made exactly like mentioned in the first post!
[BetterBatteryStats] DB126:
Nice. Attitudes like that are easy to ignore. Good luck, pal.
[BetterBatteryStats] deloj:
Ahh ok.. I thought it was bbs that was the issue. Interestingly enough, when I first installed lineageos 15.1 about 2 weeks ago my battery only drained 2% per day with screen off. After installing some apps I have this battery drain when it sleeps. I uninstalled all the apps I installed. But the drain remains.

I'll look into my device's forum for help as you suggest. But just to let you know there's not that much support for it anymore given the age of my device which is the nexus 9. Will let you know.

Thanks for your help dude.. Thanks again and I'll let you know what my device's forum says.

Thanks again dude!
[BetterBatteryStats] strongst:
The new dump revealed exactly the same behaviour davey126 and me mentioned already: your device won't enter deep sleep.

You know what to do.

You can check line 282 of your own dump file and compare it with one of the 100+ examples of this thread:

510 MHz (): 12 h 13 m 1 s 99.5%

408 MHz (): 6 s 0.0%

Deep Sleep (): 0.0%

Have a nice day!
[BetterBatteryStats] deloj:
Oh cool. Yeah I'll now check with my device's forum to investigate this further. I'll also check the line you mentioned in the dump.

Have a cool weekend.
[BetterBatteryStats] Oswald Boelcke:
A very personal remark: @Davey126 helped me out, supported me, gave me invaluable hints since my very first steps on XDA. After I grew up and became an adult, we weren't quite often of the same opinion - especially due to my privacy paranoic. But I simply couldn't believe what I've read and that a member with less than 200 posts and only 7 thanks really really dares to call a Recognised Contributor with more than 13,000 posts and more than 9,000 thanks this:

The minimum you could have done prior to such an offence had been to visit the profile and to use the great XDA search engine.

To all other members in this thread, and especially @chamonix I apologise for this off-topic rage but I had to.
[BetterBatteryStats] githyanki:
Glad you have reconsidered our advice. Since you gave more context in a subsequent post, it is more likely a remnant of one of those apps you installed and removed. Some apps put stuff in the wrong place and cause havoc on a system. Either intentionally as in spamware or Trojans, or just poor coding. The uninstaller only removes things from places that apps are supposed to put things at. Sometimes the easiest way to fix things is to wipe everything (excluding internal data) and reinstall clean. While restoring apps, only do the essentials first, check behaviour (sleeping) and slowly add back the others while watching for the problem to return.

Good luck!
[BetterBatteryStats] deloj:
The problem with wiping everything is I got to start from scratch again and I have little time. I had flashed this custom rom about 2 weeks ago.

But do you think I can wipe my system like dalvik in TWRP without deleting my system or apps?
[BetterBatteryStats] DB126:
Don't allow a skipping stone to set the narrative; move on and allow the ignorant to vibrate in their own juices (a form of self-fulfillment).

[MENTION=6530865]Lughnasadh[/MENTION], [MENTION=613506]strongst[/MENTION], [MENTION=7408621]Oswald Boelcke[/MENTION] - Thank you. I am humbled (and unworthy).

[MENTION=1631192]githyanki[/MENTION] - Spot on given new information (although I wouldn't rule out a kernel issue given hardware; really depends on maturity/optimization of LOS build for this device).

True. But I also understand and respect the opinion - even if not personally adopted. Dig deeper and there's more synergy than disagreement here; only the degrees of engagement differ. Besides, life would be immensely boring if we all agreed to everything. :)