yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] jeremysherriff:
Well spotted, yes the additional folders have significant overhead in push mode as each folder requires a break and new connection (I believe). Either way, yes that has a higher overhead, I do similar with Touchdown. If I just monitor Inbox its much better on the battery.
[BetterBatteryStats] californicated:
I have deleted the gmail app, so it's probably gtalk. The only setting I can find is to choose between which categories of folders shall be synced, but not which folders exactly. Where can I find it?
[BetterBatteryStats] glennkaonang:
Hi, I have serious battery problem here.

Attached is my AlarmDump.txt

I think there is something wrong with com.google.android.gsf

Is this that causes my battery drain?

I turned off sync, backup, market notification.

I signed out from Google Talk and I didn't have Google+ installed.

My question is what causes those wakeups (com.google.android.intent.action.GTALK_RECONNECT and com.google.android.intent.action.SEND_IDLE)?

Thanks for the help.
[BetterBatteryStats] Karpfenhai:
Hello Chamonix,

i would like to place a feature request for upcoming versions of BBS.

We all love your Graphs in the more --> history part of BBS, but i wonder if you could enhance the graph or implement some kind of History?

Meaning, if i check my day browsing BBS i often see my phone is more awake as it should be, but i cant retrace which app / service has caused the wakelock at a certain time.

There are repeating WL's, one per hour no question this is K9 (in my case).

But i cant sort out all others, so a History (or an enhanced Graph) would be a charme. Hope you get what i mean ;) I could imagine many others would like to have that too, maybe its worth to implement such a feature, Thanks!

Another way to fulfill this wish could be a kind of additional page like "Wakelock occured ind the past XX hours" or adding an additional subpage to the existing "Partial Wakelock" Screen?

If this was already planned or mentioned before, just forget about it ;)

Thank you very much for your great support and work!!

Happy Carnival (if you celebrate)
[BetterBatteryStats] mattes1988:
Hi there,

could you pls analyze the attached txt file?

I see ~25% more 'Awake' than 'Screen On' and changed some settings yesterday.

I use Google sync, that's no prob. K9 syncs every 2 hours, ok too.

I'm just worried cause some Google apps seem to keep the system awake.

It's alarms>android>DELAYED_KEYGUARD - 21 alarms

TIME_TICK - 83 alarms

.. and alarms>com.google.android.gsf>GTALK_HEARTBEAT & RECONNECT - several alarms

I neither use GTALK nor it's on the system.
[BetterBatteryStats] flshg:
would you be able to add support for Apps2SD to your next version as well? I know the app is already pretty small, but every little helps. Thanks for an indispensable app.
[BetterBatteryStats] fknfocused:
first off, id like to thank you chamonix for a great app! superb work bro.

Got a question, when I choose alarms, i notice my battery monitor widget pro has alot of wakeups, like 213. where as android only has 43. Any info is greatly appreciated.

Or should can i just dump a file and request you to take a look?
[BetterBatteryStats] chamonix:
No it's definitely not gtalk. Check your accounts under 'settings' and make sure 'mail' on your gmail account(s) is unchecked. Deleting gmail is overkill and you should be very very careful at freezing / deleting gapps
[BetterBatteryStats] Mister_Diamond:
Hi @fossils-n-dents

This time, after an idle time of 8 hours and 58 minutes, I got a battery drain of 7%, but I have no idea of which could be the culprit; I see, from the BBS's log, that in the Alarms section, there is:

com.google.android.gms (*api*): Wakeups: 162 (26,3 / h)

I attach the full log.

Some idea? I also wiped the cache and reboot the phone, before to get the BBS's log.

Kind regards.
[BetterBatteryStats] patrickdrd:
did you disable the services fossils-n-dents suggested (using MyAndroidTools)?
[BetterBatteryStats] Mister_Diamond:
My device is not rooted, so I cannot disable services.
[BetterBatteryStats] patrickdrd:
too bad, you can't do much without root sorry
[BetterBatteryStats] Mister_Diamond:
Ok, but I don't always see this battery drain due to com.google.android.gms; by looking at the my last BBS's log, do you have some idea about the culprit?
[BetterBatteryStats] githyanki:
That is Google Messaging Service. You would have to uninstall anything that uses it, such as Allo and whatsapp. There may be other IM programs you have installed that link to it, just uninstall any that you do not use. If you use them, there is nothing to be done with it.
[BetterBatteryStats] Lownita:
I'm clueless what's causing my high idle drain, all I see is the huge amount of alarms caused by android system. Maybe someone has an idea :)
[BetterBatteryStats] atarek:
Mobile Configurations

