yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TNSMANI:
Mobile signal was ok but not very good. Usually it drains when it is not very good.

Your wifi router seems to be having issues. The connection was not constant but was fluctuating between wifi and mobile data. Please reset your router by switching off power for 10 seconds and then restarting. Also please ensure that no other devices are connected to it (especially printers) when you take another dump.

Outlook seems to have been running for quite some time.

Windows Intune also kept the phone awake for some time.

Apart from these I don't find any other issues. The drain of 0.7% per hour on Android 11 is not bad but acceptable.

I have no idea why the phone was awake the whole time the screen was off. There are no indications in the dump which can be pointed as the reason for it, as far as I can see.

May be a factory reset or a clean flash of the ROM can solve it, but it is pure guess.
[BetterBatteryStats] ppell:
I finally managed to get some logs. Tonight I had a drain of 1,3% per hour. (Sometimes its even higher) a few days ago I got 0,2! Settings were all the same in both cases. I hope you can help me to find the reason.

Thanks in advance.
[BetterBatteryStats] TNSMANI:
You seem to have attached the logcat. What we need is the dump file. Please read the first few posts in the first page of this thread and post an idle dump.
[BetterBatteryStats] ppell:
For some reason it doesn't attach the dumpfiles. Originally I attached logs and dumpfiles. I can select them and they load, but they doesn't show up in the final post. Don't know why though. Therefore I gave you the log, hoping you could use these as well. (See screenshot. Dumpfiles are there, but no filesize nor symbol is shown) can I send them to you in any other way?
[BetterBatteryStats] Oswald Boelcke:
In this respect please see my post here from 27th July:

https://xdaforums.com/t/app-2-2-05-oct-v2-4-betterbatterystats.1179809/post-85387103
[BetterBatteryStats] ppell:
Thank you.

Here's a zip. I put both dumpfiles in the zip. Hope it works now.
[BetterBatteryStats] TNSMANI:
You only have poor to moderate mobile signal. Never good, leave alone excellent. This is usually a huge drainer.

BT was on. If you need it during sleep, then be prepared for some drain due to it.

Please locate your phone at a place having better mobile signal and take a fresh dump. That will eliminate the wakelocks and alarms associated with the poor signal and we can study the rest, if necessary.
[BetterBatteryStats] ppell:
I will try to find a better location and get new dump. But I tried by myself with airplane mode on a few weeks ago and nearly got the same drainage. And as you see when I got the 0,2 % drain there also was just moderate signal. So I though signal was not the (only) culprit?
[BetterBatteryStats] TNSMANI:
What you get on airplane mode is your baseline drain. You can not go below that with your current setup.

Let us see the better signal dump.
[BetterBatteryStats] ppell:
Unfortunately I don't get a better signal anywhere at my home.

But I tried it with airplane mode on again. I got a drain at 0,8%/h overnight. It's not absolutely bad, but it is still higher than the 0,2%/h you can see in the dump I posted for comparison before. And there everything was activated.
[BetterBatteryStats] EpicSurvivor:
Question I wish to monitor my wake lock apps on my galaxy s10 plus is there a better way or can you still use betterbatterystats? I can't seem to find a download place for BBS if someone could please provide a link?

​
[BetterBatteryStats] DiamondJohn:
One way to view your wakelocks (multiple slice & dice) in an aggregated way is using the following App I built.

https://xdaforums.com/t/app-tool-temefi-comprehensive-system-administration.3806260/post-85153055

See the second list/screen extract for a list of some of the wake-lock related data.
[BetterBatteryStats] ppell:
It took some time but I could get a dump with good signal. Wasn't easy though. Nevertheless drain was 1,4%/h overnight. Maybe it's an app or the system itself causing it?

Thanks again for your effort.
[BetterBatteryStats] TNSMANI:
This time it might have a better signal but not great signal, only good and moderate. The following from Alarms still shows signal connectivity issues.

BT was on and in trying to stay connected with your watch(?), drained some battery.

Too many widgets and their updates.

This sensor is also likely to impact the drain.

These are the obvious ones. If after attending to these, you still don't get a better drain rate, you may have to look for a different ROM/kernel combo. Before that try a factory reset/clean flash of the same ROM.
[BetterBatteryStats] ppell:
I'm willing to accept little drainage by BT as it is just not comfortable to switch this on and off every day. (I need it for my watch)

I just use 2 widgets + "At a glance", but I will try without them and see.

Can you tell me what exactly the sns_smd sensor is or does and how to avoid the drain through it?!

