yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] densa21:
Im getting really fast battery drain when using my g2 mini, idle drain is not bad i think, but can differ eg 0.5-2%/h (longer than 4h off screen). I switched to 2G for test purposes, in my area 3/4G signal is very bad. I have no idea why BBS doesn't show kernel wakelocks, can v-kernel doesn't support it or something ?
[BetterBatteryStats] strongst:
Hmm, NlpWakeLock(network location provider from Google play) is high as others(reading issues from BBS/system) but do you have WiFi/Bluetooth location scanning on?
[BetterBatteryStats] densa21:
I checked and i have wifi location scanning on, it works even if wifi is off ye ? I'm using at a glance widget for weather (prolly its reason) with high accuracy mode for gps, maybe should i try power saving mode ? Last question, everything besides this looks ok ?
[BetterBatteryStats] strongst:
WiFi location scanning is active in background. Also check your wifi settings if there's some "scanning always available".

This drains battery of course cause the locating is requested randomly by several apps not only your weather widget.

Turn everything I mentioned above to off and make a new dump to compare.

Everything else is OK(so far) ;)
[BetterBatteryStats] StNff:
G-920FD (Galaxy S6)

Hello!

Could you help me. I have my phone still 3years, but only 1st year it holded the charde for about 2 days. And nowdays it holdes the charge for about 9-10 hours. I changed battery twice, but it didnt help much. I wiped my phone, but it didnt help too.

I couldnt attach my BBS statistic :confused:
[BetterBatteryStats] strongst:
It's known that Lithium batteries are aging after around 3 years or after 500 charging cycles. Temperatures, excessive drain, charging behavior all those factors shorten the life of those type of batteries for example.

And also replacement batteries are not new in every case.

A bbs dump file can help to identify idle drain issues, so feel free to provide one according to instructions in op, maybe there's something we can do for you :):good:
[BetterBatteryStats] skimo12:
Hi all,

Thanks to [MENTION=613506]strongst[/MENTION] for the fast response. The WiFi signal was at half strength in the place i had it for 7th-8th Aug, but mobile signal was full. If BBS says the signal is bad, then maybe that is a bigger problem with the phone that i should check. I put it last night (8th-9thAug) in a place with full Wifi and full mobile network. Please see screenshot. I also ran the test again for almost 8 hours and the drop was almost the same 10%. I've attached the new dump.
[BetterBatteryStats] strongst:
Ok, so if mobile signal and wifi signal was good, try do repeat the dump with mobile only(wifi disabled).

There's not more I can give(according to the dump) you except to look at other members what they have as idle drains. The phone itself isn't very popular or well developed, which makes it quite hard... https://xdaforums.com/fairphone-2

Also the battery capacity isn't really big
[BetterBatteryStats] StNff:
The battery is almost new (Age is around 1 month).

https: //cs5-3. 4pda. to/13548069/BetterBatteryStats-2018-08-09_0811588641784717139.txt?ab0bebc4201c33056e1f9ae1d1d673d3

PS: I don't know why Im not abble to attach any file for my message. :(
[BetterBatteryStats] strongst:
You don't have enough posts, just check out my signature for newbies. Link to 4pda isn't good and it doesn't work too.
[BetterBatteryStats] TNSMANI:
The screenshot is no proof that the mobile signal was good for the entire period of the dump (7 hrs. 51 mts). Even according to the dump, there was "Great Signal" for about 32 mts during which time you might have taken the screenshot. May be the mobile signal is wavering/waxing and waning. Try and choose a place near another tower and take a fresh dump.

Your app suite seems to be behaving well. So the culprit can only be your mobile signal. If choosing a place near another tower is difficult, switch off your mobile signal, keeping wifi on, and take a fresh dump. I bet that your drain will come down by atleast 0.3 to 0.5% per hour or more.
[BetterBatteryStats] StNff:
Let's try g-drive :)

https: // drive. google .com/file/d/1CqsWMSCxlLz0lSiErpwIZDMK6jgPV7Aj/view?usp=sharing
[BetterBatteryStats] strongst:
Thanks, now it's accessible ;) according to the dump: you have nearly all the time moderate signal(like me at home) which can have a significant impact on your device hence maybe its the root cause of the battery behavior change? Maybe cellphone tower changed signal streng or other obstacles were build that can weaken the signal?

On the other hand there are some sensor wakelocks. Do you have some apps besides Samsung health that access your devices sensors(maybe)?
[BetterBatteryStats] StNff:
Yes I do, there is Samsung health, but when I didn't use it (I still didn't login in the program), I had the same phone working time...

