yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] strongst:
Reporting bugs

If you want to report a bug please make sure:

- that you can reproduce the problem

- explain what the problem is, how you could reproduce it and what is going wrong (a sentence lke "xxxx does not work for me" is a waste of your time and wil be ignored)

- enable debug in advanced prefernces

- post a logcat
[BetterBatteryStats] vctrrl:
Thank you for the heads up! What I've noticed is that from time to time BBS stops working (it shows a pop up warning) on both of my devices but I couldn't associate to any action so I think I can't reproduce it sadly.

Otherwise, I've been experiencing another issue that I'm sure I can reproduce. The app closes (again on both of my devices) when I try to share a dump file. The saving option is ok though it takes a bit longer than used to on the previous versions of BBS. I'll post a logcat later. Hope it helps!
[BetterBatteryStats] aringler:
Getting this kind of error.

What should I do?

Pixel 3XL

Stock Rom

Rooted

Elementalx kernel

BetterBatteryStats version 2.2.2.0
[BetterBatteryStats] Levan_i:
Anyone knows what the heck is this two things? Been searching through the all internet but found nothing.

Pixel (Sailfish)
[BetterBatteryStats] githyanki:
Try version 2.3
[BetterBatteryStats] drstereos:
I can't grand the app through magisk manager reinstalled it same prob looks like magisk doesn't see the app any suggestions??
[BetterBatteryStats] DB126:
Root is not required as all permissions can be granted via ADB. Not sure the mainfest still requests root in the latest builds; haven't used BBS in awhile.
[BetterBatteryStats] Saswata Chakraborty:
Hi, I'm planning to purchase the BBS from Play Store. But I have a question. Is there an option on the app to keep the battery stats after reboots? Normally this type of app resets the battery stats after each reboot and hence it becomes quite hard to keep a track of the complete battery usage since last charge.

Can someone please answer my question.

Thank you!!
[BetterBatteryStats] DB126:
Nope; you'll need to export/save stats before rebooting.

Unnecessary (and annoying).
[BetterBatteryStats] Saswata Chakraborty:
What's unnecessary and annoying? Asking for something that I don't know about? Things that may be unnecessary to you, can be important to someone else. I asked one question only. You quoted it separately and made it look like I asked two separate questions. This is the official XDA thread of BBS. So I asked the question here to get my doubt cleared before purchasing the app. I think I'm allowed to do that on XDA. Isn't it? And if you feel annoying, either ignore my question or press the report option.
[BetterBatteryStats] strongst:
Just for information: when you reboot your device or boot into recovery to flash something. How should an app(that needs android system up and running) should collect a battery level change?

So collecting or keeping battery stats(and continue to record them) after a reboot(or something without the app execution itself) is quite useless ;)
[BetterBatteryStats] DB126:
Yep - GSAM retains a summarized stats across reboots. I don't pay much attention to this feature so not sure how comprehensive/useful it is.

---------- Post added at 05:30 AM ---------- Previous post was at 05:26 AM ----------

Should be obvious from the context; no need to beg for responses. Moving on.
[BetterBatteryStats] Saswata Chakraborty:
I know it is not possible to record battery stat when the device is switched off. But my question is, what makes the app reset all the stats that were recorded prior to rebooting the device? If there's anyway to keep the previous record intact while rebooting, it would be awesome.
[BetterBatteryStats] DB126:
BBS queries information in realtime when the app is launched or refreshed. The only permanent output (aside from saving settings) results from export activity which is user initiated. The developer has toyed with the idea of saving roll-ups across sessions but that will likely take the form of anonymous community "profiles" for learning/comparison purposes. Nothing currently in the pipeline to the best of my knowledge.
[BetterBatteryStats] Shadowlover:
hi,

I'm getting this pop up message,

"Detected problems with API compatibility".

Just wanted to know, does it affect the stats quality of BBS? because I've no idea what it means, even the suggested link (in the pop up), couldn't help.

Any help is appreciated.

Thanks
[BetterBatteryStats] Oswald Boelcke:
Device, ROM etc.? When does the notification occur? Logcat?
[BetterBatteryStats] DB126:
What a ridicluous ask; obviously your crystal ball needs maintenance. :rolleyes:
[BetterBatteryStats] Shadowlover:
Hi,

Here's the info

Model: Xiaomi Poco F1

MIUI 10.1.3.0

android 9

