yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] -Arturo-:
Thanks Guys,

I suspected either MSM_HSIC_host or Location service as I had a lot of alarms from google play services and I believe I had once while testing location set to battery saving and If I remember I had only like 15ish minutes of phone being awaken with screen off.

With regards to MSM_HSIC_HOST I will look into what other kernels I could test but there won't be many as my galaxy S4 is an quite old device. But t's one of those device that has an optimal size for me so unless the community development for the device stops, or it will die on me I won't look for a replacement.

Since I moved to Nougat builds I did notice strange cell reception behaviour. I'm in range of 3 cell towers not more than 300-400 meteres away from my home but my phone keeps constantly switching towers as I can have 4/5 bars or 2/5 and often phone shows 0/5(even though I can still make a phone call).

So MSM_HSIC_HOST could be a main reason of poor battery life due to poor signal/constant tower switching. Also that's with LTE off as I rarely get good LTE signal at home. 1-2 bars at most and I'm being switched to H+ by the network/phone(even if after some time my signal bar shows 0 bars on H+)

I do get full LTE signal when I'm in the garden though. I do have the latest modem for my device.

The problem started when I switched to Nougat but at the same time time I switched places recently and I have a lot of those old 10+ floor buildings surrounding my place so maybe that could be a problem as well. I did test 2 various mobile network operators sim cards in the phone on both often showed zero bars reception.

A bit suspicious so it could be rom/kernel related in the end.

I will look into different kernels and will try to fiddle with Open signal app to keep reception in check.

@ fossils-n-dents I will PM you so about those background processes so maybe we could squeeze a few more percent out of that battery.
[BetterBatteryStats] peterlee928:
no PM... the entire community may benefit from this... share the wealth! ?
[BetterBatteryStats] j1gga84:
[MENTION=1330150]chamonix[/MENTION]

is this a fake..?

https://a2zapk.com/91475-betterbatterystats-2-3-paid.html

regards
[BetterBatteryStats] TNSMANI:
Most probably someone is out to make some moolah on the side at the expense of others. See how the changelog mentions only 2.2.2.0 and not 2.3. My suspicion is that the current apk is simply renumbered.
[BetterBatteryStats] Oswald Boelcke:
At least there is really the v2.3 BETA. Just about an hour ago, I downloaded and installed that out of Google Play Store - BBS Beta Program. And now, minutes ago when I decide to take the screenshots there was a new download of v2.3-103 available at the Play Store.

Otherwise, I concur and assume somebody else is trying to make money with other guys' products.
[BetterBatteryStats] Oswald Boelcke:
Like @peterlee928 I'd be very happy if you refrain from using PMs but to share your knowledge and experiences in this thread to allow everybody to benefit from any good idea.

My device is a Samsung GS3 LTE (GT-i9305) i.e. even older than yours I believe. I'm even not on the latest baseband/modem as I've experienced my current one is working best for me. My feelings to the i9305 are the same as yours for the SGS4. Anyhow, you might only fight these wakelocks by a different kernel; I hope you find one.

I'm convinced that your msm_hsic_host wakelock is definitely connected to the utilisation of mobile data. Actually, I didn't know this one before 'cause I was always only confronted with the msm_hsic_pm0 wakelock before. However; I guess they haven't only the name in common.

For this reason, the following post/threads might be interesting reading:

https://xdaforums.com/showpost.php?p=48725357&postcount=21408

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

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

Last but not least, due to my msm_hsic_pm0 wakelock I setup my system to go to 2G when screen is off, and to only remain on 3G/4G with screen on. I think it enhanced my battery life but I still receive all notifications and even important in time.
[BetterBatteryStats] cpasoft:
How do you do this??? I mean, setup your system to 2G when screen is off...

Enviado desde mi X98 Plus mediante Tapatalk
[BetterBatteryStats] Oswald Boelcke:
It's part of the settings of my (highly customisable) ROM - Resurrection Remix (currently RR-N-v5.8.4-20170808-i9305-Official).