Really, maybe my phone seek the signal almost all the time? But there are almost all sticks on the signal icon.
[BetterBatteryStats] strongst:
You can try to freeze the health app.

Signal strength and signal quality isn't the same.

You can have different asu values on different technologies like EDGE and LTE. Newer technologies serves better than older hence LTE drains less than EDGE for example.
[BetterBatteryStats] StNff:
Thanks a lot! I changed my network from automatic 4G-3G-2G to automatic 3G-2G. Only 2G for my network is the lost internet :)

And I did the dump in one day normal using.

https: // drive. google. com/file/d/1WUY2FAKbovzkYfDlTWKCl2TjrzFRbSFA/view?usp=sharing
[BetterBatteryStats] strongst:
From your normal day usage dump(even when investigating isn't really useful) we can see that the phone signal isn't good 3/4 of the time:

No or Unknown Signal (): 5 m 26 s 0,5%

Poor Signal (): 36 m 52 s 3,5%

>>>>>Moderate Signal (): 12 h 39 m 7 s 71,1% <<<<<

Good Signal (): 1 h 42 m 5 s 9,6%

Great Signal (): 2 h 44 m 25 s 15,4%

Maybe you can confirm this with the android battery usage detail screen.
[BetterBatteryStats] StNff:
Yes, of cource I can :)

There are two screenshots, in the morning and after work day.

https://drive.google.com/file/d/1gjgevVxYIkm79djZZFR4vEor21Y26vwB/view?usp=sharing

https://drive.google.com/open?id=1GfEwfqlDhBfkErU8rU5yjELP_TqnxZlQ

https://drive.google.com/open?id=1iiRa60wsAlcWe1It7FoAaWyQhfsvNWlK
[BetterBatteryStats] rokatanski.ri:
Hi guys,

Anyone care to take a look at my stats? Awake time looks to be 25% and battery consumption on this occasion was only 0.8%, but I would just like to know what's keeping it awake so long.

Does anyone know what is this significant sensor motion? The phone was not moved whole night.

My signal is also not so good, I'll do another dump with only the WiFi on to compare...

Anyway here is it.

https:// drive.google.com/file/d/1_XrvVq_Id0KGVsN3Rk8sFmvBsdlJlGuT/view?usp=drivesdk
[BetterBatteryStats] strongst:
I meant the detail screen like when you click the 2nd screenshot graph. Then you see the full graph with signal strength etc.

Sorry for not being clearly enough.

---------- Post added at 07:37 AM ---------- Previous post was at 07:25 AM ----------

Maybe the wlan auto shutdown keeps your device awake like discussed here https://xdaforums.com/oneplus-3/one...-lineageos-15-1-oneplus-3-3t-t3739169/page140 but without an huge impact.
[BetterBatteryStats] rokatanski.ri:
Thx for the quick reply, I'll check that out.
[BetterBatteryStats] StNff:
Unfortunately I can't open any full detail screen, I haven't it :( I taped every process and opened some detail information

https://drive.google.com/drive/folders/1_uylRAwjegKBjhkpUVMbU5AIXl0GEgFD?usp=sharing
[BetterBatteryStats] bobby janow:
Did you solve this? I don't see any replies here.
[BetterBatteryStats] yochananmarqos:
The app will need to be updated, there's nothing that can be done until then. I haven't noticed any missing functionality thus far.
[BetterBatteryStats] strongst:
When you click on the green line graph like in your screenshot https://drive.google.com/file/d/1GfEwfqlDhBfkErU8rU5yjELP_TqnxZlQ/view
[BetterBatteryStats] mrjuniork:
New version has been released via hockey app
[BetterBatteryStats] chamonix:
Since Pie was released I have done some testing and adjustments. I guess I will provide a few other releases this week :)
[BetterBatteryStats] chamonix:
Google strikes again and makes it more and more difficult to access private APIs. BBS relies on these private APIs to access the stats and it seems that Google does not like that. For now it is a warning and I am looking into how to disable it but aside from that pop-up showing these is no negative impact as far as I can tell.
[BetterBatteryStats] shaggyskunk:
Thanks [MENTION=1330150]chamonix[/MENTION] ?

Sent from my SM-G965W ??
[BetterBatteryStats] chamonix:
Update:

If you are on pre-P or Pie and annoyed by the pop-up:

The reason are changes in Android Pie where google is of the opinion that using reflection to access private API is not what they/you want. By the way reflection is not a hack, it's a standard very powerful Java feature...

More about that here: https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/package-summary.html