Since the last update of Android 9, I'm facing this issue.
[BetterBatteryStats] githyanki:
What version of BBS? Please be sure to be running 2.4 from OP.
[BetterBatteryStats] mn147:
Hi. Don't know what I'm doing wrong. What I want to do is set a Tasker task to take a BBS dumpfile since screen off to current and have it trigger when I turn my screen on. But it doesn't seem to work. It creates the dumpfile but everything is null, here is the output
[BetterBatteryStats] Saswata Chakraborty:
Using the latest BBS play store version. Sometimes after unplugging the device from charger, I keep seeing 0s on BBS unplugged. In order to make it work, I need to again plugin and out the device anf then BBS starts collecting the stats again.
[BetterBatteryStats] wiki.alphajoza:
How to save the data of History page?
[BetterBatteryStats] strongst:
You need to share a dump file within the app which contains all necessary information.
[BetterBatteryStats] doraemonkey:
Why i have this message? I used Arrow OS Pie in redmi 3s
[BetterBatteryStats] strongst:
Please have a look at the last page and this page, this question was asked several times :good:
[BetterBatteryStats] wiki.alphajoza:
I save the dumpfile but in what section of the file I can find the timing and the presence or absence of the wakelock at that specific time (as shown in the History page)?
[BetterBatteryStats] TNSMANI:
Delete
[BetterBatteryStats] habylab:
Why 2.3 when there is 2.5? I am getting the same error. I also sometimes open the app after hours of my phone being on and the stats are only there for the last couple of minutes.
[BetterBatteryStats] GoJo ^^:
Hey there, i recently started using an old device that's on KitKat. I can't remember how you make BBS a system app (tried with Titanium : FC). Please tell me ^^
[BetterBatteryStats] GoldGanja:
How you disabled motion sensor ?
[BetterBatteryStats] DB126:
No reason to disable (nor is it possible on most devices). Showing 'active' in BBS is not directly correlated with battery drain; could have been idle using little juice. Look for root cause of drain (likely an app) vs symptoms.
[BetterBatteryStats] Shadowlover:
I couldn't find any way to disable it in idle mode, I tried switching off "non interactive mode" on my poco f1. As it puts the phone in kind of deep sleep when it detects no activity for a long time, in a way it works with motion sensor. Check if you have any such settings in your device, and trying disabling it for a few days.

By the way, that feature is now enabled on my device and motion sensor doesn't unnecessarily activates, like it used to do.

So, I'm not really sure what's the real cause of active motion sensor in idle state. In my case, I feel, it just disappeared on its own.
[BetterBatteryStats] esszett:
Is there any way to get the current version without a Google/Microsoft/GitHub account?

(this is not to say that I want it for free)
[BetterBatteryStats] _jis_:
Read the post #2:
[BetterBatteryStats] esszett:
Hm.... Yes, I read that, of course. But attached are only older versions and RCs can only be reached with Microsoft/GitHub/HockeyApp account. I can't find a download link for a current XDA version in this post. Therefore I asked.
[BetterBatteryStats] DB126:
Developer prefers distribution via methods noted in opening posts. I respect that and won't add links.
[BetterBatteryStats] Thatuserguy:
Anyone have any clue what the NETLINK wakelock is, if it's safe to block it, and if there even is a way to do so?

This wakelock has been randomly terrorizing my phone for a while now. I usually notice it after topping my phone off before bed and then taking it off the charger and setting it down for the night. When I wake up in the morning, I've lost 20-40% of my battery, my phone's listed as having been awake with the screen off for 98+% after being unplugged, and NETLINK is sitting at some ridiculous percentage and count.

It's super weird and super frustrating because it's only a problem sometimes, but when it is a problem it's a real big problem. I already made sure wifi and bluetooth scanning are off, and even recently turned off "Cellular data always active" in developer settings, but the issue still persists. I haven't tried a factory reset yet, but I've seen other people mentioning this issue who have, only to say it didn't fix anything. I'd therefore rather not go that route if possible. Any other ideas?