Please refer to screenshots.
[BetterBatteryStats] chamonix:
I would not recommend downloading APKs from untrusted sources. I published the first google play beta of 2.3 today (more about the changes in my workflow in a separate post later today.
[BetterBatteryStats] carlylemiii:
Not sure if this has been posted (I did a search but didn't find anything) but some apps have pink icons/text/etc. upon upgrading to Oreo. BBS is one of those apps that needs "fixing" (I use that word loosely since it's functionally okay, but it looks a little goofy).
[BetterBatteryStats] :
Big thanks to you and your long-term support and development for BBS! BBS is now for ages on my devices and it's working great!-

Maybe I'm blind ... and sorry for this "stupid/noob" question:

Today I've updated from 2.2.2.0 to latest 2.3 and now the text color in my legacy widget changed to black (coming from white). Where can I switch the text color from black to white again? Black text and black background is challenging ...

Thanks again.

LineageOS 14.1, OnePlus 3
[BetterBatteryStats] chamonix:
I indeed made a change in regards to the colors due to deprecated APIs in Oreo but I am not sure what you mean (I have tested with both gauges and bars with light and darf theme on oreo). Could you maybe post a screen-shot with additional info if you are using any kind of theming?
[BetterBatteryStats] chamonix:
If you mean the font color in the gauges it has been fixed in 2.3 (in beta on gplay since today). If you have other findings that need some fixing please feel free to give me feedback as I have not noticed anything else yet.
[BetterBatteryStats] :
thanks for your fast reply.

I've attached two screenshots one with BBS 2.2.2.0 and the other with BBS 2.3. No theming.

Hope it helps.
[BetterBatteryStats] fossils-n-dents:
These services have been disabled using MyAndroidTools Pro in my device without any untoward side effects. Most service disabling apps should be able to produce the same effect. Some selections may not be available due to device, rom, ect. *Always make a backup before shutting down services.

'Google Play Services' under 'Services' tab:

adrequestbrokerservice, advertisingnotificationservice, advertisingidservice, analyiticsservice, analyiticsuploadingservice, appmeasurementjobservice, appmeasurementservice, autofillservice, d2dmigratehelperservice, d2dmigrateservice, d2dtransportservice, gamesyncservicenotificationproxy, *packagemeasurementservice, persistentboundbrokerservice, restoresessionservice, workaccountauthentificationservice.​

'Google Play Services' under 'Broadcast Reciever' tab:

accountschangedreciever (All entries), activatedeviceadminuponlockreciever, appmeasurementinstallreferrerreciever, appmeasurementreciever, checkinserviceactivereciever, onetimeinitializerreciever, packagechangebroadcastreciever, *packagemeasurementreciever, persistentnotificationcancellationbroadcastreciever, scheduleinternalreciever, schedulerreciever, scorenetworksbroadcastreciever, systemupdateserviceactivereciever​

*packagemeasurementservice & packagemeasurementreciever will reset upon any reboot. I simply reenable them. They help towards lessening 'com.google.android.gms' issues for those that have them.

'Google Play Store' under 'Services' tab:

appmeasurementservice, setupwizardpaymentsenablementservice, firebaseinstanceidservice.​

'Google Play Store' under 'Broadcast Reciever' tab:

appmeasurementreciever, contentfilterupdatedreciever, instantappremovemonitor, instantappsconfigchangelistener, setupwizardpaymentsaccountchangebroadcastreciever, firebaseinstanceidinternalreciever, firebaseinstanceidreciever.​

'Google Maps' under 'Broadcast Reciever' tab:

startphototakennotifireservicereciever (May be disabled already).​

'Google Services Framework Engine' under 'Services' tab:

checkinservice, eventlogservice, subscribedfeedsyncadapterservice, systemupdateservice.​

'Google Services Framework Engine' under 'Broadcast Reciever' tab:

checkinservice$reciever, checkinservice$secretcodereciever, checkinservice$triggerreciever, eventlogservice$reciever, googlelocationsettings$locationsettingschangedlistener, migratetoaccountmanagrbroadcastreciever, systemupdatservice$reciever, systemupdateservice$secretcodereciever.​

'Google Text-To-Speech Engine' under 'Broadcast Reciever tab:

analyticsreciever.​

*I also use App Ops for Google Play Services to select the 'Prevent Phone From Sleeping' option. =Deny (Optional)

Locate and disable any entry in all installed/ downloaded apps on your device that have the following in it's description in the 'Service' and 'Broadcast Reciever' entry:

appmeasurement, firebase, campaigntracking, analytics, installrefer, adservice.​

*Always create a backup before disabling services.

After impementing, reboot to recovery, wipe Dalvik and cache (4 or more times each). Reboot. Try an idle run.

I apologize for the length. I didn't wish to spam the thread. I hope this helps someone.
[BetterBatteryStats] peterlee928:
fantastic list!!

one question - do you use any google email apps (gmail, inbox, etc)? if so - do those emails arrive real-time even with all these restrictions?
[BetterBatteryStats] kevindd992002:
Here's a other try (only for 4 hours plus though):

https://www.dropbox.com/s/ecunzkrb06ufeld/BetterBatteryStats-2017-09-07_063513922.txt?dl=0
[BetterBatteryStats] DB126:
Interesting list; thanks for posting. For a different perspective I typically score 0.2-0.3%/hr idle drain on several dissimilar devices with only a couple Google Play Services receivers disabled. I don't spend an inordinate amount of time tuning my devices but do take common sense steps to rein in bad actors. The secret sauce is different for everyone which is why I advance a minimalist approach first and ramp up incrementally as needed. Big fan of the 80/20 (better yet 95/5) rule so I can get down to using my gizmos vs managing them.
[BetterBatteryStats] fossils-n-dents:
All email services arrive in real-time unless auto sync is disabled. Text messaging apps work also.

These entries were formed over months of scanning many XDA thread searches, external research, experimentation, and trial/ error. These are services I found to be necessary to Google and some app devs, but not so much to the user. I prefer crash reports, error reporting, device configurations, app usage stats, ect be extracted from those users who prefer to remain unaware of what is running in the background when their phones idle. This list cuts down on the background chatter/ device radio usage/ kernel wakeups/ which, in turn, lessens the load on Android System and Google Play Services, thereby lessening the load on my battery...In theory.

I would never deliver entries that would cripple the user experience. Your device will remain 'Smart'. I have been running this configuration since April 2017 up until today. Many entries did not make my list due to breaking device functionality.
[BetterBatteryStats] peterlee928:
i heart you lol
[BetterBatteryStats] DB126:
Dump file looks good. Drain rate was 0.9%/hr with only 6 min of screen-off wake time which is what one might expect on an unrooted device running Android 7.0 - especially an upscale phone like the S8. Power consumption was a bit high (like to see it 0.5%/hr or below) much of which appears attributable to using Samsung's native mail app. Might consider switching that out at some point. Otherwise, nothing much to report or 'fix' unless you want to get aggressive which is not really something I personally advocate. Enjoy your phone.

---------- Post added at 11:37 PM ---------- Previous post was at 11:10 PM ----------

Hi, I have been performing BBS dump analysis for a bit in this thread and elsewhere on XDA. Partly to learn from others experiences, mostly as an unsolicited 'give back' to the community that has proven amazingly diverse, helpful, talented and welcoming over the years. Time moves on, contributors come and go. My thoughts/suggestions/council/rants/whatever on Android power management live on in wordy posts that will soon be overshadowed as their relevancy fades. Looking forward to seeing what others have up their sleeve! Thanks for your patience and generous remarks. Be sure to whack the 'thanks' button if an XDA member has helped you in any way (good grief...not on this one!). Happy computing - may your Android's battery live long and prosper (yeah - that was dumb). :eek:
[BetterBatteryStats] peterlee928:
if this is your (close to) final post, then please allow me to extend my most gracious thanks to all your incredible insights and contributions. it is people like you who make xda such a valuable forum. to say you will be missed is a gross understatement. good friend, wish you all the best and dont be a stranger! ???
[BetterBatteryStats] kevindd992002:
What mail app should I be using instead?
[BetterBatteryStats] j-a-c-k:
Hi mate. It's easy: at least on Resurrection Remix it's a built-in feature. Also there are some Xposed modules that can do this.
[BetterBatteryStats] chamonix:
Good catch! Fixed in build #104
[BetterBatteryStats] Oswald Boelcke:
@Davey126: Unable to find better words than peterlee928 to express my thanks and deepest appreciation. I fully concur with every quoted word above.

Take care and all the best to you and your beloved ones. Really hoping to occasionally see you again.
[BetterBatteryStats] TNSMANI:
[MENTION=5488402]Davey126[/MENTION]

I am sure we are going to miss your knowledge and experience. Apart from that, I was/am fascinated by your language skills. The way the words simply roll ......., I am in awe.

Remember us.

---------- Post added at 03:12 PM ---------- Previous post was at 03:09 PM ----------

I use LeanDroid from PlayStore. It has other functionalities also. You need root.
[BetterBatteryStats] zarere:
Any link to 2.3 version of the app.The link in https://rink.hockeyapp.net/recruit/e8a901e5d6a04e73a95c53b0fa21ab1a

is expired.
[BetterBatteryStats] kevindd992002:
What happened to you Davey? This is the first time I met you here in this thread and now you're leaving? :(
[BetterBatteryStats] chamonix:
Sorry for that! the slot was wrongly limited to 100 slots..... I have set it to unlimited so that it goes on accepting testers
[BetterBatteryStats] zarere:
Strange I still get the error below:

testers

This recruitment has ended. Thanks for your interest!
[BetterBatteryStats] TNSMANI:
Clear cache and then try.
[BetterBatteryStats] zarere:
Did that already also tried with brand new browser still the same error.

curl https://rink.hockeyapp.net/recruit/e8a901e5d6a04e73a95c53b0fa21ab1a |grep ended

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 8505 100 8505 0 This recruitment has ended. Thanks for your interest!
[BetterBatteryStats] :
Thx!!!
[BetterBatteryStats] chamonix:
Anyone else with the same problem? The recruitement was ended as all slots were taken but I have re-enabled it with unlimited slots and can not reproduce, even on another device.
[BetterBatteryStats] zarere:
Well I don't know what you did since last 30 min but it's ok now.Thanks for your help :)
[BetterBatteryStats] fossils-n-dents:
My pleasure to posting my findings Davey126. I can now get my device from 0.1-0.3%/hr with all of my tweaks, but became fascinated at how some processes holding wakelock, once disabled, bore no discernable impact to device functionality.

