yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] mrjuniork:
[MENTION=4138220]fossils-n-dents[/MENTION]

Have you ever tried to deactivate the com.google.android.gms alarms with Amplify?

Since I still had some of them popping up (GCM_RECONNECT, ALARM_WAKEUP_ACTIVITY_DETECTION, ALARM_WAKEUP_DETECTOR) I decided to try Amplify for controlling them in terms of allowing them to reconnect every 10min or so.

So far I haven't encountered any issues or side effects yet and the alarms are kept in check for now...

I still lose around 6-8% over night with WLAN connected and data switched on. I'm aware that I'm lower than 1% per hour, but it still feels a lot for zero SOT and almost no activity (coz even though I haven't had whatsapp making a backup and deactivated TB for the night, I still had that "normal" drain of 6%)

Those alarms just don't let me off the hook, it's starting to drive me nuts :)
[BetterBatteryStats] fossils-n-dents:
I have used Amplify in the past. When I purchased my first Nougat device, there was no Xposed/ Amplify to limit Alarms battery drain.

By the time I finally got my device to idle at 0. 3% /h, I had no need for Xposed/ Amplify. I average about 4. 0 'gms' Alarms /h. But everyones' device is different.

In the absence of Xposed/ Amplify, I pushed an agenda of deleting un-needed apps, limiting Google Play Services background operations by stopping services, keeping location, BT, GPS, ect, disabled until needed, as that leads to lower backgound operations, less network chatter, less interaction with Google Services/ Android System, and thereby increasing battery life during idle.

Background operations while the screen is off still occur from the other apps. WhatsApp was simply your major offender.

Taking inventory, and removing apps yields instant results. Make a backup, delete 5 apps (Just for fun), and watch battery life improve. Then limit those remaining alarms. Research + Trial and Error.

It's very simple... Less in = Less out.
[BetterBatteryStats] kevindd992002:
[MENTION=4138220]fossils-n-dents[/MENTION]

Here's a 5-hour idle dump from my phone while I was sleeping:

https://www.dropbox.com/s/nw6tkdd1kbzcqga/BetterBatteryStats-2017-10-13_053132067.txt?dl=0

Can you help me analyze it please? Thanks.
[BetterBatteryStats] DB126:
:good: :)
[BetterBatteryStats] fossils-n-dents:
Your device sleeps perfectly. Battery drain is in line with what is installed. Your device is not malfunctioning.

Your battery drain arises from a combination of apps, their background processes, and device settings (Location, Sync) enabled.

SulitPH/ Tapatalkpro/ Facebook/ Viber/ MS SkyDrive/ and Samsung Services are your battery culprits. Slickdeals, Reddit, Grabtaxi, Ubercab, and Google Play Services, ect, also have a hand in the pot to a lesser degree.

Try the Greenify app. In Google Play Store settings, disable 'Auto Update' (You can update manually). Disable the GPS and location until you need them. If MS SkyDrive and Google Drive are enabled simultaneously...Pick one. SulitPH, Slickdeals, and Reddit...Delete them and use your browser instead. Try Facebook lite instead. Learn how to enter your device 'Recovery Mode' and wipe 'Davlik and Cache', then wipe 'Cache'...reboot.

These are small steps you can try to get under 1. 0% /h drain. Social media apps are always syncing/ locating, and will contribute to drain. Multiple social media apps will add up to constant drain. A neccessary evil. Without root, not much can be done.

If you are adventurous, you could try the Naptime app (Fransisco Franco) from Play Store to get better sleep results while whitelisting preferred apps (ADB commands required for the non-rooted).
[BetterBatteryStats] cpasoft:
Is it similar to force dooze?? Which is better??

Enviado desde mi X98 Plus mediante Tapatalk
[BetterBatteryStats] fossils-n-dents:
Yes, ForceDoze will suffice. Naptime gives more fine tuning concerning alarms.
[BetterBatteryStats] manalicream:
Can you please look at this? I was 1 min 30 seconds off 6 hours hope that is OK. Thank you.
[BetterBatteryStats] githyanki:
It looks like your stats are messed up to me. All of the alarms are the same time. Try clearing app data on bbs and making a new log.

Otherwise, 0.3%/hr is pretty good. The only thing that you could consider is trimming some apps. com.mxdata.tube.Market.Tube Map shows at the top of the page, but I don't really trust that list with all of them showing the same times.
[BetterBatteryStats] fossils-n-dents:
If Naptime is enforcing alarms, it is possible for them to fire at the same controlled rate. Wakeups will also appear similar due to those actions.