What I just don't get is the high fluctuation. One day (or better night) I got literally 0% drain with my everyday setup and on the other hand there is sometimes 10, 15 up to 20% overnight, and even airplane mode doesn't bring this down.
[BetterBatteryStats] TNSMANI:
The sensor seems to be the Significant Motion Detector. Search on Google. Disable anything connected with motion.

Fluctuation will be there in view of the different apps' behaviour. But in your case it seems to be very high. That is why I suggested a clean flash or a change of ROM.
[BetterBatteryStats] ppell:
Alright. Will see if I can reduce drain with these suggestions. Thanks for your help.
[BetterBatteryStats] titomax82:
Hi all,

in the second half of "november 2020" I downloaded BetterBatteryStats, but I do not remember which version and I do not remember if from playstore (at the moment bbs is not on playstore) or from here. I only remember that it was a "non-xda", but a normal version, the only that worked perfectly on my phone (rooted). Some days ago I performed a clean install on my Mi 10T Pro (also root), so I want to reinstall BBS. But the latest version here doesn't seem to work, it say "failed" on the "STATUS" in the upper section where you can control permissions.

How can I get that particular version? (non-xda, end of november 2020)

Please help
[BetterBatteryStats] efrainmartinez:
Hello, I installed what I think is the latest version 2.6-382

I did this obviously with adb installer, but it tells me that there is an error with BATTERY_STATS is this normal? Or I'm doing something wrong. The other permissions if you allowed them! Thank you for an answer. Best regards.
[BetterBatteryStats] efrainmartinez:
the error in BATTERY_STATS was because I did not change the xdaedition command

But something happens, even if I am not using the wifi, always detects it as 100% of use, that has a solution?
[BetterBatteryStats] TNSMANI:
If all of you use Android 11, then the working version of BBS is an old one, however strange it may seem. Ver.2.5-344 which was the last one on the Play Store, IIRC.
[BetterBatteryStats] Saphyres:
ou lol which one?

I use the newest one and rn i think its working... only the graphs seem to not work for me
[BetterBatteryStats] TNSMANI:
It is there in my post. Ver. 2.5-344
[BetterBatteryStats] henfri123:
Hello,

I am unhappy with the battery life of my Samsung S21.

Drainage over night is 1.5%/h - which could be acceptable - but especially when using the phone, the battery drains before the end of the day.

Now, I'd like to share a dump, but I am struggling a bit following the instructions. This is partially, as BBS remains in German although I checked "Use English" and even re-booted the device (also restarting the app only did not work; a bug?):

- enable watchdog processing in BBS settings

Is this under Misc-> watchdog? There I have one checkbox "start after unlocking"

Or is this under Misc -> use active monitoring (increases battery usage)?

- verify from/to references is checked under custom views

Where do I find custom views? Is this on the main Screen, the two lower drop-down lists?

- adjust from/to references to 'screen off' and 'screen on'

I do not know, where to find these setting. Currently on the Main screen, I see "Boot" only in the left drop-down list, and Current on the right one.

Sorry, for these simple questions, but I want to make sure, I provide a useful dump file.

Best regards and thanks for your help,

Hendrik
[BetterBatteryStats] TNSMANI:
YES

NO

Settings>Customize Views>From/To References

Customize Views is the fourth option under Settings.

After enabling From/To references, you will get options under the left and right drop down lists on the main screen. Sometimes it may take a reboot to show up.
[BetterBatteryStats] henfri123:
Hello,

sorry to bother you again. I did try to do the 6h log today. But onfortunately, I do not get the "Screen On" in the "To Reference" drop-down:

Do you have any hint/Idea what I could be doing wrong?

I must admit that this was after 3h already, but that cannot be the reason, can it?

Now in this case, I had a different App in the foreground after Screen On. Maybe that was the reason.

So I tried with BBS in the foreground. Screen off, wait 5 min Screen on. Now I get "Screen on" in the To-Reference, but the time is 0s

I also tried after 30minutes - no change. It is always 0s between Screen Off and On.

What am I doing wrong?

Best regards,

Hendrik
[BetterBatteryStats] maanz "L":
VK_WakeLock

(Android System): 20 m 37 s Count:403 4.9%

*job*/de.tutao.tutanota/.push.PushNotificationService (de.tutao.tutanota.Tutanota): 14 m 19 s Count:4 3.4%

ImapFolderPusher Outlook:INBOX (com.fsck.k9.K-9 Mail): 2 m 28 s Count:110 0.6%

