yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] sheikgr:
Guys , please, I'm desperate. I have a P40 Pro with GMS installed. The problem is I get TERRIBLE battery life. Other people and friends with GMS installed have no problem, so i don't think it is a GMS fault . In 24 hours i get 2+ hours of "Awake" time which result in having only 3-3.5 hours SOT at 30% battery.

I can see that Alarms from Android System are waaaaay high, especially :

com.android.intent.action.HEARTBEAT_FIXER

com.huawei.push.alarm.HEARTBEAT

job.delay

job.deadline

and from GMS

com.google.android.gms.dcm.ACTION_CHECK_QUEUE

Partial Wakelocks seem fine, i can't see any rogue or misbehaving app.

Any help would be HUGELY appreciated

https://imgur.com/Tc3nfBm

https://imgur.com/nVplCZy

https://imgur.com/5Z79o6G

https://imgur.com/XPSDy8X

Ignore the AudioMix wakelock, it just happened to listen to music for half an hour today, regardless of this the statistics are constantly like these every day, 2-3 hours awake time when screen off with the majority being the Kernel.
[BetterBatteryStats] pjadec:
Sorry, but the dump has not been done according to OP instructions. So this dump cannot be analyzed. Please follow the instructions to make a new dump.
[BetterBatteryStats] DB126:
Responded here: https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884/post82851615
[BetterBatteryStats] sheikgr:
Ok I followed the instructions and let it all night and made the dump in the morning. But i think it isn't right cause the battery is on 89% , i thought that for more accurate results it should be at a low battery level in a span of 24hours to be more representative of my usage.

In this dump i charged it last night, used it for some minutes and on 92% i went to sleep and left it there. The morning I woke up and created the dump.

Thanks.
[BetterBatteryStats] DB126:
34+ min of "screen on" time (should be <1 min) invalidates the latest log for idle analysis. That said, drain rate was quite acceptable given hardware, ROM and app portfolio. Snoozed like a baby - a testament to how well doze works on Android 8+. You really need to focus on pairing back what's running on your device while in use or invest in an external battery pack. Maybe dial back the screen brightness and use web versions of some social tools like Facebook (app is a notorious power pig). Good luck.
[BetterBatteryStats] sheikgr:
But in everyday use, within 24 hours I get 2-3 hours Keep Awake when screen off, can this be only of the social media apps?

I mean in every phone i had the exact same setup, even on Mate 20 Pro. I see others that say "omg 15 minutes awake is too much) and mine is 3 hours :p

The top alarms when screen off are

com.android.intent.action.HEARTBEAT_FIXER

com.huawei.push.alarm.HEARTBEAT

but i can't find anything on what to do(except that it has something to do with push notifications maybe).
[BetterBatteryStats] githyanki:
Start by disabling or uninstalling all of those apps that you were told are battery hogs. See how your stats change, then re-enable a few at a time and see.

You may find a couple that cause too much problems, and some that your browser works well for and that you don't need the app installed.
[BetterBatteryStats] rophiroth:
Working last version 2.5 on los17.1 on essential ph1 phone
[BetterBatteryStats] Samiii2:
I made more tests here, just small update.

The Wifi power saving mode made the connection to be disabled/toggle dataplan/enable wifi and so on. This caused the Awake Screen Off stats to increase alot as after each toggle the device needed some minutes to fall asleep again. I have disabled it now and Awake (Screen off) has decreased a great bit and Deep sleep increased. However this did not affect any battery stats (or maximum 0.05%) and I am still around 0.5%-0.6% idle drain.
[BetterBatteryStats] TNSMANI:
The BBS stats seem to be wrong because

They don't tally. Uninstall BBS, reboot and reinstall BBS. Charge the phone and when it is between 90% and 100%, unplug and let it sleep. After 6+ hrs, unlock the phone, immediately open BBS and save the dump. The screen on time should be as less as possible, in any case less than one minute. Post the new dump here.

