yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
The beta channel is updated on a slower pace that xda, that's true. The rationale behind it that gplay does not offer proper tools for feedback. And yes I am biased and prefer the community on xda.

Anyway, my goal has always been 3-4 gplay beta releases a year, 1-2 gplay main releases a year. If you want a faster pace xda is the place to go!

And no, it is not to annoy users, it is the gist of a little more than 8 years maintaining this project and trying different things that either worked or did not....
[BetterBatteryStats] chamonix:
Wanna try better WiFi on/off?

Joke aside, upnp multicast can be a real problem, depending on your Android version and setup. If your access point has a guest access I'd recommend moving your device to there and see if it makes a difference as lots of wakeups can be cause by upnp if your WiFi stack passes it through to userland
[BetterBatteryStats] skivnit:
Yeah tried using a guest Network which is completely isolated from main AP and has no LAN access, still getting same wakelocks. Maybe it's an app acting rogue but I don't see anything on BBS and I'm not rooted otherwise I would have used Wireshark
[BetterBatteryStats] skivnit:
So I narrowed it down to my data connection for some reason it's keeping my device awake more than it should with a lot of umts and mmc0 wakelocks. I turned on airplane mode and enabled wifi here's the result: a 0,3%/hr drain vs 1.6 when leaving data and mobile on.

View attachment BetterBatteryStats-2019-10-23_063451266.txt
[BetterBatteryStats] DB126:
Yep - not much you can do about that on an unrooted device aside from trying different physical locations (a persistent weak signal will delay/prevent entering power saving states) or reloading firmware and hoping for the best; might consider investing in a rabbit foot. Changing carriers is an extreme option if a competitor offers better coverage. Kinda sucks; Samsung devices are noted for such unrefined behavior - especially the last few hurry up jobs.
[BetterBatteryStats] mGforCe:
MIUI 11 - Unable to give Usage Access

Hi All,

I tried installing BBS xda edition 2.5-337 on my Redmi Note 7 Pro (violet) running Xiaomi.eu MIUI 11.0.3 rooted with Magisk v

First tried the root method and gave all permissions including Usage Access to BBS but still getting one error "APPOPS_USAGE_STATS not granted" required to access alarm stats.

Later I tried doing ADB method too and again no error and all permissions given. Still, BBS shows the same error. :(

I am lost for any more way out to give access to BBS :confused: Any tips/pointers from fellow MIUI or BBS users?
[BetterBatteryStats] chamonix:
New release is on it's way, attempting to fix a weird issue related to widget refresh causing the app to exit. Based on crash stats I will probably expedite it to gplay in 1-2 days

Edit 2019-10-27: gplay production staged rollout has started as hockeyapp crash analytics confirm that the issue is gone
[BetterBatteryStats] igorrj:
I still face an issue on S10 Exynos. Looks like workaround works well until reach around 70% battery. After that, app stop to show stats.
[BetterBatteryStats] Sjain11:
Edit : dump file attached.

Weird Google play services battery drain, refusing to go despite many many efforts.

Many a times, play services tops the system battery stats with as much as 30~40%consumption. It's been more than 4 months now I think. And not even a single day passes without me giving a thought on it. Any help would be more than appreciated.

I have just revisited bbs after trying everything else like grenify, app ops, gsam etc. Could never found out the exact cause, nor any fix.

Just to start with bbs, i am attaching screenshots suggesting high sensor usage by play services, also GSAM showed very similar findings. Idle drain is really bad. Please have a look. Is there a way I could block sensor access to play services? I have blocked body sensors access using appops but hasn't made any difference. Also please look at the high ALARMS count in the attached screenshots.

P. S. ~ i am very much willing to post a dump file, but will have to look how to take an ideal one. That's why to start with, i am posting only the screenshots.

I have tried asking in ONEPLUS/ROM specific forums and everywhere else I could. Received no help.
[BetterBatteryStats] zputnyq:
I'm using different device but probably you can try tinkering google play service's setting, then disable what you don't need there. So far have done this & get less wake up from it. Moreover, you can disable apps that you don't need as well.
[BetterBatteryStats] Sjain11:
Thanks for the idea. But I have disabled almost everything in the GOOGLE section in settings, like web history, youtube history, location history and almost everything that isn't absolutely essential.

I don't use maps or chrome

Also since it's a custom rom, it is bloat free. There'snt much to disable. Among the system apps and services, i am not safe what is safe to disable and what isn't.
[BetterBatteryStats] zputnyq:
No problem.

I can't help much at the moment.

To be honest screen shots you showed look strange especially for the sensors part. I let body sensor permission of google play service enable even though I never used app related to it but it never shows like that. And that sd maid, I don't know why it use sensors alot. I use sd maid as well, but it never like that too.
[BetterBatteryStats] Sjain11:
Sd maid i installed only yesterday. Play services drain and sensor issue was there even before sd maid was installed
[BetterBatteryStats] DB126:
Disabling those settings will have no impact on power draw. More likely than not you have a corrupt Play Services install, faulty kernel or misbehaving HW sensor. A log (BBS idle dump) may be helpful in narrowing down potential culprits.

Alarms and wakelocks are not evil. When present in excess they're typically symptoms of a bigger issue. Find and remediate root cause; don't silence (block) the messenger.

Why are you installing a "cracked" build?
[BetterBatteryStats] Sjain11:
First of all thank you for helping igniting the hope that had almost exhausted.

1)Corrupt play services ~ won't it automatically update itself every few days to a newer version? Would it still remain corrupt? In any case, i have faced the issue in almost every rom installed, both with gapps inbuilt and flashed pico/Nano built from openGapps.