I'd share my dumpfile, but it seems I can't attach anything to this post or post links thanks to XDA's 10 post requirement, so that's annoying
[BetterBatteryStats] Lughnasadh:
Yeah, I get that one too. In my experience it is safe to block, but the only way to do it that I know of is to use a custom kernel with a built-in kernel wakelock blocker (like Boeffla's wakelock blocker).
[BetterBatteryStats] Thatuserguy:
Is there no way to do it with ADB then? That sucks if so. I guess this isn't THAT big of an issue, but it's still enough of an annoyance that I was hoping to try and get rid of it without having to do anything drastic like installing a custom ROM. Ah well, thanks though!
[BetterBatteryStats] Lughnasadh:
I don't know of any way to do it with ADB, sorry.
[BetterBatteryStats] shadowslifer:
no drain with NETLINK, but high counter. I'm searching solutions too :\
[BetterBatteryStats] DB126:
Count is irrelevant. Response is what determines consequence. No drain = no worries.
[BetterBatteryStats] shadowslifer:
You think so? I'm looking for something that is constantly wakes my phone, cutting down battery life from 3 days to 2 days. Can't find it with any tools around. Since los14 I fixed every wakelock (usually related to apps), greenify'D every user app but something still wake up phone. Problem is wakelock % is 2% :/ but with high counters around.

Inviato dal mio Redmi 3S utilizzando Tapatalk
[BetterBatteryStats] DB126:
Many LOS adaptations include a 'custom' kernel which many not be optimized for your device. Proper management of hardware resources such as fingerprint, motion and radio power levels can be problematic. Verify deep sleep/deep doze timings with BBS, GSAM or some other method. If showing high percentages in these states there is little you can do at the ROM level (which encompasses apps) unless an extension provides access to kernel wakelocks *and* reports them accurately (many do not).
[BetterBatteryStats] esszett:
Of course I respect that too, but I can ask, can't I?

Anyway, thank you for your answer! :)
[BetterBatteryStats] sfernan:
Hi Guys, new user of BBS. I followed the instructions from Page 1 to capture a dump.

I got about 1.9% / hour drain on sleep.

Is it still ok to post here for someone to look at the dump?
[BetterBatteryStats] strongst:
Yes, please post the dump :svetius:
[BetterBatteryStats] sfernan:
Please analyse the BBS dump.

Thank you. Attached is my BBS dump.

OneplusOne using Tuga Pie ROM

Franco Kernel
[BetterBatteryStats] strongst:
TWRP app and LineageOS system causes some wakelocks, otherwise is this your first battery? How was your mobile signal strength during this dump record?
[BetterBatteryStats] sfernan:
Thanks for the analysis.

Yes this is my first battery. The original one.

Do you mean when i save the dump? If so, I was on wifi during the whole process (From full charge to 95% to sleep for 6+ hours)
[BetterBatteryStats] strongst:
First battery may have lost capacity for sure. The mobile device signal streng can also have an huge impact if the signal isn't good regardless if you have wifi on or off.
[BetterBatteryStats] Nekromantik:
im running latest xda edition from Hockey and running Android 9 but I get API error message every now and again and it stops displaying stats.

anyone else get this?
[BetterBatteryStats] counterfeit187:
Yeah, same here lineage os on op3t
[BetterBatteryStats] Fabian2103:
Could somebody please have a look at my dump attached? Getting alot of drain over night in Xiaomi Redmi 3S with official Lineage. :(

Ty!
[BetterBatteryStats] kenta09:
Dump

Heh guys, anyone could help me? Having insane battery drain in standby and can't understand why, on my oneplus 6 with oos. Dump in link below, any help would be appreciated. Thanks

pastebin. com/MgTV4Qgu
[BetterBatteryStats] JamilG:
and here. MIUI 10.2.2.0 Pie, Poco f1

Do you know which version I should install?
[BetterBatteryStats] ColdUser:
First of all great App!

Im using the play store version but noticed some issues after switching Roms.

On Syberia i can see since Boot if i reboot the phone and on oreo i can't see since boot when i reboot the phone.

Also stats should reset after 80% charging (changed settings) and this also doesn't work anymore and even set on 100%, no reset of stats.

Im facing some weird issues in the last month and before it was working great. But i moved on now on OREO. I delete the app and reinstalled, also deleted data still the same.
[BetterBatteryStats] TNSMANI:
The phone was unlocked for more than 1.5 minutes before the dump was taken. Ideally it should be as less as possible preferably less than a minute. This might have skewed the stats somewhat.

You shouldn't be getting wakelocks of 34 minutes for BBS. If it repeats please report with logs here mentioning the Dev.

Email app drained some battery. Try to reduce its sync time.

Though your mobile signal seems to be ok, there was some connectivity issue.

Adaway, FairEmail and Flym had downloads which would have increased the idle drain.

How old is the battery? Perhaps a Dalvik and cache clearing might improve the drain scenario. Do a reset of your wifi router also since some wakelocks were due to that.

---------- Post added at 05:57 PM ---------- Previous post was at 05:45 PM ----------

Major issue is mobile signal. Locate the phone elsewhere where the signal is better and take another dump. Or switch to 3G or 2G if possible.

BBS had wakelocks of nearly 18 minutes which shouldn't happen. If it repeats, report here with logs mentioning the Dev.

Bluemail, wifi, Whatsapp, Instagram etc caused some drain.

Google Sheets and Docs had downloads in the background.
[BetterBatteryStats] ColdUser:
Plz anyone? I keep having 100% no data conection on syberia ROM using Gemini.

Im gonna try latest version from here.
[BetterBatteryStats] githyanki:
BBS just reports information. You'll have to look elsewhere for no data connection.
[BetterBatteryStats] ColdUser:
Yeah well have checked a lot and data is there but BBS is not seeing this.. should have something to do with the Pie Roms
[BetterBatteryStats] maclaren2:
I've lost about 7% battery every night. Maybe you can help me and tell me why?
[BetterBatteryStats] strongst:
Your dump file contains more than 3h screen on time. Please read instructions in first post how to provide an idle dump :)
[BetterBatteryStats] IanHodgson:
Hey folks. Just saved a dump file because after a whole night my device has hardly entered deep sleep at all and lost a lot of battery. I don't know how to find possible culprits like particular apps. Can anyone help? Thanks.