Also, to learn some processes were simply conduits for uploading/ downloading data to/ from outside servers for analysis, or dowloading small configuration changes without my knowledge to my device was problematic for me.

Discovering Firebase and Firebase Analytics raised a big red flag with me . I get why it's done, but it's implemented poorly, secretively, contributes to battery drain, and should be optional within the app settings themselves. Disabled at every turn.

The first time I met you on this thread, you looked at my idle dump and said, "Your device problems are self-induced." (Paraphrasing)

That simple piece of information started me down the path of learning how to find the right mix of apps and device settings to feed through Android System and Google Play Services to get my first 0.6%/h idle drain. Reading your insights inspired me to research, and teach myself to read my own idle dump(s). Once armed with a laymans understanding of how apps, Google Play Services, radios, kernels and device settings influence how Android System will perform while idle, I was able to create my own 'Secret Sauce' to enter sleep smoothly, and consistently when my device is put down. Thus, leaving me plenty of time to simply enjoy my device.

Thank You so Very Much for your precious time Davey126! Your delicate balance of technical knowledge, hard truths, and personal experience(s) will be missed. You made me fanatical about idle drain, and very aware that no matter what the advertisement says, Android devices are like Jurassic Park, first there are the 'Oohs and Aaahs'...then there is the running and the screaming. And we came running to you.