2)Faulty kernel~ again i have had this issue on almost every custom rom installed, i don't remember exactly about stock. But i am sure i never had it on oreo, only in pie, that too from last 4~5 months. Also nobody else has ever mentioned facing any such issue in any of the roms.

3) Malfunctioning sensor~ I would be obliged if someone can diagnose/fix it.

4)below attached dump is with official play store latest free version of sdmaid. Also, the issue was present even when sd maid was not installed.

------Finally here is the idle dump attached. Usually the bbs as well as gsam stats show play services topping the sensors list. But i don't know why it isn't there here, maybe because the phone was idle for the entire duration. So i am also reattaching an older screenshot--------

P.s.~ I do have a few out of the play store apps installed like *youtube Vanced(many people use it i believe) , *adaway(many people again) ,* very much outdated versions of brave browser and Samsung internet browser (outdated since i prefer using the old chromium version they are based on ;both are from apkmirror so I guess should be safe),

None of the antivirus that i run at regular intervals have shown an issue with any of these. Still i am uninstalling all of these except youtube vanced and adaway, just to be sure.

P.p.s~ i have tried disabling/modifying whatever i think could be responsible like freezing unnecessary apps, grenify, naptime, disabling permissions of play services with appops (also removing access as device admin, pip, modify system settings etc), firewall etc . This and all my flashes have been clean,so that really ain't an issue.

Disabling internet access of play services makes it disappear from the list of battery consumers, but then android system rises to the top which normally isn't present.

Thank you for your time.
[BetterBatteryStats] Sjain11:
the dump has been attached.
[BetterBatteryStats] Sjain11:
Can someone please see the dump file?
[BetterBatteryStats] TNSMANI:
Please do not bump your posts within 24 hrs of posting.
[BetterBatteryStats] DB126:
[MENTION=7079349]Sjain11[/MENTION] - I will only provide minimal assistance, and none in the future, due to use of "cracked" apps that deprive independent developers of recognition and revenue, little more than coffee money, for their hard work. No different than steeling off the shelf.

No major issues with idle dump. Bluemail was the biggest offender; a known power pig in certain configurations. Same can be said about most mail apps albeit some are worse then others.

Play Services will often top the list of active power users as it is performing requested functions on behalf of other apps. Developers would have to write their own routines to handle these functions if not performed by a third-party.

Good luck.
[BetterBatteryStats] :
There's no dump file attached ... ;)
[BetterBatteryStats] Sjain11:
Well, uninstalled everything crap or cracked, nothing much was there in the first place to be honest. Still play services is there in battery stats running without caring.

Maybe it's something that I myself have messed up.

Thanks anyways for your time to read the dump
[BetterBatteryStats] Sjain11:
I had posted it in my previous post. Anyways, here it is again. Glad you took out the time to see it.
[BetterBatteryStats] :
Nothing new or to add to DB126's post, you've already some posts above.
[BetterBatteryStats] Sjain11:
This is in reference with my previous posts about play services battery drain issue. Just wanted to report that the issue still exists. You can see the ss attached below where play services is constantly on the rise, it would soon overpass the screen as the top consumer.