Stunning job [MENTION=4552295]manalicream[/MENTION]! Judging by your log, the only way to get lower idle drain is to start removing apps (Not neccessary at all). Your device is in the 'Zone'.

*Create a backup of your device configuration...just in case.

Every 4-5 days, reboot to recovery, and wipe 'Davlik Cache' and 'Cache'. Enjoy your device.:good:
[BetterBatteryStats] iamnotkurtcobain:
God almighty.

How do you get such a deep sleep and so few wake ups!?!

Are you using naptime? Google syncs disabled? (Contacts, calendar,...)
[BetterBatteryStats] brokich:
Hello, I am having a weird wakelock, that looks like this:

*net_scheduler*

com.viber.voip.Viber

It's listed as a single wakelock and has the icon of Viber. It seems to be keeping my device awake the most while I am not using Viber on the phone and have Wi-Fi off (on LTE).

Any ideas on how to stop it without uninstalling viber?
[BetterBatteryStats] githyanki:
Look through it's settings for an option to not run in the background, or try clearing data on it.

If those fail, perhaps greenify can tame it.
[BetterBatteryStats] fossils-n-dents:
The only Google apps I have installed is Google Play Services, *Play Store and Maps (Maps is disabled until I need it). My device is fully/ brutally debloated.

*Automatic Updates are disabled in Google Play Store (I update manually).

For social media/ e-mail, I use Chrome browser. I use stock text messaging, contacts, calendar and phone dialer (All HTC).

Uber, Sports, XDA app, I Font, Weather, Market News, Zoom FX camera, Sync (I sync Manually), Bluetooth, Location, and Wi-Fi are disabled until I need them. All installed apps have had their Ad Services and analytics removed. =Zero background nonsense.

I disabled many uneeded Google Play Services background services using this guide:

https://xdaforums.com/showpost.php?p=73693320&postcount=32709