Good Luck in your newly found freedom, and don't be a stranger. Noc.jfcbs and many other talented individuals will hold down the fort to keep the high standard you set upheld.:)

One more thing...

​
[BetterBatteryStats] gaich:
It works well, no problem. By the way, I have updated Russian on github.
[BetterBatteryStats] peterlee928:
[MENTION=5488402]Davey126[/MENTION]

we all praise you for your wonderful efforts. rightfully so.

but the reality is that, most importantly, you have been a good friend to both new and old folks. i feel safe in speaking on behalf of everyone that that is what we will miss most of all. the loss of a good friend.

hopefully you will find some time to occasionally stop by and simply say hello. and talk a lil smack while youre here lol.

best of luck again on your new paths. we are all rooting for you!
[BetterBatteryStats] fossils-n-dents:
Everything went well from email notification to link.

Downloaded, and 2.3-104 works like a charm with no issues.
[BetterBatteryStats] azeem40:
I've noticed that 988 of these are job.deadline.

My drain is much worse at work even with airplane mode on. I listen to music at work, but I still end the work day with 55 or so percent with about 2 hrs screen on time. It shouldn't be draining so much even with music.
[BetterBatteryStats] shyamprakash:
Thanks for the list..

Please let me know what this does :

*I also use App Ops for Google Play Services to select the 'Prevent Phone From Sleeping' option. =Deny (Optional)
[BetterBatteryStats] fossils-n-dents:
App Ops is a permissions app available on GooglePlay Store. I use it specifically for the option to 'Keep Google Play Services from keeping the device awake'. The correct setting to disable the permission is 'Deny'.

When using this app, select it as 'Do Not Optimize' in your devices' settings menu.