Hello [MENTION=4138220]fossils-n-dents[/MENTION],

sorry for disturbance, I need your advice regarding below configurations, did i miss anything or you have any comment.

Mobile Info: Samsung Note 3 n-9005

ROM: MagMa vx1 by nxTeam (MM v 6.0.1, TW based)

Root: Magisk

I face a huge time for mobile is Awake while screen is off and mainly my root cause is "com.google.android.gms"

I wanted to share my configuration before capture dump.

I followed your instructions except below due to big list to loop on it. i'll do it later if i still need it.

I've force doze,greenify ,app ops,Enable doze gms (magisk module)

Location and Bluetooth always OFF, sync is enabled cause i want to receive mails immediately (mail app is default samsung app).

Attatched my configurations.

Did i need to modify in App Ops (google play service for instant apps) to prevent phone from sleeping = deny, or just google play service is enough?

Apps i heavily use is Whatsapp & Chrome browser.

Regards,

Ahmed
[BetterBatteryStats] atarek:
Thanks a lot for your support :o

I've located and disabled all apps that have analytics/ adservice processes. (as mentioned in your guide).

I've installed Greenify donation package and system Apps now checked but i'm testing which service should i greenify cause there are many of them.

Didn't used system cleaner yet. (i'll do)

attached current status and seems promising. as usual i need your advice :

Summary seems fine only 9 min Awake in 1 h 38 m

Kernel wakelock seems there is issues related to Wlan. (any recommendation).

What is proximity sensor wakelock is it normal (happen during calls!) or hardware issue.

Alarms main drainers as usual GMS and whatsapp but they are less now although i don't know a lot about highlighted alarms for example : (heartbeat :confused: i found something called hearbeat in myAndroidTools under broadcast receiver / samsung push services)

shall i disable it or not related.

Appreciate your advice very much :highfive:

Regards,

Ahmed
[BetterBatteryStats] fridrik:
What I need to disable in the activity tab in MyAndroidTools?

Enviado de meu Xiaomi Mi5 usando Tapatalk
[BetterBatteryStats] fossils-n-dents:
*Do not disable 'Heartbeat'!

Ahmed, in order to gain insight on what your troubles may be you must:

Charge your device to 95%

Make sure Better Battery Stats is set to 'Unplugged to Current'. Unplug your device.

Let your device idle for a minimum of 6 hours. Do not use the device during this time. Post your dump file when done.

*See screenshots below for the location of the dump file output if you need to. The dump file will be stored on the root of your Sd card.

You would need to go through every installed app to search for installed analytics solutions, and disable them. But, this is purely optional.

In MATPro, you will see these settings: Service, Broadcast, Activity, and Content Provider.

While checking 'Activity' while looking at an apps services, you may find 'Adactivity', 'Analytics'-anything beginning with that word, or any word beginning with 'Ad'. Disable them.

Conversely, you could open the 'Content Provider' section of MATPro and disable for any service beginning with the word 'Fire'.
[BetterBatteryStats] atarek:
Sorry for disturbance.

I know how to post a dump as this one posted before

Also i tried multiple dumps and every dump output is perfect as user said before on my dump i achieved "Nirvana" also you took a look on it and said it's good no big issue.

But in my case dump is not accurate indicator cause while mobile is idle it behaves in different manner than in daily usage. And my issue is while daily usage i always check BBS and found more than an hour phone wake while screen off.

Hope you get my point of view.

I know thread rules and how to report but as i said idle dump never show my issue.

Anyway thanks for your support I'll try to find the cluprit.

Regards,

Ahmed
[BetterBatteryStats] yochananmarqos:
There's three additional permissions that need to be granted:

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.READ_LOGS
com.asksven.betterbatterystats_xdaedition android.permission.DEVICE_POWER

Remove _xdaedition if you're using the Play Store version.