Greenify (Paid version), Forcedoze (Kills sensors during Doze/ Instant Doze/ Don't wake device through movement), and App Ops (Do not allow Google Play Services to wake device).

ElementalX kernel and EXKM. Little Cluster Max: 1324MHz/ Big cluster Max: 1920MHz. All while running Viper ROM.

The less you give Google Play Services to do, the less it can hurt you.

The specific problem is apps that have to use data keep the mobile radio active for too long.

Using MyAndroidTools Pro (Assuming you are rooted):

The two receivers responsible for the "net_scheduler" wakelock are "SchedulerInternalReceiver" and "SchedulerReceiver".

Open MATPro (Or similar service disabler app)...Google Play Services> System> Broadcast Reciever> Disable "SchedulerInternalReceiver" and "SchedulerReceiver".

Viber will go through Google Play Services before dealing with your system. Disabling those two services cuts it off "net_scheduler" at the source.

If you are not rooted:

Is the problem replicated in Safe Mode? Try deleting the cache in Google Services Framework (May be temporary), or updating Google Play services. Try clearing cache in Viber. Try clearing cache in Google Play Services & Play Store.

If you go to Settings > Accounts and look at each of your accounts listed, are any of them mentioning (with an error message) that they're having trouble syncing?

I'm just throwing ideas at you. Guessing may not solve anything. The best way is to post your Better Battery Stats dump file for the total overview. Good Luck.

Thank You!:good:
[BetterBatteryStats] coolvabs:
Can you please look at the stats? My idle drain is about 1.2%/hour and I think it can be lowered. Any help will be greatly appreciated, thanks!
[BetterBatteryStats] iruleshtar:
Sorry I am a noob...

How do you know your iddle spent 1.2% per hour? ...

I use this app yesterday...
[BetterBatteryStats] TNSMANI:
Look at the stats.

First is General Information. Next is Battery Info and the first line is "Level lost [%]: Bat.: -9%(94% to 85%) [1.2%/h]". That shows how much the battery drained during the period the stats were collected.
[BetterBatteryStats] fossils-n-dents:
Your device is operating perfectly with the excessive amount of applications installed. Each app has it's own background operations (Your#1 cause of idle drain). Bluetooth, Location, and Sync are active also enabled which provides unfettered background actions/ data usage that will keep your device active in the background long after the screen is turned off (As evident in the CPU usage section of your log). But, your device does enter Doze and remains in Doze until you awake the device.

*Firstly, use this: https://xdaforums.com/showpost.php?p=73693320&postcount=32709

*Follow the instructions carefully.

Secondly, install Greenify (Preferably the paid version). Enable 'Aggressive Doze' and 'Greenifying System Apps'. Use the Xposed Framework with Amplify to limit alarms (A Magisk compatible Greenify module is available).

Within the Google Play Store App, turn off 'Automatic Updates' (You can update manually).

Get rid of Accu Battery, Trip Advisor, Zamato (Do you really, really need this? Really?), Wunderlist...Why? Netflix can be accessed through your browser, you don't need an app for that. Pepperfry?...Pepper-Why? (Get rid of it), Javelin Wallpaper Changer (Change your own wallpapers), Get rid of Hermit and Airtel (Use the browser). Each of these apps add background overhead (Battery drain) to your device while idle, their removal lessens the strain on your battery/ cpu.

For further savings, disable Location, Bluetooth, and Sync until needed.

Every few days, reboot to recovery and wipe 'Davlik Cache and Cache. while you are in recovery, create a backup.

Come back later with a new idle log, and hopefully you should be under 1. 0% /h drain. Good Luck.:good:
[BetterBatteryStats] PackElend:
I've just figured out that BBS shows different log entries depending if 'BBS...Settings> Advanced>xxx API' activated or deactivate and time range screen off and current , e.g. Alarms:

screen off and screen on 'BBS...Settings> Advanced>xxx API' activated

android

com.whatsapp

com.android.email

com.google.android.gms

com.xda.labs.play

com.android.phone

com.cyanogenmod.lockclock

screen off and current 'BBS...Settings> Advanced>xxx API' activated

com.facebook.lite

screen off and screen on 'BBS...Settings> Advanced>xxx API' deactivated

android

com.whatsapp

com.android.email

com.google.android.gms

com.xda.labs.play

com.android.phone

com.cyanogenmod.lockclock

screen off and current 'BBS...Settings> Advanced>xxx API' deactivated

android

com.google.android.gms

com.whatsapp

com.facebook.lite

com.android.email

com.xda.labs.play

com.android.phone

com.cyanogenmod.lockclock

If there isn't anything wrong that would lead to the fact that you have to do two dumps, one with

'BBS...Settings> Advanced>xxx API' activated

'BBS...Settings> Advanced>xxx API' deactivated

Screenshots are attached in the same order as listing above. The last two ones belong to 2b

------------------------------------------------------------------------------------

thx but what do you mean by OP instructions, operating?

Any chance that [MENTION=1330150]chamonix[/MENTION] will update the front page of this thread? That would you save time explaining the same and the same again.
[BetterBatteryStats] iruleshtar:
Wow, so you have a good battery stat...

Mine showing 2.3 /h

How to make it better?

Tell me please what I should do because I'm a newbe..

Thank you for any advice :)
[BetterBatteryStats] githyanki:
Read through the last several pages to see what to do. Fossils-n-dents gives a lot of great advice.

If you want help after trying his suggestions, submit a bbs idle log.
[BetterBatteryStats] iruleshtar:
Now I should not use my device for about 5 until 6 hr and then post the BBS Log..

Last question.

How to create BBS LOG? is it auto create?
[BetterBatteryStats] coolvabs:
Thanks for all the help, will be definitely helpful. I have uninstalled the apps I don't need and frozen the apps that I don't use Very frequently. Can't touch wunderlist because I used it all the time.:)

A few questions though. should I enable Shallow hibernation in Greenify? Also I tried installing amplify but it is not working on Resurrection Remix nougat 7.1.2.
[BetterBatteryStats] sewe:
Should i be happy or should i investigate further?
[BetterBatteryStats] coolvabs:
If I were you I would be very happy:laugh:
[BetterBatteryStats] Ne0x86:
Anyone can helps me to low Job.deadline, job.delay and Wakeup activity detection Wakeups.

Seems to be too high

Thx
[BetterBatteryStats] fossils-n-dents:
To zero in on a particular running app or apps behvior, those other methods would suffice. Looks like logs for apps only, and I personally wouldn't know what to do with a 'Screen On' analysis as it will simply be a usage chart. The 'Screen Off' seems like just a small section of an entire dump. For a complete overview of all apps and running processes while in idle over a specific period, I think the dump file is the best way to go. IMO

Great detective work nonetheless.:good:

The Original Post instructions state a 4 hour minimum idle time before posting your log. Things have changed since then.

When/ if [MENTION=1330150]chamonix[/MENTION] will change this is unknown. I don't mind explaining the process, I feel bad for the xda member who wasted valuable time posting an improper dump. I don't think many are reading the OP carefully anyway, and that's okay.