EDIT:

In addition, you seem to have a mobile signal issue. While taking the dump, place the phone where you have better signal.

And don't be carried with numbers. Blaming Android and Google for drain is no longer valid. There is a purpose behind every wakelock/alarm. Though it may seem that Google services have the most of them, they were caused by other apps most of the time.
[BetterBatteryStats] Samiii2:
I am doing more tests here and found that I have some SD-Card partial wakelock/service running for few minutes, it annoyed me and wanted to figure out why since I don't use SD card.

Well turned out my simcard is inserted in that slot. Since my phone has dual sim, I just placed the simcard in the slot that doesnt support SD card keeping that slot empty and that service stopped running also.

Another tiny microscopic issue resolved :)

Getting closer to Nirvana now
[BetterBatteryStats] krus5:
Thank you for your help, do you know if my phone is rooted and have magisk is this possible to disable or completely uninstall this ttyC0 api?

---------- Post added at 09:40 PM ---------- Previous post was at 09:37 PM ----------

Yes i tried your recommendations and tty is off i don't use and don't need it but it looks like somehow it always works in background, i wish i know how to disable it on rooted phone.

---------- Post added at 09:41 PM ---------- Previous post was at 09:40 PM ----------

Yes i tried your recommendations and tty is off i don't use and don't need it but it looks like somehow it always works in background, i wish i know how to disable it on rooted phone.
[BetterBatteryStats] TNSMANI:
[MENTION=4707825]krus5[/MENTION]

Did you try the solutions in the link posted by [MENTION=3851273]pjadec[/MENTION]?

I don't have any solutions. Google it, you may get lucky.
[BetterBatteryStats] pjadec:
[MENTION=4707825]krus5[/MENTION]

Like I said. I don't know how to fix that issue. Sorry
[BetterBatteryStats] viucorp:
Hi guys, made a dump of android beta 1.5 , can someone please take a look and share their opinion? Cheers!

https://drive.google.com/file/d/1O42wtTrjcIIsysdptrY5Vymlwj1ej8bU/view?usp=sharing
[BetterBatteryStats] TNSMANI:
You seem to have a very good drain rate, 0.4% per hr.

Enjoy the device!
[BetterBatteryStats] viucorp:
Thank you very much :)
[BetterBatteryStats] Marco89989:
Hello,

I need your help. My Pixel 3 consumes ~2%/h battery over night in airplane mode although 98,4% deep sleep.

I'm lost. Log attached. Help is very appreciated.

View attachment BetterBatteryStats-2020-06-25_055553592.txt
[BetterBatteryStats] DB126:
Nothing amiss w/Android. Possible hardware (sensor) kernel or battery problem. Battery is suspect if device is experiencing other longevity issues.
[BetterBatteryStats] jukyO:
26% overnight in 9 hours

Hi guys,

OP6T here....last update OOS 10.3.4, all stock except root/magisk.

No data, no location , only WiFi, 26 % in 9 hours overnight + sync.:crying:

Can someone check attached logs? dmesg shows "Bad system call".

Thanks in advance.
[BetterBatteryStats] Oswald Boelcke:
End of the month approaching i.e. it became to take the usual BBS dump. Just wanted to share; nothing to comment or complain about. I'm happy with the system behaviour.
[BetterBatteryStats] galaxyst:
Note 10 plus, no root. BBS not showing anything, on refresh it just warns: Selected "from" or "to" reference could not be loaded. Please refresh.

Any idea to fix it? I have paid money and got not working app, too upset
[BetterBatteryStats] githyanki:
What version of BBS?
[BetterBatteryStats] pjadec:
Just wanted share; nothing to comment or complain. Phone works very fine. OP6T OOS 10.3.4, all stock except root/magisk.

No wifi, signal is what it is here, middle of nowhere
[BetterBatteryStats] NoGoodUserNamesLeft:
Is it normal to have a much higher battery drain and a ton of wakelocks with mobile data active?