Also if Alarms, Kernel Wakelocks or Network Stats show they haven't collected any stats yet, you may need to force retrieving using API in the Advanced Settings.
[BetterBatteryStats] fossils-n-dents:
Ahhh, drain while divice is being used. that's tricky to pin down. Suffice to say, when the phone is on, every app and Google Services will go crazy while not being stopped short by Doze mode. Social media apps, and GPS should be your first suspects. Also, make sure you have a good signal while out and about, a poor signal will lead to drain as the system works harder to keep mobile radio active.:good:
[BetterBatteryStats] yochananmarqos:
On Oreo, BBS needs to be a system app with a few permissions granted separately. I created a Magisk module that grants privileged permissions to system apps on Oreo: Privileged Permission Whitelist.
[BetterBatteryStats] vasujahagirdar:
[MENTION=4138220]fossils-n-dents[/MENTION],

Hi got this new refined idle dump. I'm getting whatsapp wake locks now a days!! Plz check & help

Thanks
[BetterBatteryStats] fossils-n-dents:
You Sir, are freaking awesome!:good: Thank You for your contributions to XDA. I now have hope to save my device when I move on to Oreo.

WhatsApp is backing up messages and such. Normal behavior. I think WhatsApp and Facebook misuse the High Priority feature that not-so-famous apps have to abide by during Doze when concerning Google Efficiency Standards for app devs. They both have way too much activity during doze, across every device. I personally had to let them go.

WhatsApp is using GPS, sensors, Android Aystem, and probably abusing com.google.android.gms.

Have you 'Disabled All Sensors During Doze' with ForceDoze? Try turning off location during doze, and disable GPS when not needed. You are doing well with your device, just tweak a little to find more battery savings. it will be hard with FB and WhatsApp.
[BetterBatteryStats] vasujahagirdar:
Yep, I 'Disabled All Sensors During Doze' .& disabled GPS as well. Shall turn off location. Will see.

Thanks for guidance! :good:
[BetterBatteryStats] X46X:
Thanks for this, I will try it, but why to use FoceDoze if greenify has the same feature?
[BetterBatteryStats] 93fuelslut:
So if you have root, would you have more functions and suited better while on Nougat?
[BetterBatteryStats] fossils-n-dents:
If speaking about the sensor killing feature, either will do. I am simply used to a '0' sensor usage stat through ForceDoze.

With root, you easily get all of your stats without fail. While non-rooted devices some users may, or may not face an issue of missing stats. There is no informational advantage through root or non-root if both output a complete dump file
[BetterBatteryStats] suvishalreddy9:
Generally a dump "since unplugged" is better than "since charged". When you start your analysis make sure to follow following procedure:

- plug/unplug the charger

- leave the phone alone 4-6 hours

- save a dump and check that the chapters "Kernel wakelocks" and "alarms" (if you have root) are populated

- Post the dump as attachement

1)What does *check that the chapters "kernel waklocks" and "alarm" are populated mean? I am rooted and I have xposed

2)So if I understood everything correctly you only want my non usage ideal drain time BBS dump file to give SUGGESTION'S AND OPTIMISE BATTERY LIFE

3)So stats of my battery drain from 100-0% usage are not necessary

Or do you required both the dump files

4)should I attach any screenshots?

5)Last noob question but how do I attach text files and images on XDA ?

Thanks in advance :)
[MENTION=638679]better[/MENTION]batterystats
[BetterBatteryStats] perosredo:
FYI, installing BetterBatteryStats as system app deals with this on LineageOS 14.1.
[BetterBatteryStats] fossils-n-dents:
All you stated is correct. Except we prefer a 6 hour minimum to get a better picture during idle. Just to make sure all processes have checked in.

In your dump file make sure the sections 'Kernel Wakelocks' and 'Alarm' are visible in your log before posting.

Yes, this forum is for those who wonder why their battery discharges at an alarming or slightly abnormal rate while idle. We will try to provide answers/ suggestions if possible.

Starting your idle run from 95% maximum is preferable, as some devices may have a 3-5% decline from 100% instantly after unplugging due to a bad battery, inaccurate battery stat reporting, ect.

Screenshots are sometimes helpful, but not neccessary.

Select 'Post Reply' at the bottom of page.