Wunderlist is fine then...:D I would go with aggressive hibernation first. If you feel you are getting late messages/ emails/ then go with shallow. Don't worry about Amplify, my methods, while barbaric, were devised when Xposed was not available for Nougat. I simply noticed the installer in your log, and gave that option.

Do the best you can with the other information I've given. reboot to recovery, clean Davlik Cache and Cache...Reboot, and send us another dump file when you are able. Good Luck Young Warrior!:good:

Like [MENTION=2875232]coolvabs[/MENTION] said...Be happy. But, feel free to submit a proper file dump if you wish, I, and others would be glad to look it over for you, as we are all family here.

'Job Delay' and 'Job deadline' basically means something (App(s) or Google Play Services) is holding a connection request to data open/ closed...over and over again.

Your photos show 'What', but not 'Why'. Submit a proper BBS dump file, and let's see what the problem may be.
[BetterBatteryStats] Ne0x86:
Ops thx. I will submit a dump file. Anyway I think the problem is magisk module I just installed to doze Google seevices. I think this module can stuck connections.

Thx again
[BetterBatteryStats] tlf55:
Hi, can someone help me with "AlarmTimer" in kernel wakelock ? what is it ? how do i get rid of it .. It almost keep my phone awake for 1 hour over 5 hour off charge
[BetterBatteryStats] fossils-n-dents:
Yeah, I once tried that Magisk module, It didn't work as expected. It will delay messages and all sorts of unforseen things. The workaround is the link I gave you which will stop Google Play Services excessive 'com.google.android.gms'/ PackageMeasurementService/ and 'net_scheduler' issues. Get rid of the Google Play Services module, and go with the link.

---------- Post added at 02:24 PM ---------- Previous post was at 02:19 PM ----------

You have to find what app(s) is causing 'AlarmTimer' wakeups. AlarmTimer by itself is a natural process. For that, a BBS dump file should get to the root of your problem.
[BetterBatteryStats] Ne0x86:
Thanks for share your awesome info. BTW, you have any source for all of these services? I see about 30~ services disabled and I cant find any kind of info what Im disabling xD.

thanks again
[BetterBatteryStats] fossils-n-dents:
Your concern is understandable.

Once I found out about Google (And to a smaller extent), developers and advertisers data gathering in the background of our devices, I went insane. Telemetry, relaying device configurations, analyitics, app usage, crash reports, development purposes and who knows what else.

Data acquisition/ cpu usage, and holding wakelock without my knowledge/ consent is unacceptable for me. I'm the paranoid type, and this made my tin-foil hat sizzle.

These services are a contributing factor in battery drain for everyone with an Android device. I did as much research as was available, and came to the conclusion my device does not need to double as a Google informant. Turning on 'Location' makes it worse.

I prefer the non-xda suffer these tactics.

I found these in different places, over a span of time, at different sites, and a few sites are no longer in service (Regrettably, I did not save them to hard drive). All thoroughly tested by myself before sharing with members. No device functionality is lost through these services being disabled. I would never share anything that would ruin the user experience.

https://xdaforums.com/oneplus-3/how-to/guide-stop-google-play-services-t3549760

http://en.miui.com/thread-73236-1-1.html

This one I found recently, and though some services are included in my list, others are not, and have not been tested...be careful.

https://xdaforums.com/galaxy-s-advance/themes-apps/share-myandroidtools-guide-to-disable-t2869119

My personal list is solid for daily use.

*Make a backup before disabling services.
[BetterBatteryStats] iruleshtar:
Any one help me please.

Its spent 0.8 per hour.

How to make it better.

Here the log

http://upfile.mobi/64ul5dlWTJv
[BetterBatteryStats] fossils-n-dents:
*Firstly, your 'Screen On' time in the 'Other' section of your log must be under one minute to obtain an accurate dump file (See screenshots below). The first is your log, the second is the correct way.

*Secondly, please remove Wakeblock app, and the Naptime app as their usage may be masking certain information.

*Thirdly, please use the Better Battery Stats setting 'Unplugged to Current'. That will help me a lot.

When generating your dump file:

1. Unplug the device after charging (Preferably from 100%, but not necassary).

2. Let the device idle for a minimum of six hours (Do not use/ touch the device during this time).

3. Walk away from the device.

4. Return in six hours, save your dump file, and re-submit it to this thread. We want to help you if we can, but you must meet us halfway.:good:

My apologies for any inconvenience.
[BetterBatteryStats] fridrik:
How can i improve?