Hodgy
[BetterBatteryStats] maclaren2:
Sorry. Tonight I turned off "use in background" for all applications on my Huawei, and still lose 6%. I think it is sometnig with Google Services.
[BetterBatteryStats] DB126:
Rundown was 0.4%/hr which is excellent on an unrooted device given nearly an hour of screen-on time during sampling window.

---------- Post added at 01:09 PM ---------- Previous post was at 12:59 PM ----------

Nothing jumps out - although not sure I trust report as there are some inconsistencies in the dump. That said, me thinks Bluetooth or background streaming plays into the equation. Try disabling BT radio and Spotify for a couple cycles to see if that helps.
[BetterBatteryStats] maclaren2:
All sync and apps were turned off. Beside this I lost 6% with this huge battery. On my S9 I was loosing 4% at night with much smaller battery. I have one thousand wakelocks from Google Play Services with sync off. What is it? I don't think it is a good result.
[BetterBatteryStats] TNSMANI:
You have dicey mobile signal and that will consume battery. Try to get an idle dump when the phone is in a place where the mobile signal is good. Or try switching to 2G or 3G and then take an idle dump. And this time take an "IDLE" dump ie. screen on time less than a minute.
[BetterBatteryStats] habylab:
Log below, followed the OP instructions and fully charged and then let it go down to 99% I think. Lost 9% over nearly 8 hours. OP6, Android 9. Any help or tips appreciated!

https://drive.google.com/file/d/1KRgdJOoTRRBgZ82YyR5a85mlomvII_eN/view?usp=drivesdk
[BetterBatteryStats] AndrOmega:
this app used to work on my phone but after flashing last official rom with january security patch and rooted with magisk i get "selected from/to references could not be loaded" error and battery percentage in app shows 0.

i granted root and bbs report that permissions are ok but no go.

please help
[BetterBatteryStats] TNSMANI:
Your mobile signal is patchy. It will drain a lot of battery. Before meddling with various things to achieve better drainage, place the phone at a place where the signal is good and take another dump. If you get anything around or less than 0.5% per hour drain, then that is the culprit. If better signal could not be found, switch to 2G or 3G whichever is better and take a dump.

If your drain results don't improve with the above suggestion, post the new dump here.
[BetterBatteryStats] mrjuniork:
Congrats for RC.. Well deserved and keep up the great support! :good:
[BetterBatteryStats] tanfidzularus:
I was wondering, can this app detect wakelock cause by magisk or xposed module?
[BetterBatteryStats] strongst:
That depends on the module and its functions.
[BetterBatteryStats] TNSMANI:
Try clearing data and cache of the app. Also try uninstall and re-install. To my knowledge, no one reported battery percentage showing as 0.
[BetterBatteryStats] tanfidzularus:
Do you have any idea what kind of module. Because when i check the stats theres Nothing out of ordinary on app behaviour.

But my phone kind of warmer than usual.

As on module (magisk) only use audio mod (ainur/ viper/ AML), greenify, LKT and adaway. But theres an update recently on module
[BetterBatteryStats] strongst:
Modules with apps for example YouTube vanced. Keep an eye on the cpu frequencies and break it down.
[BetterBatteryStats] DB126:
Wakelocks are largely irrelevant. Use BBS, GSAM or another tool to identify the source, either directly or by toggling suspected culprits on/off while observing the impact on power consumption and wake times. Alarms/wakelocks are symptoms of a *potential* problem but are not the problem itself.
[BetterBatteryStats] umartariq:
HELP!