Mobile data enabled (connected to WiFi - internet is working):

Since 7 h 40 m 50 s

Level lost [%]: Bat.: -19%(98% to 79%) [2,5%/h]

Mobile data disabled (connected to WiFi - internet is working):

Since 9 h 55 m 12 s

Level lost [%]: Bat.: -4%(94% to 90%) [0,4%/h]

Here is what I mean by "Mobile data disabled":

To my understanding, the radio on itself is enabled since "LTE" is being shown in the Mobile Data tile in the drawer.

Mobile data is disabled by disabling "Mobile data always active" in developer options.

Similar good battery drain result is achieved by actually switching off the radio by clicking on the mobile data tile.

Then the status in the Mobile Data tile is changed to "Off".
[BetterBatteryStats] Watanabe_You:
Yes.
[BetterBatteryStats] githyanki:
When on WiFi, why would you want to use your mobile data? The normal behavior is that the LTE icon hours away when on WiFi since your not using mobile data anymore. Playing with that setting in developer options will change normal functions and could easily be the cause for more wakelocks.

If you have some reason for having to do that, you will probably have to live with the extra drain.

Best answer is to stop doing that.
[BetterBatteryStats] Nastrahl:
It's not only in the developer settings, but also a connectivity setting named download boost to check, that'll aggregate both LTE and WiFi in case of downloading something that's more than 20 Mb if i recall well, but forces to have data enabled all the time too.
[BetterBatteryStats] jukyO:
Anyone?
[BetterBatteryStats] pjadec:
Do backup. Restore your phone with MSMdownloadtool.

Because your OP6T have something draining your phone battery. I Didn't found reason why, because phone sleep fine
[BetterBatteryStats] jukyO:
Can you provide me the link to it, appreciate it.
[BetterBatteryStats] NoGoodUserNamesLeft:
It says right there: "for fast network switching"

And I don't want it.

You are wrong. The LTE icon does not go away from the mobile data tile. It's always there to show the type of the existing mobile connection (LTE, 3G, E, ...).

It does go away from the status bar, but it's always there in the tile when you pull down on the drawer which I was talking about.

Maybe it is different on your phone or you lack reading comprehension, so I took some screenshots on Android 10 (LineageOS 17.1) - see the attached picture.

Left side: internet via WiFi.

Right side: internet via mobile radio - WiFi is enabled but has no internet connection.

On both sides the "mobile data always on" developer setting is deactivated, yet "LTE" is shown on the mobile data tile in the drawer.

By "playing with that setting" a have reduced the number of wakelocks and significantly improved the battery drain.

The default value (Mobile data always active - ON) is causing many wakelocks and high battery drain.

For your phone the default value might be OFF so I assume that's the reason for why you are saying that and not that you are ignorant.
[BetterBatteryStats] IronTechmonkey:
Speaking to this particular setting and no other part of the discussion.

In the conception and design of our mobile devices it is assumed that we will have Wi-Fi and mobile data enabled and active all the time thereby allowing the device to switch from one to the other without our interaction as we move around. The setting to which you refer will keep the mobile data hardware in a more active state even when you are connected to Wi-Fi so that when you move away from Wi-Fi it will more quickly switch to mobile data.

Even if you follow that usage case, of keeping all the radios active and enabled it would be safe to disable that setting and see if it impacts you. The result may be a few moments of no connection as the device tries to automatically switch between Wi-Fi and mobile.

On the other side: Many people myself included choose to manually enable and connect to WiFi and mobile data connections as needed in order to save battery life. In that usage case I have that particular setting disabled all the time and never experienced any consequent limitation with my usage method.
[BetterBatteryStats] pjadec:
OnePlus 6T

10.3.0 msmdlt

https://xdaforums.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
[BetterBatteryStats] NoGoodUserNamesLeft:
It's comprehensible to have a somewhat higher battery drain when the mobile data hardware is kept in a more active state but in this case the difference is sixfold.