When in the 'Submit Reply' section, you can look below, and find 'Additional Options'. Below that is 'Manage Attatchments'.

Select 'Manage Attatchments'. A box will appear. Use one of the 'Choose File' selections to point to where your dump file/ image is located on your computer/ memory card. Upload dump file.

Using Better Battery Stats, select (See first photo below), then select 'Dump File', it's the default setting (Second Photo below). Press 'Save'. The dump file is saved to the root of your SD card as a .txt file.
[BetterBatteryStats] suvishalreddy9:
Perfect dump file 8-hrs ideal drain 100-84%

0) all cores are enabled and checked dumpfile for alarm and kernel

1)I only used greenify enable with root+boost mode (xposed) no other battery saving app

Aggressive Dose (experimental) was turned on!! Should it be on or off?

2)Charged to full then unplugged and left it alone for 8hrs

1st 4-hrs WiFi,LTE are on next 4hrs only LTE

--I got ideal drain of 1.9%

3)I am planning to flash new francokernel for 1+3 with it to test battery life on it ? is it good idea(its the most popular kernel avilable) or bad ? should i flash or not!!

4)I have xposed(amplify) & magisk activated please suggest best settings suitable

[MENTION=4138220]fossils-n-dents[/MENTION] [MENTION=1330150]chamonix[/MENTION]

Thank's a ton for taking time in reading comments and repying to them patiently [MENTION=4138220]fossils-n-dents[/MENTION]
[BetterBatteryStats] foosion:
I have a new Pixel 2 running Oreo 8.0. Overnight it drained 1.2% / hour, which is much higher than many others have reported for this phone, even with full sensors, etc. on. A gsam report on change/hour seems to show a sawtooth pattern for battery use, something I've never seen on any phone I've owned. Also, RCS phone does not appear to be an app (this shows up even when run in safe mode)? Apologies if the gsam stuff is inappropriate here. Results have been approximately the same when I run BBS and gsam separately.
[BetterBatteryStats] DB126:
A pragmatic approach to battery management that is often overlooked. Less is more (usually) especially on Android 6+. Alas..knob turners, app smackers and wakelock whackers will get little satisfaction from such simplistic measures.

https://www.howtogeek.com/howto/25319/complete-guide-to-maximizing-your-android-phones-battery-life/
[BetterBatteryStats] fossils-n-dents:
I use 'Shallow Doze' in Greenify. Experiment with each.

Your device is operating as well as it can (Even better) with the incredible amount of apps you have installed. Without Amplify and NlpBounce installed, I'm sure your device would melt. That said, your device has crossed the line between convienience and battery saving, you have chosen convenience. And that's okay. The only real way to see substantial gains would be to start removing uneeded apps and turnong off device features. I doubt you are ready for such a drastic step.

I could not accurately determine what could be the source of drain as Amplify and NlpBounce are masking the total picture (But are doing an admirable job at 1. 6% /h with what you have installed). Wow!

I no longer am knowledge of Amplify's usage, as I learned (The hard way through research) to do without it once I purchased my first Nougat device (No Xposed/ Amplify then). In that regaard, my apologies.

If you are truly game, make a backup of your device, and remove Amplify/ NlpBounce, and send the dump file (But it will lead to me advising the removal of many, many apps), and we will take it from there.

Franco Kernel may not do much on your resource-hungry current setup, but if you try it, make a backup first.:good:

SystemUI:

If you have touch sounds on, turn them off. The System UI is a system process responsible for the soft keys, notifications tray and much more. Try by changing the date on your device (Sometimes this affects devices SystemUI). Turn off lockscreen notifications for a while, try clearing your device cache, try turning off your device fully, then restarting. Check your brightness settings if they are set to 'Never'. Does your device have 'Ststem UI Tuner' installed? If so, tweak it a little. I'm randomly throwing ideas at you as you have virtually no apps installed with a non-rooted device.

Even with no apps, Google PlayServices is running analytics on your device 'Packagemeasurementservice'. To slow down '.gms' issues, turn off location when not in use, disable the GPS until you need it. If you can handle it, turn off sync/ Bluetooth when the device is at rest. Get Greenify from Play Store.

Some app or several apps are accessing your system UI the part of Android which is used for almost everything. It could be also some custom launcher backup your data and do a fuctory reset