More about this can be found here: https://developer.android.com/about/versions/pie/restrictions-non-sdk-interfaces

Why this affects BBS:

a) because the XDA edition is compiled with debug options. This pop-up will AFAIK not be shown on production builds, i.e. on gplay

b) because many open source libraries use reflection and have not all been updated (and maybe will never be updated) to "respect" google's new way of thinking

c) because BBS in its logic uses reflection to access all of our precious stats. Here again: google wants to decide what's best for you

How to get rid of the pop-ups:

Open adb and run these two commands:

adb shell settings put global hidden_api_policy_pre_p_apps 0
adb shell settings put global hidden_api_policy_p_apps 0

Please note

that google does not recommend setting the values to 0.

If you want to undo that you can, with:

adb shell settings delete global hidden_api_policy_pre_p_apps
adb shell settings delete global hidden_api_policy_p_apps

Edit: can you please test and report back? If this works I will add it to the FAQ
[BetterBatteryStats] chamonix:
I will have to undust my old devices and make some more testing to determine what permissions exist/are required for each major android version.

I have added an issue for that: https://github.com/asksven/BetterBatteryStats/issues/846
[BetterBatteryStats] chamonix:
New release is up, fixing a few other things. Among other on rooted devices root is now only used to set the permissions (instead of having to do it by hand on unrooted devices).
[BetterBatteryStats] chamonix:
I will look into that. Added an issue for tracking: https://github.com/asksven/BetterBatteryStats/issues/847
[BetterBatteryStats] StNff:
But it's not clickable grath at all. I only can click separate processes...
[BetterBatteryStats] TNSMANI:
In some ROMs (for instance NitrogenOS), it is not clickable and I do not know any other way of showing the bars for mobile signal, wifi etc.
[BetterBatteryStats] strongst:
Never heard that on samsung stock roms this isn't accessible, but ok... sad.
[BetterBatteryStats] KitsuneFoxy:
I'm having so weird wakelocks show up. The usual culprit Suspend_backoff constantly keeping the phone awake, something called "main" keeping it awake too and powermanager services.

I ran it for, like 8 hours with active watch dog, Hope someone could help figure out all these stupid wakelocks for me.

Though an alarm did go off midway.

I run nexus 4 with Krexus and quanta kernel v20.

I think i followed your guide right for submitting queries. [MENTION=1330150]chamonix[/MENTION]
[BetterBatteryStats] peterlee928:
https://xdaforums.com/showthread.php?t=1179809&p=75488433

see this post, which provides a link that provides some background on the suspend_backoff wakelock. my novice read suspects that it may be related to wifi connectivity. also suggest that you search "suspend backoff" in this thread for additional thoughts. :good:
[BetterBatteryStats] strongst:
The susoend_backoff is a little bit explained here https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/suspend_backoff

PowerManagerService.Display = the time your screen was active

PowerManagerService.WakeLocks = the sum of your partial wakelocks

Well, I don't know why your screen on time in the summary is only a few seconds while the PowerManagerService.Display is 1.5h. This should be nearly equal.

What rom and kernel do you have? Any modules from magisk/xposed?
[BetterBatteryStats] TNSMANI:
You are running an older version of BBS. That may be the reason for some confusing readings. Apart from PowerManager timings, your mobile signal was active for only a part of the time as per the dump. I don't know whether that is right. Please update BBS.

You do seem to have some issues with your wifi router. The wifi and mobile data seem to be switching back and forth. Restart the same and then check.

PlayStore had a download of 25MB and Google Play Services had another 7MB apart from Discord, Dropbox and some app called narvii.amino.Furry each 1MB, all of which contributed to the drain.
[BetterBatteryStats] DB126:
Loose eWeather HD (app/widget/clock); life will be good again.
[BetterBatteryStats] KitsuneFoxy:
My Rom is Krexus 6.0.1, with the Quanta V.20 kernel. I don't use xposed anymore, it seems to cause some odd issues with wakelocks aswell. As for my magisk plugins, i have. Busybox for android NDK, cloudflaredns4 and dns 6, greenify for magisk, magiskhide props config, MIUI sound pack, sysconfig patcher, and systemless substratum legacy.

I do recall suspend backoff is usually caused by alarms firing fast, or something else.

I'm afraid i don't know where to get the latest version as i do not have funds on google to purchase it and i don't really want to sign up to this hockeyapp thing. How out of date is it?

As for wifi, I did change two lines in the qualcomm ini, I turned on wifibonding for the 5ghz and then added the line for the 2.4ghz network. really basic stuff since the phone is capable of it.