And why does it come with a highly increased number of wakelocks? Shouldn't all the data connection business be done by the firmware without waking/involving the operating system?

It is not entirely clear what needs to be blamed for the high battery drain:

The wakelocks, which are not letting the system go to deep sleep?

The higher power requirement to keep the mobile data connection alive even when not in use?

A mix of both?

Looking at the output of the BBS logs I see a difference in the Deep Sleep percentage. When disabled, I see the phone is being kept awake for an overall significantly longer time so I assume this is caused by the wakelocks. This might add up to the power consumption.

Mobile data always on - enabled (default)

Since 7 h 40 m 50 s
Level lost [%]: Bat.: -19%(98% to 79%) [2,5%/h]

Deep Sleep (): 6 h 46 m 50 s 88,3%
Awake (Screen Off) (): 53 m 39 s 11,6%
Screen On (): 20 s 0,1%

Mobile data always on - disabled

Since 9 h 55 m 12 s
Level lost [%]: Bat.: -4%(94% to 90%) [0,4%/h]

Deep Sleep (): 9 h 40 m 17 s 97,5%
Awake (Screen Off) (): 14 m 46 s 2,5%
Screen On (): 7 s 0,0%

I have it disabled for several months now and have not experienced any noticeable drawbacks. I am never in a place where the phone needs to be constantly switching between WiFi and mobile data.

I am also not using WiFi calling or MMS - this will cause issues, if you disable "Mobile data always on" so I have read..
[BetterBatteryStats] IronTechmonkey:
As mentioned, I was only speaking to that setting (which is unlikely to be the sole cause of any issues you are having). Beyond that I would suggest following the guidance in the OPs of this thread and seeing what the knowledgeable users here have to say.
[BetterBatteryStats] DB126:
Knock it off. If you can't be respectful take your commentary elsewhere.
[BetterBatteryStats] sudhanshugrover:
Can someone please help me figure out whaat the issue is?

According to what I understand, sns_smd has kept my phone awake for around 1 hr overnight.

Attaching a log with this post.

Really appreciate the help.

---------- Post added at 05:02 AM ---------- Previous post was at 05:00 AM ----------

drive.google.com/file/d/1PHcDlNbXNUT7bFdB1CTOIGU5R5RHbMne/view?usp=drivesdk

---------- Post added at 05:03 AM ---------- Previous post was at 05:02 AM ----------

drive.google.com/file/d/1PHcDlNbXNUT7bFdB1CTOIGU5R5RHbMne/view?usp=drivesdk

---------- Post added at 09:38 AM ---------- Previous post was at 09:33 AM ----------

Can someone please help me understand what the issue is?

From what I understand sns_smd wakeup has been keeping my decice awake for 1 hour overnight.

Really appreciate the help.

Here's the dump file: drive.google.com/file/d/1PHcDlNbXNUT7bFdB1CTOIGU5R5RHbMne/view?usp=drivesdk
[BetterBatteryStats] pjadec:
Sorry, but this dump can not be analysed. Too much sot=screen on time. Do dump like OP instructed.
[BetterBatteryStats] jukyO:
It helps! 1st charge, 9% overnight, much better compared to 26%.
[BetterBatteryStats] jukyO:
Much better battery life, thanks!
[BetterBatteryStats] ashishinxda:
Battery issue with S20

Hi ,

I am facing issue with my battery drain with over night drain of 1-1.5% per hour. I am unable to find the reason in BBS. Can you please help ? As I am new user I am unable to provide link to dump file. Can you please also tell how can I send dump file

[/B][/B]
[BetterBatteryStats] Oswald Boelcke:
I suggest to e.g. upload to https://hastebin.com/about.md, https://filebin.net/ or similar, and then simply share/post the URL here without the preceeding https://; alternatively (but I'm not 100% sure, just test it) wrap the URL in Code tags.