thank you.
[BetterBatteryStats] redhonker:
Is there a screen in this app that display the charging current?
[BetterBatteryStats] Sjain11:
No
[BetterBatteryStats] DB126:
There is no issue; already explained in previous post.
[BetterBatteryStats] Sjain11:
I do realise that the dump looks fine. But then why do the system battery stats show play services as a significant drainer? Should it just be ignored?
[BetterBatteryStats] chrisknife:
funny, the first thing i see in here, is someone with play services drain. weird.

normaly my phone (note8) lasts about 5-6 days in standby.

yesterday i charged it after having it 5 days on standby, since then im getting a huge play services battery drain. like 50% in a day atleast. no changes were done, phone wasn't used once, only whatsapp web ob pc.

when i charge my phone, normaly playstore apps etc gets updated, so i guess play services had also an update.

so i resetted my phone today, even tho it was clean and not many apps installed. no backup used, set everything fresh up from start, like always when i do something like this.

still the same problem.

i will not provide logs or ask for any help, just wanted to let Sjain11 know that you are not alone and that can't be coincidence. something is wrong with play services.
[BetterBatteryStats] Sjain11:
Dear chrisknife

First thing, it isn't funny if your phone is an integral part of your heart.

second thing, it's great to know that i am not alone. But what hurts is that everyone who tried to help above aren't facing that drain, so perhaps it's just some unlucky souls like us out there.

third, yes even i have tried a clean flash and Play services still topped the battery drain list with phone being kept on idle with almost nothing third party installed. So yeah something is wrong with play services, and probably entire Google world and their spies. But then, it should have been with everyone else.

I am sorry for irritating anyone including you with my pesky issues. But yes those really are an issue for me.
[BetterBatteryStats] chrisknife:
well if i google the problem, i find some posts from the past days, were it started for some. soo we are not alone with this.

different devices, different play store services versions and also many people wouldn't even notice it if it would drain even more.
[BetterBatteryStats] DB126:
Random Play Service drains are relevant and real although they occur much less frequently in more recent builds. Same can be said for complex apps that suddenly perform differently with no apparent cause. Of course, there is a cause and effect relationship whether is be user induced, bad programming or something else. Just not apparent or understood by the parties involved.

The most common 'fix' for Play Services drain is to clear all app data (storage) and immediately reboot. Many times that will not resolve the issue, particularly with non-stock devices that are subject to numerous variables disclosed and otherwise. It then boils down to device by device forensics which can be time consuming exercise - especially when preconceived notions on root cause distort objective analysis. Everyone loves a villian.

As for the drains reported here it's important not to be swayed by relative consumption (position in some list) given the role assumed by Google Play Services. Just because it tops the list of consumers doesn't mean it's 'bad' or 'good'. Same statement can be made about any app. One really needs to dig into the details and compare results to norms for device type, app portfolio, usage pattern, etc.

Good luck.
[BetterBatteryStats] veekay:
I have also recently had a large increase in play services drain being over 50%. I normally get 7-10 days of battery life, but recently barely got 3.
[BetterBatteryStats] vojopd:
10 days battery life? LOL
[BetterBatteryStats] JonasVFC:
Version 2.5 awakes the phone so much more than 2.4. Is it possible to disable the screen on/off ref save? Also it wakelocks to update the widget, and i don't even have the widget running, is it possible to disable that as well?
[BetterBatteryStats] chamonix:
Can you provide logs of a dumpfile to support your arguments?
[BetterBatteryStats] JonasVFC:
sent by PM
[BetterBatteryStats] francescod:
[MENTION=1330150]chamonix[/MENTION]

Hello and thank you for your app. You know which stats could be interesting to add? The ScreenOnTime done on Wi-Fi separated from the SOT done with mobile connection, to clearly understand the consumption on the two different connections mode. Thanks :highfive:
[BetterBatteryStats] strongst:
Just switch mobile connection off and make a dump or switch wifi off and make a dump.

How should bbs separate that sot while you have both activated :rolleyes:
[BetterBatteryStats] Bonvaz:
Hi guys,

yesterday I installed betterbatterystats on my OP7 PRO with android 10, I installed the xda version 2.3-248; my phone is not rooted so I used ADB commands to use the app, and all went fine, yesterday my app was running as a charme.