Please check my dump, do I need any improvements?

I left the mobile overnight with WiFi connected, in 6 h 29 m 47 s of inactive period (screen off) my battery dropped 10% only i.e. battery drop rate 1.5%/hr

I request all users to take a look and advice.

Thanks!
[BetterBatteryStats] rmean:
hi,

this Android framework is driving me nuts...

can anybody help with this? i don't get what's wrong :)

i don't care about whatsapp and maps, those apps are used frequently. but I'm not even logged in in gtalk! :D

regards
[BetterBatteryStats] freemini:
I would disable or freeze GTalk.
[BetterBatteryStats] chamonix:
GSF is not related to gtalk only. With gapps installed your tphone will contact google's servers and keep that connection alive.

Now for what period were those 104 wakeups logged and how important are they?

Reducing alarms for the sakes of reducing alarms is not the best way to invest your time. Please give us more context info
[BetterBatteryStats] chamonix:
No that is not required. I recommend you stop using JD all togehter though
[BetterBatteryStats] chamonix:
I wondered too because I tought svnet-dormancy was there.... I will check my notes and add it together with a few other news to the KB.

I am planning to work on BBS again starting next week as I spend the three last week releasing CommandCenter and on a new release of ALTitude.
[BetterBatteryStats] chamonix:
Since 20 h 17 m 55 s
Awake (): 3 h 53 m 12 s (13992 s) Ratio: 19.1%
Screen On (): 2 h 42 m 34 s (9754 s) Ratio: 13.3%

1 hour 10 minutes awake in 20 hours 17 minutes is pretty damn good.

I see further potential in:

- kernel wakelock rx_wake suggest that you get wakeup packets from wifi. You could either turn wifi off when your phone is not in use or try wireshark to find the cause of those packets

- facebook is the major cause of alarms (timed wakeups). If you really use facebook you may want to check the settings any maybe get rid of contact sync

There are a few other candidates but I can't tell if they occured during screen on or while aspleep. If I were you I would start with those and take another reading with sleeping time only
[BetterBatteryStats] chamonix:
Those awake times without partial wakelocks wtill puzzle me. Looking at your kernel wakelocks what is not typical is that PowerManagerService is only at #4, some data / radio related stuff are higher (also RILJ is showing a large part in the partial wakelocks).

Now as your screen on time is pretty high it is hard to tell if you using the phone may be responsible for that profile or something else.

I suggest you check the following:

- radio: on the sgs2 the latest radio is not always the best so maybe you want to ask for opinions in your ROM thread, best would be people in your country and on your provider

- general behaviour: are other people sharing the same ROM complaining about similar problems (again I know that on the sgs2 newer ROMs are not always better ROMs and there are known problems). That's the reason why my gf is still on villain rom

- take another reading without you using the phone so that we can confirm that kernel wakelock situation

- take a logcat radio log at the time you save the dump so that we can look into the radio activity (RILJ). If you don't know how to do that search for "CommandCenter" on the android market
[BetterBatteryStats] chamonix:
I don't know Kaiten so I can't tell you if it's good or bad not if settings can change something. Have you maybe updated Kaiten since GB? can you go back to GB and confirm with the same version? do other users have a similar problem?

What I can tell from your last dump is that the number of wakelocks makes Kaiten a major drainer under the conditions you use it

Maybe a few hints and recommendations:

- push vs poll: push is not always better

- number of folders checked: see if you can reduce the folders to "inbox"

- frequency / keep-alive: different IMAP servers support different keep-alives. Common is around 25 minutes
[BetterBatteryStats] rmean:
which kind of context info do you mean? :P

I'm on an ics port. the logging is going for 26hrs now. I usually turn off sync, only activating it for about 5 mins a day. wifi usage ~6hrs/day, data about 1hr.

my problem is that battery loses about 5 percent overnight, but then everything is turned off, even in airplane mode. I think that there should not be any battery usage since all radio services are off..

i know 5 percent is not much, but I'm curious how to avoid this :)

If there is any more info necessary just tell me :)

regards
[BetterBatteryStats] chamonix:
Yes it does because reading alarm logs require su. If you revoke the right to use su BBS will not give you any information about alarms but will function properly besides that