Example:

https://xdaforums.com/android/apps-games/warden-app-manager-t4122227/post83014829
[BetterBatteryStats] ashishinxda:
Thank you. I have uploaded the dump on Dropbox at below link.

www.dropbox.com/s/14dfixdnsyfv317/BetterBatteryStats-2020-07-08_075305539.txt?dl=0
[BetterBatteryStats] Oswald Boelcke:
Thanks very much. Glad it worked. However, your idle dump isn't really suitable for proper analysis. An idle dump is supposed to have less than one minute screen-on time (yours has 5+). Please refer to OP for proper procedure.
[BetterBatteryStats] ashishinxda:
Sure. Let me take another dump and send you across.
[BetterBatteryStats] alskdj21:
Hi!

I have this crazy wakelocks whenever I turn on the wifi after a reboot. This would still persist even after turning it off. A reboot fixes the issue. I'm suspecting this has something to do with RIL(ttyC0 wakelock?). The phone signal is good so I can't think of it as the issue. Even going to airplane mode doesn't change a thing. I'm in a GSI so this may play a role.

https://paste.ubuntu.com/p/QVjx5QmvZ9/
[BetterBatteryStats] pjadec:
Yep

It seems to be ttyC0 and phone ril mtkfusionrild problem.

But I don't know how to fix it, sorry
[BetterBatteryStats] ashishinxda:
Hi Oswald, as suggested I have again created the dump file. Please find below the link to download the dump file . Looking forward to your help.

www.dropbox.com/s/c6rp198kgln4jf2/BetterBatteryStats-2020-07-10_072114644.txt?dl=0
[BetterBatteryStats] pjadec:
SOT still too long, under 1 min to best should be under 20s

Mobile signal drains battery

Poor Signal (): 4 h 25 m 18 s 57.7%

Moderate Signal (): 3 h 14 m 40 s 42.3%

app behave baddly or oddly

com.myairtelapp.Airtel wakeup ?

Battery consumption is not bad compared to what the mobile signal coverage is in that area. If normally the battery in a good mobile coverage area consumes 0.5-0.8%/h. Then in a poor mobile coverage area the battery may consume 1-1.4%/h Depending on the phone
[BetterBatteryStats] githyanki:
Additionally, the Airtel app and s5100 API were the biggest things that kept your phone awake. You'll need to find out what the s5100 relates to, I don't know.
[BetterBatteryStats] Jean_C:
never mind
[BetterBatteryStats] steve197635:
Is this app still being developed? Last update summer 2019.

Can I still use this for the Note 10 PLUS with Android 10?
[BetterBatteryStats] DB126:
Some folks claim success on Android 10 while others (mostly on Samsung devices) struggle. I have moved on from BBS for several reasons - biggest being manual pedantic power management is no longer needed on modern devices. Retired my vacuum tube tester and manual auto starter crank too.
[BetterBatteryStats] Nastrahl:
And Samsung got kernel memory leak with any battery stats apps like BBS that's quite hard to check if it's still here or not.

https://xdaforums.com/galaxy-note-10+/help/android-10-kernel-memory-leak-bug-t4044415

It was recommended to me to re-image the phone with Odin instead of OTA to get rid of.

When I tested it, quite some time ago, i didn't get it to work even with proper permissions through ADB.
[BetterBatteryStats] DB126:
BBS isn't needed nor well positioned to track kernel/memory issues.
[BetterBatteryStats] Nastrahl:
That's absolutely not what i was referring to.
[BetterBatteryStats] DB126:
Hum - clarification (if relevant to BBS)? Mind reading skills are a bit dull; must be the pandemic.
[BetterBatteryStats] joefuf:
Pixel 3a XL updated to the July 2020 security patch. Running BBS 2.5-344

Started the day fine. Only thing I did out of the ordinary was try using Lucky Patcher but uninstalled that before the issue began.