Then I went to sleep, I turn off the phone, and this morning I power it on.

Nowe the app is running weird, and it's not working anymore, it keeps showing "0s battery, 3min of screen medium, 11 s of screen light", only those stats...seems like it freeze or something like that... I tried to close it and reopen it but nothing happen...

What's the problem? I have to grant permessions with adb every time I reboot the phone? Thanks..
[BetterBatteryStats] cipri10:
Edit.
[BetterBatteryStats] adm1jtg:
[MENTION=1330150]chamonix[/MENTION]

I have yet to get an update to 2.5, been in the testers groupd for years (paid user) but just re-installed bbs 16 hours or so ago. Also been part of the hockeyapp listed in OP but no files present.. Any ideas how to get a newer version then is in playstore as I am on LOS 17 which is android 10 based so afraid that the older version from 2018 might not be the right version to use.
[BetterBatteryStats] strongst:
The old version also works on Android 10, just try it,but can be device dependent.
[BetterBatteryStats] adm1jtg:
on marlin.... seems to be working but still would rather be running the latest
[BetterBatteryStats] chamonix:
I am a little confused. Current version on hovkeyapp should be 2.5-341 (same code as the current gplay build). Do you see that or anything different?
[BetterBatteryStats] adm1jtg:
When I click on the release candidate link in OP there are no files

I was already opted into hockey app from lomg ago i think was for oreo testing, it shows a catagory for bettery battery for me but xda version only and when I click on it I again get no files

I also was already opted into the playstore link in OP again from way back when but have yet to receiuve an update, still on 2.4-265

I think t he issue is that when I opted into these groups I was testing the xda versions as if I recall back then those were actually newer then playstore versions.

EDIT: Was able to download the unmodded apk from AAPKS and installed it. on top of playstore version. Had to clear settings and cache on apk but seems to all be working now
[BetterBatteryStats] u11boy:
Hi,

two weeks ago I started having major battery drain problems (high idle drain, drops from 100 to about 35% overnight when in airplane mode).

When looking at BBS, I noticed two peculiar things:

- in the Sensors section, Google Play Services seems to have been turned on all the time with Significant Motion (12), wakeup=true, Time: 11h 18m 54s probably being the bad guy

- In Alarms, "android" had 99 wakeups (9.2/h): 52 from job.delay, 49 from DeviceIdleController.light

For the BBS dump check "https://pastebin.com/e9yv3KYx" (for some reason I cannot upload files here / did not find that option)

Is there a way on non-rooted phones to "fix" the significant motion sensor, or at least to completely disable it? I tried naptime's aggressive doze and "disable motion detection during Doze", but obviously that did not work.
[BetterBatteryStats] DB126:
Nothing amiss with Android or Play Services; device was only 'awake' for 6-7m over 10+ hour sampling window. You either have a hardware issue (including battery) or the source of drain can not be detected by BBS.
[BetterBatteryStats] Bonvaz:
Are a problem those Google play alarms wakelocks? And how to fix them? Thanks!

Inviato dal mio GM1913 utilizzando Tapatalk
[BetterBatteryStats] strongst:
Don't use apps that need gms, that's the simple answer.

The hard one: Your smartphone isn't a smartphone anymore.

The correct one: They're not evil and drain your battery, if the apps that use gms are not going roque.

Please compare other dump files within this thread.
[BetterBatteryStats] DB126:
Yep - that be the 'right' answer! :)
[BetterBatteryStats] steven360:
2 things i've noticed

1. BBS: Event processing shows up permanently in my notification area and i've read that it's required but this didn't shot up on other Pie builds, just on funky MIUI 10.3.6.0.

2. I've got the API message where it shows a popup containing

Detected problems with API compatibility (visit g.co/dev/appcompat for more info)

but not sure if it affects the app's functionality in any way?

Thanks for all help in advance.
[BetterBatteryStats] cipri10:
Hi guys, what's sar_detector running all the time? I'm using Miui 11 on Pocophone F1
[BetterBatteryStats] who ah way:
Android 10: Maybe WIFI / Adguard problem?

Totally confused about battery life since upgrading my OnePlus 7 to Android 10.

It went from awesome to dead awful! Considering downgrading to Pie.

TL;DR:

My feeling is that the problem is WIFI, not wakelock at this stage. Perhaps related to AdAway. I force-added some apps to Greenify, and during the standard test required here, we went from 95 to 92 over 10½ hours — not awful.

But in the following hour, from that custom point on, the phone went from 92 to 82!

Posting both dumps:

1. Standard test from 95 with screen off

2. One-hour test with screen on

More Details

- Bought BBS on Google Play and signed up for beta

- Phone is rooted with Magisk.

- I have Greenify with donation package. On Pie never needed to add anything, on 10 added Spotify, PocketCast and others that seemed to wake a lot

- Maximum drain seems to happen over WIFI, wondering if AdGuard may be involved

- Attaching two BBS dumps: (i) standard test from 95 to 92 with screen off, (ii) custom one-hour from 92 to 82 with screen on

For the Standard Dump, followed these instructions:

Would some of you be able to share some pointers please?
[BetterBatteryStats] strongst:
To your idle dump(1): 0.3%/h is very good. Yes, adguard is downloading 1MB in the background. But it's up to you if you want to use that app. It's not my recommendation, but since the impact isn't large...

To the 2nd dump(2): usage dumps cannot be analyzed cause bbs does not record everything. So this is just an assumption: yeah, wakelocks cause wifi are there. Maybe the wifi you're using isn't best suitable(signal strength etc). The drain is very high, but you did not mention what you did etc.

More opinions will come.
[BetterBatteryStats] papakitou:
Hello.

Fresh install, what is keeping my phone awake?

Edited, sorry wrong file
[BetterBatteryStats] strongst:
Ups, something went wrong with your attachment(wrong file?).
[BetterBatteryStats] DB126:
Yep - "old" devices frequently perform poorly when upgraded as power saving optimizations (interface w/kernel) are often lacking. A lesson relearned every fall as folks rush to the lastest Android incarnation.
[BetterBatteryStats] DvLAx3l:
Hi guys, my phone doesn't like to sleep well... I'm going crazy, I can't figure it out what is keeping it awake ?
[BetterBatteryStats] strongst:
Your dump file isn't usable. Please make a new one with more than 6h recording time and only some seconds screen on time(please read the first post and see other dump files for reference).
[BetterBatteryStats] DvLAx3l:
My bad, I'm sorry, I'll make it during the night, at least 6h, got it
[BetterBatteryStats] papakitou:
Anyone?
[BetterBatteryStats] strongst:
Still wrong file, kinda cutted :D
[BetterBatteryStats] Oswald Boelcke:
First, the link was broken and now it's not an idle dump but a logcat. If you want somebody to look into probable causes why your device stays awake, please provide a idle dump in accordance with the guidance in the OP (briefly minimum 6 hours and less than one minute screen-on-time).
[BetterBatteryStats] papakitou:
I'm sorry for the inconvenience.

I will try to leave it overnight
[BetterBatteryStats] DvLAx3l:
Ok, now the logs should be fine, if anyone have time, can help me to figure it out? Thanks ?
[BetterBatteryStats] strongst:
Hello, I can see Bluetooth related wakelocks, maybe from location scanning. Also huge amount of downloads in the background from several apps like Google photos, whatsapp, Facebook.
[BetterBatteryStats] Sjain11:
Hey

How do I know which apps are using gms?

I have the exact same problem that the other user is having.

---------- Post added at 11:17 AM ---------- Previous post was at 11:12 AM ----------

Did you find a fix? I am having very similar issues. But I am rooted.
[BetterBatteryStats] strongst:
Freeze gms, use apps and see if they're working :)

Nearly every app uses gms(mainly for Google connectivity) today. It's like android system web view to reduce the size of the app, they call other apps or services.
[BetterBatteryStats] Sjain11:
Gms is the same as Google play services right?

Freezing play services makes device unusable.. It won't break anything directly, apart from google apps like play store, gmail and all location services. But still android doesn't work as intended without play services, sadly. So I don't think that's really a good option.
[BetterBatteryStats] strongst:
You can use the device without Google like in China or with microG.

That's up to your personal preferences.
[BetterBatteryStats] x-geo:
Hello

From days ago, i'm having an aprox 20/25% drain overnight, i'm going to sleep with 75% and when i wake up, the phone is in 55/50% and i dont know why

Here are the log files

Thanks for tour help