No...they won't like that.:laugh:

As one whose knowledge was borne through the lack of Xposed/ Amplify (My old standby) due to it's omission in the opening and middle iterations of Nougat, I have tried to show all who need advice that a balance of careful app selection, device settings, and an understanding that once you put your device down, app devs, Android System, and Google Play Services may take over.

The trick is to give them nothing/ not much to do when they visit our devices.

I cannot Thank You enough for the great insights you have given that fueled my fascination with what goes on when our devices idle. You Rock [MENTION=5488402]Davey126[/MENTION]!!!
[BetterBatteryStats] DB126:
Well said...and well executed through your tireless contributions to this thread. The grateful posts from numerous members reinforces the obvious. Take care; keep RL and XDA in balance.
[BetterBatteryStats] ipredatorv:
Hi all, and especially fossils n dents, the master Guru!

thanks in advance if you would take your time to have a look at my attached dumps and logcats.

I hope they conform the standard you set, 6h+ idle with less than 1min of screen on time.

Attached is 1 dump on 4G and 1 on WiFi. You can see a drastic difference. On 4G my phone idle drain is pretty decent, could probably still improved, but the main problem is the WiFi drain.

What I did so far:

Using xXx NoLimits 4.1 (it includes some wakelock blocks)

Using SimpleGX Kernel 1.17 (I chose to block all available wakelocks included in the kernel)

Using Greenify to hibernate most apps but WeChat (because I need it for work)

Used MyAndroidTools to disable some BroadCast Receivers and Services according to the guide posted earlier.

If you have any input or instructions what I else could do, please let me know! :)
[BetterBatteryStats] Tundraswan:
Logs/files attached. Something is very wrong with my battery consumption, idle drain is very poor. In a 6 hour idle period, my phone was awake for 3 hours!?

Please can someone offer me more insight into what is going on with my phone?

My phone is a OnePlus 3, with Oxygen OS 4.5, Rooted with Magisk and Xposed installed.

Greenify/Amplify don't seem to be counteracting the issue for me.

Thanks in advance everyone!
[BetterBatteryStats] fossils-n-dents:
4G Log:

(Alarms)

Tencent/ WeChat... It's killing you. Check it''s settings to see if notifications can be lessened. It also has an open pipeline to your data 'tencent.mm.TrafficStatsReceiver'. Analytics are being performed through the app. This may add to problems with a poor mobile connection, which makes the system work harder to maintain a data connection, which adds to battery drain.

com.android.phone (): Wakeups: 66 (8.6 / h):

The 'Data Stall Detector' is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default), it tries a bunch of things and one of those steps is to tear down and rebuild the connection. Bad mobile connection.

You have OnePlus Calendar and Android calendar running....dsiable one of them. Always on AMOLED is definitely not battery friendly. Download Forcedoze from Play Store, enable 'Disable all sensors during Doze'. When not in use disable GPS, and turn off location and Bluetooth. If you can handle it, turn off Sync during non-use of the device.

Wi-Fi Log:

Wakelocks Section:

WeChat really went nuts with Wi-Fi. Use the same methods I described above. Or get rid of WeChat, and use your browser.

bq_delt_soc_wake_lock: Always on Amoled app.

Alarms Seciton:

WeChat...grrrrr.

Android System is working harder because your apps have unlimited data access which leads to more background operations.

Try a lighter version of XDA Labs (Or use the browser)...

Simply follow what I prescribed in your previous log. Everything else looks great.:good:

Wakelocks:

Anywhere you see 'Firebase' in this section next to an app name, your device is being held awake for data collection.

Download a serivce disabler and check each installed app, and disable every instance of 'Package Measurement', 'Firebase', and 'Analytics' you find in each app. That should cut down on some of the chatter in the background.

qcom_rx_wakelock: Try a static IP, your Wi-Fi network may be crowded. Or try swtitching bands first (2.4g- 5g).

Alarms:

com.android.internal.telephony.data-stall. Poor data connection. Why this is happening while Wi-Fi is present is not clear to me.

Your installed apps are all using data during idle. I would suggest removing all uneeded apps, as this will lessen the drain on the battry immediately. Also, disabling Location and Sync wiill help also.