I'm not sure what's causing the dropout for the wifi, There are two routers in the home, One is completely disabled router wise and is just an access point with no routing function at all, which connects via ethernet to the main router in the back of the house. The one upstairs is a WNDR3700 v4 and the one downstairs is a Nighthawk r7800 X4S, both netgears.

I wonder if it's doing the switching because of roaming? Since it roams for the strongest signal. Sometimes it will connect to the downstairs router, instead of the one next door to me., I'll try disabling wifi on the wndr and leave it as a ethernet hub

as for the background downloads, I'll disable them for google, discord is my IM, and the amino thing is just a social app. I have them mostly disabled unless i run them.

As for the eweather, I've never had an issue with this. I have it set never to update unless the screen turns on.
[BetterBatteryStats] computerbert:
Need some help

Can anyone have a look at my Better Battery Stats logs? They are from the past 3 weeks. Before that time, I installed a new battery and have done 2 factory resets. Nothing seems to help to get an idle battery drain lower than 2.6% per hour. No matter what I do: the battery always drains steadily at about 2.8%/h.

My phone is not rooted. The logs were all recorded over a full night of inactivity after the phone was charged to at least 90%+. Two of them (august 9 and 10) have WiFi turned off. Deep sleep percentage seems good, and to me there are no wakelocks or alarms that raise questions. If anyone experienced would care to help me out, that would be great.

Files on dropbox: www{.}dropbox{.}com/sh/fxsnpzxfbvdol5b/AACVsutu9yVbtqtrxOmC-c6La?dl=0

PS: how do I attach files?
[BetterBatteryStats] strongst:
Maybe it's the kernel/rom combination. But that's not visible with bbs.

The version I use you can download from the op betterbatterystats_xdaedition_debug_2.3-248.apk it will work for sure. 2.2.2 isn't that old and also working as expected(used it before) especially the screen on time and Powe manager services display wakelock.
[BetterBatteryStats] KitsuneFoxy:
I've updated to the new version and will see what i can do from there. If it continues, i' will try without a custom kernel.
[BetterBatteryStats] strongst:
Really strange. Do you use lift to wake display? I have the same device, ob16 with stock kernel, but rooted. No mods that impacts battery and get 0.4-0.6%/h idle drain. Check my attached log. It's always not connected to wifi during logging.

Edit: different to my dump is that the linear sensor is polled for hours by Spotify:

(com.spotify.music.Spotify): Sensor: Linear Acceleration(18), wakeup=false, Time: 8 h 32 m 43 s

Maybe try to install the app and check again. You can use my dump for references :svetius:

Btw: you're not allowed to upload something yet cause of your post count. Check my signature for the newbie guide :good:
[BetterBatteryStats] computerbert:
Thanks a lot for the reply! I half expected everyone to ignore my post because of my silly way of sharing the dropbox link, glad you took the effort to look into it!

I do not use the Ambient Display, it's completely turned off in the Display settings. As far as I know that's the only way to use lift to wake the display, right?

Good catch on the Spotify sensor! I have started using Greenify today to hibernate the app after usage, I expect that to solve the polling. In some of my logs (e.g., august 14) the sensor poll by Spotify is 0 seconds. Resulted in the same steady battery drain that night, so I'm not really expecting it to be the cause.

Your dump file really helps, gives a good idea of what is 'normal'.

EDIT: something I noticed is that, in every dump, the *alarm* wakelock has a count of about 100, while it does not show up in yours. Could that be a problem? Have you ever seen it in any of your dumps?

PS: I'm jealous of your idle battery drain speed, this stuff is driving me nuts.
[BetterBatteryStats] TNSMANI:
The latest version of BBS is also linked in the second post of this thread.

Obviously the WiFi at downstairs and upstairs are causing the issue. If possible for test purposes, switch off the farther one and test.

I don't know how disabled apps download in the background.
[BetterBatteryStats] KitsuneFoxy:
Thank you for your input, That' does help. It's very strange because it's only this phone that seems to do. All the stock firmware phones, my fathers, both brothers and his girlfriends, don't seem to show this issue, i mean, i've not had any complaints from them.

I think my nexus is just showing it's age, or has a bad wifi radio. I can't turn the R7800 off, as that's the main router and provides internet throughout the property.

I wonder if i disable the roaming in the phone it might work.

I will do a fresh install without the quanta kernel and go from there with another BBS 6-8 idle test with watchdog.
[BetterBatteryStats] DB126:
Sure. Hope one of the other pursuits pans out. If not think back. Good luck.