Hi guys. Anyone knows what is this VK Wakelock? I just want to find out what causes this.

Thanks..
[BetterBatteryStats] vygavedha:
Hi....

I have been using mido(redmi note 4 snapdragon) for the past 4 years.Tried different custom roms of android version.Recently I flashed A11 ROMs dot and then battery drain from Android Os and Android System..In order to check any corrupted partition, flashed mi fastboot and then flashed lineage Is.Still idle drains three.

Attaching the dump file from screen off to screen on..

dump_link

Please advise , how to proceed once you get some time @TNSMANI
[BetterBatteryStats] vygavedha:
Dump_file_gdrive
[BetterBatteryStats] vygavedha:
Hi ,

Using Tissot with evolution x and then recently flashed cherish Os..SOT is not much as expected.Attaching the dump to check

Dump_file_gdrive

@TNSMANI can u help to proceed
[BetterBatteryStats] TNSMANI:
Which version of BBS are you using? Are you on Android 11? Use BBS version 3.5-244.

If you don't get "Screen On", it doesn't matter. "Current" will do.
[BetterBatteryStats] Surfinette:
On Oxygen OS, (I'm on v11.3) "USB Debugging" is also not sufficient to be able to grant permission, but we have no Security settings for USB debugging. Instead, we must enable "Disable permission monitoring" in Developer options.

@chamonix Would you mind editing your post #4 and add in section (2) that only enabling USB Debugging may not be enough to grant permission for some devices (such as those running on Miui or Oxygen OS) and add the above tips.

Thanks you your great work!
[BetterBatteryStats] asripath:
where can we download

BBS version 3.5-244 ?
[BetterBatteryStats] TNSMANI:
I don't know what VK wakelock is.

But a majority of the apps you have are draining the battery. In addition, your wifi shows as being on and running for only 4 minutes and BBS says no data connection the entire time. But background uploads/downloads happened and they were mostly on mobile data and very few on wifi. Doesn't seem to be right.

You seem to be running a very old version of BBS. Please install 2.5.344 and post a fresh dump. This version seems to be the best among the lot.
[BetterBatteryStats] TNSMANI:
Sorry, it is 2.5.344
[BetterBatteryStats] TNSMANI:
No access to GDrive.
[BetterBatteryStats] asripath:
ok got it...am on a11 with 2.6-382

will try 2.5-344 if its more stable

edit:

cannot find that on

App Center

install.appcenter.ms
[BetterBatteryStats] mrjuniork:
It's actually 2.5-341

2.5-341 is available via Appcenter.

Go and get it and you will see that it works just fine. Only hiccup I encountered so far is the non-collecting network stats section.

But I'm quite sure that's connected to my setup (A11 custom ROM with A10 blobs)
[BetterBatteryStats] vygavedha:
@TNSMANI

Sorry....restriction removed
[BetterBatteryStats] TNSMANI:
I am using 2.5.344 without issues. Haven't tried the other one.

EDIT: The 2.5.344 was from the Play Store. Saved the app and am using it. May not be available now, certainly not on PS.
[BetterBatteryStats] TNSMANI:
Your drain during sleep is only 0.5% per hour which is good on Android 11. Your wifi and mobile data seem to be off. Is that right? If so please post another dump with both on. If they were not off, install a later BBS version which is compatible to A11 and post a fresh dump with both on. Check the few posts below yours.

SOT is a different kettle of fish.
[BetterBatteryStats] vygavedha:
Thanks man...

I will try with version bb 2.5.341 for A11 with wifi and mobile data on.

Post the dump once I done with this.
[BetterBatteryStats] asripath:
can confirm 2.5-341 works quite well on A11
[BetterBatteryStats] efrainmartinez:
Hello, after being a premium user of this application several years ago I see that it is no longer available in the play store. I downloaded the latest version that is in the app center, it granted it all 3 permissions, but there is no way to see the wakelocks kernel. I have installed the last 3 versions of BBS from the Application Center and none of them make me read the Wakelocks kernels.

This has happened to me after receiving a major update for the S21 Ultra 5 days ago.

I also have another question, do you have to grant the 3 permits? Since there is a permit that refers only to lollipop.

Hopefully I can get some answer from you. Thank you 😉
[BetterBatteryStats] efrainmartinez:
Is
[BetterBatteryStats] Melhisedek:
Guys I have some strange partial wakelock called "SATelephonyChangedServiceHandler" by UID that is running wild and not letting my S21 Ultra sleep.

I've done some searches and I can't find anything about this wakelock on the google.

I suspect it has something to do with my Galaxy Watch 3 as "Galaxy Watch3 Plugin" is the highest battery drain as reported by the phone. I've tried resetting the phone and the watch and clearing cache but it still remains... Any ideas?
[BetterBatteryStats] efrainmartinez:
Hello, which version of BBS are you using? Since the last update that I had in my s21 ultra SD I stopped working correctly the latest version of BBS, it does not indicate the Wakelocks kernels, today I installed an older version to see if it gives me reading of the Wakelocks kernels but it seems that either.
[BetterBatteryStats] Melhisedek:
I'm using version 2.6-382. I too can't see kernel wakelocks but I thought it is because of no root
[BetterBatteryStats] efrainmartinez:
I am not root, and I had no problem until the great update of oneui 3.1 arrived 4 days ago. So far so good. Something happened with that update that does not read the kernel, but now I understand that it never made you read the kernel. Very weird everything.
[BetterBatteryStats] mrjuniork:
Try 2.5-341 (if you haven't already) and check the kernel wakelocks again.
[BetterBatteryStats] efrainmartinez:
Hello, today I installed that version and it does not make me read the kernel either. But all this happened to me after the last update for the S21 Ultra SD, since before this Samsung update, I had the latest version of BBS and I did read the kernel. Strange things about technology.
[BetterBatteryStats] Turbososad:
Thanks
[BetterBatteryStats] famusc:
Hi is BBS able to show wakelocks from system apps too?
[BetterBatteryStats] Oswald Boelcke:
Certainly. If you look e.g. at the idle dump that I've posted here, "com.google.android.gms.microG Services Core" is a system app.
[BetterBatteryStats] shaggyskunk:
Would be great if BBS could use Shizuku to grant permissions.
[BetterBatteryStats] lapirado:
Have updated to last version right now, and I'm unable to see kernel wakelocks and sensors 🤔 on a previous one I was able to check it (on 2.5xx, I think). Do I need to get back to a older version?

Edit: returned to 2.5.344 and now is all working good.

Thank you for the development of such a useful app 🙏
[BetterBatteryStats] dongioia:
Hi,

Im running BBS xda edition 2.6-382 on my rooted OP7Pro, running DroidOnTime OS and GaltsGulch's Kernel.

Everything is fine, except that the app doesn't collect kernel wakelocks stats.

I check the permissions and everything is allright.

The other stats are fully displayed.

How can I fix this?
[BetterBatteryStats] nickelnine:
Look at the post above yours.
[BetterBatteryStats] dongioia:
Thanks a lot
[BetterBatteryStats] cultofluna:
Not working on rooted beta 5 android 12 ( fail to collect stats)

Pixel 4xl
[BetterBatteryStats] tojdvd:
I'm using Redmi K40 with EU Rom Miui 12.5.6 stable

BBS ver lastest 2.6-382

Do you know what is SuspendLockout?
[BetterBatteryStats] dongioia:
Hi,

does someone know what is the first process displayed in the picture " FTCore:Consumer "?

I googled it but didn't find any clue.
[BetterBatteryStats] It_ler:
Was a USB cable connected during battery stats recording? Then ft might be file transfer ... just guessing
[BetterBatteryStats] dongioia:
No, it wasn't.

The screenshot was taken yesterday. Today I find the same process in the partial wakelocks section, but it drains 1% till now.

I'd like to know what is this process, because I can't find anything about it.

Thanks.
[BetterBatteryStats] TNSMANI:
Please read the previous posts in this page atleast, to know the reason.
[BetterBatteryStats] cultofluna:
If you're talking about version 2.5 341...still doesn't work
[BetterBatteryStats] MajorAly:
Just got a new S21 Ultra (512GB/16GB RAM variant if that matters), and I transferred everything from my old S8+ using smart switch (including apps).

The problem I was facing was that the battery drain was persistent on the new device which surprised me because it was a new phone.

Downloaded BBS (the newest version that was available as RC from the first post), provided permissions using ADB but it still wasn't working (no stats collected etc issue).

Downloaded and installed an older version (2.5.3xx something), provided permissions via ADB and it was working.

The biggest problem related to battery drain was something was using Google Play Services in the background at all times. Tried multiple fixes, enrolled in BETA and what not but to no avail.

Upon checking BBS now after 7-8 hours of sleep, I cannot see Kernel Wakelocks (gives the same no stats collected etc error) but at the ALARMS tab, I'm finding the following processes to be the culprit (screenshots attached as well).

*job.deadline* having 75 alarms so far <<< Biggest case of drain I believe

com.google.android.gms.gcm.ACTION_CHECK_QUEUE having 44 alarms

com.google.android.intent.action.GCM_RECONNECT

Also I'm seeing 2 separate com.google.android.gms on the alarms list.

Not posting the dump file since I'm not sure I qualify for posting it as per the first post and meeting all the criteria, but if someone wants I can post it.

Furthermore, I have uninstalled every single app from my phone now and only keeping WhatsApp and BBS, some I have disabled as well such as Messages from Google which was there by default.

I'm racking my brain now, should I just factory reset the phone and when using smart switch to just transfer messages, photos and files? And not the apps? Should I just proceed to set it up as a completely new phone and transfer every thing manually?
[BetterBatteryStats] TNSMANI:
Please post an idle dump as per instructions in the first few posts as that will help us identify the culprit/s, hopefully. Screenshots and partial info from an idle/in-use dump are not going to help. The dump as a whole has to be analysed and not in piecemeal.

That said,

relate to Doze and should be harmless. Trying to limit them will result the drain spinning out of control. The numbers are not the criteria. What they do and in what time frame are more important.

relates to your mobile signal. We have to see the full dump since info connected to it is elsewhere.
[BetterBatteryStats] MajorAly:
Here it is, I hope I dumped it right...
[BetterBatteryStats] TNSMANI:
This is not an idle dump. Screen was on for more than an hour. Please read again and post a proper dump.
[BetterBatteryStats] maximus81:
Hi Mods, thanks for helping out few months ago. I have since purchased a new device and having battery issues since day one. I have followed the guidelines and attached logs for your reference. Dropped 22% idle from 1am to 9am. Can't figure out what the reason could be. Could you please have a look and advise. Thanks is a ton.
[BetterBatteryStats] TNSMANI:
This is not an idle dump. Screen on for nearly half an hour. Please read the first few posts of this thread and post an idle dump.
[BetterBatteryStats] maximus81:
Oh ok. I noticed that idle should begin when battery is at 95% so I deliberately used the phone till it came to 95% and then left it for idle. Guess that's not the right way. I'll try again tonight with idle to begin once fully charged. Thanks anyways for looking into this. Will report back tomorrow.
[BetterBatteryStats] TNSMANI:
Don't start the dump at fully charged or from boot as that may skew the results. Around 85% battery is ok to start the dump. While saving, choose 'screen off' (on the left side drop down menu) to 'current' or 'screen on' (on the right side drop down menu).
[BetterBatteryStats] maximus81:
Tried this but unfortunately did not work. Device was 90% when I went to bed. Left it like that and in the morning, choose summary, then left drop down to screen off and right to screen on. It only showed data for last few seconds and not the last 7 hours or so.

Please let me know if below is the right way of doing it?

Phone fully charged 100%, charger unplugged. Phone left at idle. When it drops to around 85%, open BSS and then choose screen off from drop down on left and current or screen on from the right drop down and save dump.
[BetterBatteryStats] TNSMANI:
No.

You need not charge it fully. Either charge it to anything between 65 to 85% or if already fully charged, use it for some time to bring it down to around 85% or even less. Lock the screen and leave it for 6+ hours. Then unlock the screen, adjust the screen off to current/screen on options and save the dump.

Alternatively set the screen off and current/screen on options first and then let it idle for 6+ hours. On unlocking, check the options are correct and save the dump.
[BetterBatteryStats] dtoxic47:
A question about the logs, do i need to select all logs or 1 of the 3 when doing the log dump i have all 3 selected when taping on the share button...asking because ill upload the logs tomorrow once the phone has been idle for 6+ hours, so some one can look at them,will also post full context of my problem when i upload the logs
[BetterBatteryStats] maximus81:
I think I have done right this time. Could you please have a look. Thanks.
[BetterBatteryStats] dtoxic47:
Hi could some one take a look at these stats and make any sense of them,to put my problem in context...3 days ago everything was fine and then suddenly idle drain time went from the usual 3-4% to 10-12% from around 2am to 8am in that time only 3 apps make their scheduled check (mail,rss and twice a week a folder sync app) wifi and mobile data are on all the time (data is not in use since wifi is on) i included a couple of screenshots,they are labeled Battery-OK and NOT OK,as it;s seen there the graph on the NOT OK is dropping sharply compared to the OK ones...any way here are the files...if someone would take a look at these and make any sense because it;s driving me crazy and i am all out of ideas as to what the problem might be