I started getting a toast message saying BBS was not responding. I can force close, but upon opening I have the same issue the user in my quote mentioned, the "from or to" reference was not found.

I uninstalled and reinstalled. I had to grant the necessary permissions via adb.

The from or to problem still persists.

I've rebooted a few times, tried the method in the suggestion above where I open the app, plug the phone in, and unplug, but still no luck. I've also tried shutting down the phone for a bit and restarting in case that'd do anything.
[BetterBatteryStats] Nastrahl:
Yeah it's my fault since English isn't my first language. Sorry for the misunderstanding.

What i meant is that with Android 10, Samsung's phone (at least for the Note series) got a kernel memory leak bug that supposedly happens when you you use any apps that read / show battery stats, like BBS, after updating the phone through OTA (having them installed prior or after an OTA doesn't matter).

When you deny the permission or uninstall the app it doesn't leak anymore.

And that's when apps are actually working on those Samsung's phone. Mine for exemple wouldn't show any stats whatsoever even with given the proper permissions. It behaves like nothing has been done (and that is also because of some cryptic Samsung's shenanigans)

So yes it's an issue that's totally on the Samsung's side that's still waited to be resolved without external tools.
[BetterBatteryStats] DB126:
Excellent explanation - thank you! :good::cool:
[BetterBatteryStats] xn0live:
If i save it (Dumpfile) and see the txt file. There is a lot of Informstion about

- Sensors

-Reference overview

what is that? can i disabled it on BBS app
[BetterBatteryStats] TNSMANI:
BBS only provides info. Nothing further. And please read at least some pages of this thread and search here, if you want additional info.

If you are interested in reducing your battery drain, read the OP and post an idle dump here. Someone will respond with suggestions.
[BetterBatteryStats] smilekachok:
Battery consumption

Battery consumption is more than 1% in 1 hour.

Help find the problem and fix it.

https://www.dropbox.com/s/7ssnztf74i4lxnl/BetterBatteryStats-2020-07-24_095304550.txt?dl=0
[BetterBatteryStats] dbius:
Hi,

The program can't detect precisely when was my phone charged.

Most of the time charge my phone wired and wireless as well (almost daily) but doesn't matter, the program can't detect charged state.

The phone is a Huawei P30 Pro using unrooted factory ROM (Android 10.1)

What should I do? Trying to upload screenshots.View attachment 5067569

Edit: Don't know why but having problems with attaching screenshot recently on the forum, so uploaded them here as well:

https://ibb.co/zQ56tkm

https://ibb.co/Bwc9Y5b

https://ibb.co/N9cxDjK

Sent by Tapatalk using my Huawei P30 Pro (VOG-L29) device
[BetterBatteryStats] SmawtPho20:
I'm running android 5.0.1. Can't get the app to save a dump file. It keeps saying that it's successfully saved the dumpfile, but when I look in the indicated (emulated/0, my sd card...) locations, I see nothing. What gives?

An update. OK, I got it to save. I went to Settings->Advanced and then I checked the box next to 'Private Storage.' I then looked in Local storage ->Android->data->com.asksven.betterbatterystats and just kept opening folders and the final one had the dump file.

I don't know why I can't see the file without checking this option, but whatever it works now.
[BetterBatteryStats] Utini:
My phone is awake all the time. The reason for this is listed in "partial wakelocks":

PID 1041 "Mmap" (or maybe this isn't the PID)?

Picture: https://files.bestmail.ws/photo_2020-07-26_15-09-03.jpg

/proc/ doesn't list "1041".

Any ideas how I can find out what "Mmap" is?
[BetterBatteryStats] SmawtPho20:
Is a drain of 0.8%/hr good if I have a poor signal? In the 6 hours that I left my phone unplugged without touching it, BBS reports I lost 5% charge.

Also, how can I determine what is causing my battery to drain so heavily when the screen is on? I notice that my battery drains 1% every 1-2 minutes when it's in use. My brightness is only at 20% or so.