Menu> Power> Battery Optimization> App Ops 'Don't Optimize'.
[BetterBatteryStats] DB126:
[MENTION=6089972]peterlee928[/MENTION] [MENTION=7408621]noc.jfcbs[/MENTION] [MENTION=7308571]jlb1959.01[/MENTION] [MENTION=4138220]fossils-n-dents[/MENTION] [MENTION=5656100]tnsmani[/MENTION],others...

Tip-of-the-hat, gents. Humbling, heartfelt, ridiculously generous. An emotional readout would have me surrendering my 'man-card' (such as it is) for a weenie badge. None of that! So I will just say thank you and note the learnings have gone both ways. Reread that last sentence.

A "lil smack" you say?? Gotcha pencilled in for a future engagement. Be prepared to lose! :) :)
[BetterBatteryStats] lklaus:
I'm having 1 .6%/h drop, and I really can't locate it. In the first 24h, the drop normally is below 1%, but with the second night no way... Here tasker was active, but I also tried it with tasker disabled, for no great changes (should try again, as this is some time ago). Tasker puts the phone into airplane mode from midnight to 6 o'clock...

Anybody got any clues?

View attachment BetterBatteryStats-2017-09-08_060229932.txt
[BetterBatteryStats] Oswald Boelcke:
@shyamprakash: I personally use a Xposed module called AppOpsXposed for the same purpose.Obviously, it's a prerequisite to run Xposed on the device as I'm currently positively using the unofficial Franken-Xposed framework for Nougat. And I'm able to confirm that AppOpsXposed is working.

As you can see in the screenshots I'm denying to "stay awake" for dedicated applications while others retain this permission.

Remark: The first screenshots refers to Google Play Store.
[BetterBatteryStats] jlb1959.01:
thanks for your help,knowledge,much much appreciated.:)
[BetterBatteryStats] Paradox♀:
[MENTION=1330150]chamonix[/MENTION] Corrections in #post 2 *now instead of no @ line3 word 5.
[BetterBatteryStats] fossils-n-dents:
Disable/ remove Tasker for a while again, or fix it's settings to be less intrusive for simply putting your phone in airplane mode for 6 hours. Also, I would recommend you try ForceDoze simply for the option 'Disable Motion Sensing For Doze'. It prevents device movement from turning off Doze Mode. It works. I say this because Google Play Services hit your 'Significant Motion Detector' 47 times . It may gain a few more munutes of Doze. Every bit helps.

*Check you individual apps push notification settings so they fire off when you want them to, and not when they feel like it. Even XDA Labs app can be brought to heel.

Reboot to recovery, clear your Davlik & Cache (5-6 times in a row each). Try another run, post your findings. Preferably from 'Unplugged to Current' at 100% battery capacity.

All else seems to be in order with what you have installed on you device.
[BetterBatteryStats] kevindd992002:
Is there any reason to use BBS to analyze screen on usage? I feel that my S8's battery drains too fast when the screen is on and I don't know which app is the culprit.
[BetterBatteryStats] paco_ramirez:
This info has been taken with wakelock detector. I post it here because I know you are experts on this and maybe you can help me.

Any idea of how to stop this kernel wakelock? It's killing my battery more than 3% per hour on air plane mode.
[BetterBatteryStats] azeem40:
This got buried in the comments, but I really need to know what those job.deadline wakeups are.
[BetterBatteryStats] fossils-n-dents:
You may have an app whose 'Job Scheduler' cannot run under Doze while calling a service say...every 10 seconds, and is missing it's chance to perform said service....over and over again. Actually, Jobscheduler cannot run under Doze. The only other option is for the dev to drop down to Alarm Manager, and use 'setExactAndAllowWhileIdle', but that wouldn't allow them to hammer your device (And Battery) anywhere nearly as frequently as they wish.

The workaround: Find that app, turn off 'Battery Optimization' for that app, which the dev should have alerted you to in the product description. Or, it could be a fluke, try a hard reset.

Nailing down *Job Deadline* alarms to an individual app is beyond my scope at this time. Yet, you don't have a high count in the 'Alarm Manager' entry in the 'Wakelocks' section, nor any drain to go with it. Your device only lost 0. 2% in 5 h 31 m despite Android System firing off 3. 2 alarms per minute. Wow. One Plus devices are quirky thay way. You may have to let it go, as those alarms added up to nothing.

Try lowering notification frequency in SnapChat, Facebook or try FB Lite, and disable Location/ Bluetooth whenever possible. Every little bit helps.

Reboot to recovery, wipe Davlik and Cache (5-6 times each), try another idle run (6+ hours if possible), post your findings. Good Luck.