p.s. Update schedule is irrelevant. Just say'in ...
[BetterBatteryStats] vijayinvites:
Please help. I am getting cdfingerprint wakelock, PowerManagerService.WakeLocks and ActivityManager-Sleep (Android system). I am not sure how to stop that.
[BetterBatteryStats] Oswald Boelcke:
Your dumps are useless. I suggest to read/study the OP and to provide dumps in accordance with the requirements.
[BetterBatteryStats] strongst:
https://xdaforums.com/showthread.php?t=1179809&p=77349288
[BetterBatteryStats] KitsuneFoxy:
So i did a fresh install without quanta kernel. I installed total commander, Titanium backup, naptime, and greenify, aswell as the modules i mentioned earlier for magisk.

Then i left the watchdog on for pretty much all night without touching the phone. I did have a quick peek after saving the log, It seems i got down to 0.8h, I have been as low as 0.4h.

Here's my new BBS log. Is there any improvement? Or is it invalid since it's not the same conditions as before?
[BetterBatteryStats] strongst:
Sorry, can't download the attached file. Please upload again.

Good to hear that the kernel was the main problem(as I thought).

But instead of installing mods over mods it's time to break it down. This means, don't install any mods(especially not naptime and greenify) if you don't know what's draining your battery.

Every week we recommend here to not mess around with wakelock blocking or fiddling between the stock android battery saving mechanism unless you know what to do :good:

So kick those apps off your device, make the same dump again and compare.
[BetterBatteryStats] KitsuneFoxy:
I added a new uploaded file.

I use greenify to manually hibernate non system apps.

Naptime is for general long time purpose doze, so it dozes in minutes rather than hours.

I don't have them set to block any wake locks.

I have a good idea on what to and what not to do for wakelocks/doze.

I'll upload the file here again too.
[BetterBatteryStats] peterlee928:
there are various references to the msm_hsic_host kernel wakelock both in this thread and others... here is one place to start:

https://xdaforums.com/showthread.php?t=2297291

why not use greenify aggressive doze instead of naptime?

looks pretty good otherwise ?
[BetterBatteryStats] KitsuneFoxy:
Well, greenify seems to wonky it up with agressive doze. And As for the hsic host. It's strange because i almost always have the phone set to 2g. Very rarely is it on 3g.

Do you perhaps know of a kernel that works with marshmellow tat fixes it?
[BetterBatteryStats] peterlee928:
unfortunately i do not.
[BetterBatteryStats] vijayinvites:
Ok. You meant to say i didn't save from screen off to screen on? Or you meant to say the logs are not for 6 hours?
[BetterBatteryStats] strongst:
Both. And please give more details about your setup mods, kernel, Rom etc. please read back what you need.

The dump file won't provide everything to investigate your issue.
[BetterBatteryStats] Oswald Boelcke:
As stated by @strongst.

Just to reiterate a quotation of the OP:

Very important: Screen on-time MUST be less than one minute.
[BetterBatteryStats] vijayinvites:
Thanks. I will follow that procedure and create a file file. Small confusion, i can create a dump from screen off to screen on. I didn't understand why the mention of unplugged in the above notes. I can either do it from screen off or unplugged. Not both. Is that correct?
[BetterBatteryStats] peterlee928:
do from screen off to screen on :good:
[BetterBatteryStats] creeve4:
I'm looking for some help figuring out why my Awake (screen off) time is so high. I'm not seeing any wakelocks, alarms, or processes that would be keeping my device awake this much. Attached is a dump file.
[BetterBatteryStats] peterlee928:
you are going to have to redo ur dump file with less than 1 minute of screen on time. the dump you submitted has nearly 50 minutes of screen on time.

EDIT: see link for instructions on how to submit a proper idle log https://xdaforums.com/showthread.php?t=1179809&p=72467976
[BetterBatteryStats] the_reckoner1_1:
Does BBS work in Android Pie?
[BetterBatteryStats] Oswald Boelcke:
How about you give it a (first) try and tell us?
[BetterBatteryStats] Unknowx:
Hi guys!

I own a OnePlus 6 with which I feel great, but just go to their official forum to understand that he suffers from a battery drain.

To be sure it's a software problem, I wanted to use your app, but I'm not clear about it.

"put device to sleep for at least 6 hours (no touchy!)"

Should I simply not touch it and leave it on or enter it in "night mode"?

I wanted to do a battery calibration (charge device off from 0 to 100% with 2 hours more for 3 times) but since it is a procedure to do in extreme cases I wanted to make sure that there were no active wakelocks.

Thanks for the support!