Thanks guys.
[BetterBatteryStats] wolframio0:
Any tips to improve my battery life? It always seems to drain a lot more than it should when I'm not using the phone.
[BetterBatteryStats] Ne0x86:
I removed doze module for gservices but Im still having a lot if job.deadline and job.delay Wakelocks.

About 70 each one in 4h idle.

I didt find any info about this Wakeups :(. This is my dumpfile. Anyway, today I wil try your awesome guide to disable services.

Thx
[BetterBatteryStats] iruleshtar:
I use "Greenify", " Wakelock bloker" and "Built in wake lock blocker" too.

Is it enought dissable them from "LuckyPatc**r"?

(I just dont want to re-set them again)
[BetterBatteryStats] updesh94:
Op Please make a new post! I get notifications from this even though I posted a long time ago. Many others would also be getting the same! I hope you understand!
[BetterBatteryStats] Nimueh:
Wow, what a silly demand :rolleyes:

Just unsubscribe from the thread ... not that hard.
[BetterBatteryStats] updesh94:
It appears in my participated threads, I have unsubscribed it already..
[BetterBatteryStats] fossils-n-dents:
Ha! You're in the 'Zone' man... Without ruining the great setup you are running, you could always disable location while your device is sleeping, set Forcedoze to 'Disable Sensors while in Doze', and turn of 'Automatic Updates' in Google Play Store app (you can update manually). Other than that, you should just enjoy your device.

Try this: https://xdaforums.com/oneplus-3/how-to/guide-stop-google-play-services-t3549760

It's specifically for net_scheduler wakelocks., and a few other Google Play Services wakelocks.

Give the guide a go. It's not that bad as your device entered Doze 20 minutes after you put it down. Try out Greenify also to hibernate unused apps during Doze.

Okay, simply post a proper dump file, and we will take a look at it.
[BetterBatteryStats] Nimueh:
Then check your settings - I have participated in probably 100s of threads over the years, but I only get notifications if I've been mentioned/quoted.

If it only shows up under participated then simply ignore it ... I doubt every thread starter on XDA would want to keep starting new threads all the time :rolleyes:
[BetterBatteryStats] PackElend:
thanks, going from screen off to screen on was just for testing. In my understanding those settings influence the extent of the dump file but my interpretation of you answer is that an dump file always starts from last boot until current, so what is correct?
[BetterBatteryStats] uzadragos:
Hello,

Can anybody take a look at my dump file? My phone went crazy a few weeks ago and I don't know what to do anymore. It never sleeps...i did a couple of clean installs of a few different lg g4 official roms, i switched to this AOSP rom, i did not install any apps from the play store but the answer is the same. The phone just sits on the table and drain it's battery without doing anything. This never happened to me until about a month ago, it never drain more then 1-2 maybe 3% of the battery overnight and during the day it was pretty good with wifi/lte turned on...but now :eek:
[BetterBatteryStats] wolframio0:
I'll try the guide, thank you! But should I worry about the *job.delay* and *job.deadline* alarms?
[BetterBatteryStats] patrickdrd:
2 questions please,

1) I notice in the graph that there's always a wakelock (or almost always, I'm 99% sure) when the screen is on,

is this normal?

2) however there are some other (with screen off),

can I detect what's causing them without being able to view kernel wakelocks (I couldn't find a way to grant permission to battery stats in order to view wake locks)?
[BetterBatteryStats] githyanki:
Yes, the phone is awake while the screen is on, so wakelocks are expected then. This is why we need idle log to diagnose what's going on.

If you can't find your issue alone, please submit an idle log.

That's 6 hours of the phone sitting there not being touched, less than 1 minute SOT in the log.
[BetterBatteryStats] patrickdrd:
yes, I know about idle logs, I read about them in this thread every day or so,

but the problem is that in this device I cannot give battery stats permissions to betterbatterystats,

so kernel wakelocks don't work (even with enabling api in the settings),

so, will it be possible to get something out of it?

edit: here is the screenshot:

13 wakelocks in almost 3 minutes with screen off!!

this sucks, doesn't it?

edit2: alarms is what's showing what app is waking up the device right?

I removed ampere because it was causing a ton of them and took notes of the rest of them,

I'll check again in a few minutes (graph/history and alarms) to see what happens
[BetterBatteryStats] iruleshtar:
Here is my LOGfile

http://upfile.mobi/JlMH9ysoyKV

Help me please sir, :)

And what should I do with my Naptim*, Gre*nify, WakelockBlocker too

Thank you :)