yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] githyanki:
When someone looks at the log and sees an hour of Spotify and 2 hours screen on time, how do we figure out if it was you that was playing with Spotify, or there is a problem with it acting up?

If it is an idle log, then we can tell it was not you doing things and can tell what the issue is.
[BetterBatteryStats] Cannapro:
Hi guys!

I recently installed the app, and I saw that it was Snapchat that caused me so much idle battery drain.

Do you know how to prevent this?
[BetterBatteryStats] curiousrom:
Nothing can be concluded from that single screenshot. And with a battery usage of -5.3%/hour hopefully you were using your phone so it says nothing about what it's doing @ idle.

Read post #1 > If you need help chapter & attach a proper dumpfile to your next post.

***
[BetterBatteryStats] jesrani:
Attached measurement with WiFi off. Battery drain is same. What could be the reason?
[BetterBatteryStats] strongst:
Hmm, there's no record of the mobile stats at all :rolleyes:
[BetterBatteryStats] jesrani:
Did i make some mistake in collecting the data?
[BetterBatteryStats] strongst:
If you have deactivate flight mode and enable mobile data, everything is finde. Then I don't know why it's not recorded.

But do you have good or bad mobile signal when recording the dump? How's the signal strength?

Also the age and usage of the battery can play a major role.
[BetterBatteryStats] githyanki:
Think that's because of airplane mode.

Only thing I see is TiBul and busybox (used by TiBu)

Other things of note, please update bbs.
[BetterBatteryStats] jesrani:
It was not in airplane mode. Only WiFi was off. Mobile data was on. However mobile signal is not very strong inside the house. I will try with both WiFi and Mobile data off and post the measurements.

Does it seem to be a case of bad battery (2½ years old)? Can the battery current or voltage indicate battery problem?
[BetterBatteryStats] strongst:
If the signal is weak within the house, the radio needs more power to keep the signal strength.

A Lithium battery will last for ~3 years and ~500 charging cycles, all optimum circumstances. If there's something not optimal, it decreases the life of your battery. Also the quality of a battery is a key factor.
[BetterBatteryStats] TNSMANI:
My two cents:

I have seen both the dumps. Mobile signal seems to be ok. In the second dump, there were downloads on mobile data.

Widget updates are too many. Either reduce the update interval or the widgets themselves.

Nothing else jumps out. May be a failing battery.
[BetterBatteryStats] jesrani:
I have Elixr2 widgets and Ebobirthday widget running. Will remove both and see if it gets better.

I think I will also change the battery because it seems to have lived it's life.
[BetterBatteryStats] loveleeyoungae:
Hi, I'm on Oreo and using the xda version from Hockeyapp. I'd like to ask about the "Event Processing" notification:

1. Dev is forced to implement that notification function as default to inform users that the app is running in the background, but later users can safely disable the notification in Settings> Apps> BBS> Notifications without affecting any functions of BBS?

2. With or without the notification, is BBS running in the background constantly or it only means that BBS is allowed to stay in the background and can collect data only when necessary?
[BetterBatteryStats] artisticwizard:
You can disable notification and it will still keep working as it's supposed to be. No issues st all
[BetterBatteryStats] Kobra.shady:
I love this thread...... Senior member are really very co-operative and help alot..... That's why android is so good due to amazing communities like this ???

Also a very humble request to all the newbies and 1st time users... Please please please read the first few pages n institution.......

Every time senior member have to repeat "ur dump is not accurate".....So alot of time of everyone can be saved if we all take some time and read the OP and then ask queries..... I guess at times for senior member it might be very irritating to again n again say "please read the instructions in the 1st page before Posting dump "
[BetterBatteryStats] chamonix:
No bbs is not running constantly in the background: the app is passive.

The reason for the background in a nutshell: bbs needs to be notified of events like plugging/unplugging power as these event cause references to get saved on these triggers. Now the android SDK is cumbersome in this regards and requires a service to run in the background (thus the notification) to react to these events. This is the reason for the notification: registering the power events and trigger saving according references, nothing more.
[BetterBatteryStats] curiousrom:
Disabling BBS Event Processing Notification

You forgot to reply to this part of his question:

And the answer is yes the notification can be disabled without affecting BBS as [MENTION=8652721]yougotmehere[/MENTION] replied above & you wrote in How-to and FAQ post #3:

***

I understand your logic to keep the thread title w/ v2.4 as that's the version currently available in your Google Play page https://play.google.com/store/apps/details?id=com.asksven.betterbatterystats

***

It's a minor annoyance & I don't know if it would be difficult to implement because of the Share To funcion but when hitting Save the Dumpfile & other logs are saved & buried in /sdcard/Android/data/com.asksven.betterbatterystats_xdaedition/files/Download/.

Could they be saved in a simple /sdcard/BetterBatteryStats/ folder instead?

***
[BetterBatteryStats] dechoder:
Hi, my dump file is attached. My idle drain hovers around 1.3% to 2% consistently in the last few days. I know it's not very high but I think it should be under 1%. So I would like to know what is causing it.

I would greatly appreciate it if someone could take a look. Thanks!
[BetterBatteryStats] artisticwizard:
Try again. Sleep time should be more than 6 hrs and screen on time less than 1 min.
[BetterBatteryStats] dechoder:
Ahhh I was so close... Ok will try again tonight. Thanks!
[BetterBatteryStats] githyanki:
Your time off is a bit short, and screen on was a tiny bit over, but not so much that it was impossible to look at. The worst thing I saw was wechat. It had Wakeups: 46 (7.8 / h), but the time it of doze was very low, so I would think that you may just have an old battery.
[BetterBatteryStats] dechoder:
Hmmm the phone is only 7 months old.. Anyway, will try again tonight. Thanks!
[BetterBatteryStats] chamonix:
Well that's the way it used to be but unfortunately apps are now confined to their app directory by the api
[BetterBatteryStats] dechoder:
Ok take 2.. New dump file attached. Time off and screen on time are correct now. Appreciate it if someone could take another look. Thanks!
[BetterBatteryStats] pjadec:
Strangely, I don't know why drain is so high. How old your OP6?. Try different kernel or full factory reset. Normal drain should be 0.4 - 0.7% in sleep mode.

I have OP6T and my battery drain in sleep mode is 0.4 - 0.5%.
[BetterBatteryStats] dechoder:
My OP6 is 7 to 8 months old. I was on OOS beta previously and everything was fine til maybe a month ago. So I changed to OOS stable a few days ago and still seeing the same issue. I've also tried stock and multiple custom kernels and still the same.

So there's nothing obvious you could see from the dump file?
[BetterBatteryStats] strongst:
The dump contains no roque things except the smurf kernel which isn't stock
[BetterBatteryStats] pjadec:
Try flash to original with MsmDownloadTool

https://xdaforums.com/oneplus-6/how-to/tool-msmdownloadtool-v4-0-international-t3903272

Or older version

https://xdaforums.com/oneplus-6/how-to/tool-msmdownloadtool-v4-0-international-t3798892

Theare something wrong in your OP6
[BetterBatteryStats] dechoder:
What's the difference between flashing with MsmDownloadTool and TWRP? I've always flashed through TWRP in the past.
[BetterBatteryStats] strongst:
If you have no twrp or recovery or bricked your device, you need msm tool
[BetterBatteryStats] pjadec:
There's something corrupted in your phone system, if fresh flash in twrp doesn't help. I suggest you do msmdownloadtool job.
[BetterBatteryStats] skivnit:
I'm using bbs since it's early release days but with pie on Samsung s9+ it became q headache, it 'ever works. I always get the non compatibility message every time I open the app. Also no reference is every saved. It's always falling back to boot
[BetterBatteryStats] curiousrom:
Samsung S9+ Headaches

Which "non compatibility message" exactly?

Is it like #26 in the How-to and FAQ post?

Maybe you could in BBS > Settings > Advanced > enable Debug then after leaving the phone alone for a while use the Share icon > Save Dumpfile & logcat and attach them to a post?

***

This S9 user also had a reference point issue:

Yes you can help troubleshooting your issue by attaching a BBS logcat after enabling Debug as described above.

***

***
[BetterBatteryStats] -sandro-:
Any idea what is keeping my phone awake?
[BetterBatteryStats] strongst:
Please provide a dump file according to the instructions in the first post :)
[BetterBatteryStats] dechoder:
Well msmdownloadtool seems to have done the job. Idle drain back to normal. Thanks again!
[BetterBatteryStats] skivnit:
Discovered that I accidentally put BBS on the always sleeping list hence it wasn't saving different references. All good now
[BetterBatteryStats] lukaszsas12:
does bbs still not work on s10 plus ??

Wysłane z mojego SM-G975F przy użyciu Tapatalka
[BetterBatteryStats] skejcik:
not work:crying:
[BetterBatteryStats] shaggyskunk:
Works just fine on my S10+ Snapdragon variant & it's always worked - I'm using the XDA version fwiw ?
[BetterBatteryStats] M249:
Hello there,

i have also a log from my SM-A310F with Lineage OS16

battery must charged 2x in one day...heavy battery discharge...but why?

http://s000.tinyupload.com/index.php?file_id=10011182141103982808
[BetterBatteryStats] githyanki:
Phases try another idle dump, your has 20 minutes screen on time. Need to have it under a minute.
[BetterBatteryStats] jerryspring:
Apk says it has problem with API...on 9.0 . Why?
[BetterBatteryStats] jeroen_13:
I've been getting an awful lot of "job.deadline" and "job.delay" wakelocks. Even as high as 2.3/min

They are all from "android", how can I decrease the number of calls ?

Running Android 9, Google Pixel 2, stock with root + magisk + ElementalX kernel (also had the wakelocks with stock kernel)

I've attached a dump and screenshot

Thanks in advance
[BetterBatteryStats] githyanki:
Your dump has over an hour screen on time. Please redo the IDLE dump for a 6+ got period with less than a minute screen on time.
[BetterBatteryStats] DB126:
Irrelevant unless (indirectly) contributing to excessive idle battery drain or preventing device from entering a low power state. No need to 'manage' Android internals exposed by BBS in the absence of a problem.
[BetterBatteryStats] mrQQ:
Hello,

can someone please help me understand why I have more than 2 ahours awake with screen off, even if I don't have any long wakelocks? :(
[BetterBatteryStats] strongst:
You have 4h screen on time... Your device is active even after screen off. Check the first post how to provide a correct dump file.
[BetterBatteryStats] Unknowx:
since I have a constant battery drain problem with one plus 7 pro, I would like to use mtmdownload to flash the system.

I lose the root Whit Magisk and ex kernel?
[BetterBatteryStats] Oswald Boelcke:
I suggest to raise the question here: https://xdaforums.com/oneplus-7-pro/help
[BetterBatteryStats] 4Freedom:
Xiaomi Mi9 Stock MIUI (Android 9 - Not rooted)

I get this error when i type those 3 CMD commands.

java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
at android.app.ContextImpl.enforce(ContextImpl.java:1822)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1850)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1391)
at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:89)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2118)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5607)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21876)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2809)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4017)
at android.os.Binder.execTransact(Binder.java:733)

Any ideas?

Problem solved.

On Xiaomi devices, "USB Debugging" is not sufficient. We must enable "USB debugging (Security settings) in developer options.

Nb: Xiaomi Mi Account Required (SMS Verification too)
[BetterBatteryStats] mrQQ:
Why is the device active even after screen off?
[BetterBatteryStats] strongst:
Cause you use it a lot and it did not enter immediately deep sleep after screen off or whatever you do while using it (play music while screen off etc.) that why only a idle dump can be investigated.

Please do follow the instructions in the first post as already suggested :good:
[BetterBatteryStats] NickosD:
I keep losing adb access to bbs and gsam. S10 plus exynos. I tried to re install both apps and give again, but after some time they won't show any stats.

It will only work for some time after I remove the phone from the charger.

Using the play store version. Should I try the xda's?
[BetterBatteryStats] githyanki:
No, should try the hockyapp version.
[BetterBatteryStats] NickosD:
This one, right?

I'm already a beta tester on play store version. I thought it was the same version but I'll give it a go
[BetterBatteryStats] githyanki:
You didn't mention beta tester, or any version the first time. If it's the same version, I wouldn't expect much change.
[BetterBatteryStats] chamonix:
Note xda edition is always one step ahead of beta and not every build goes to the beta channel either. Per analogy xda is the fast ring, beta is the slow ring.

It is on purpose as the development lives from feedback and gplay beta does not offer a good enough approach in that regards.
[BetterBatteryStats] Windroid-user:
Why is Bluetooth using my battery when I don't even use it? I feel like it has to do with google to locate me or smart lock which I also don't use.
[BetterBatteryStats] Windroid-user:
Bluetooth scanning is off, weird...
[BetterBatteryStats] cpoxda:
Hi, I have been trying to figure out what's draining my battery when my LG V40 is idle. Can somebody please have a look at the dump file linked below and give me some insight? I have been dealing with this issue for months and I have tried uninstalling apps. I even wiped the phone and started over a few months ago but I can't seem to figure out what is causing the drain. After a reboot the idle battery drain doesn't seem to occur but after the system has been running for a few hours then the drain at idle comes back. Thanks for having a look!

https://drive.google.com/file/d/1lpLARrPxVVl0IPz1aS-tKVG4ab2Xdl8g/view?usp=sharing
[BetterBatteryStats] strongst:
Please make an idle dump file according to the instructions in the first post. Only 15min won't give enough insight.
[BetterBatteryStats] NickosD:
Okay so if iw ant to use adb, what's the command? Samsung settings want show the com.blablabla thing

Edit: got it.
[BetterBatteryStats] Windroid-user:
I apologise, I did read the thread quite a while back from researching different apps which monitor wake locks etc.

This time I just posted it without reading the instructions to refresh my memory because Bluetooth simply shouldn't be running at all. But thinking about it now, another app must be triggering it which now makes complete sense to get a dump log.

Once again I apologise, I was slightly frustrated at the time. Also, the alarm comes from "Bluetooth Share".

Will post a dump log soon
[BetterBatteryStats] cpoxda:
Please help :)

Hi, can someone please have a look at my dump file? (below)
[BetterBatteryStats] strongst:
Do you have wifi enabled? If yes, please turn it off and repeat the dump within same conditions as possible. Nothing more for the moment to break it down.
[BetterBatteryStats] NickosD:
https://drive.google.com/file/d/1-prtNVaz2X4gcPwabBU0l4CMGnV8EyAS/view?usp=drivesdk

Here's my dump file. I think I have something draining a bit battery. Lost 7% over night. Bt is always on for my gear, volte, data, wifi, location etc I never turn off.

S10+
[BetterBatteryStats] strongst:
Unfortunately you did not post a public Google drive link
[BetterBatteryStats] NickosD:
It should be ok now
[BetterBatteryStats] strongst:
0.9%/h isn't bad with connected gear and health monitoring etc.

Your mobile signal isn't good 50% of the time and a lot of wifi wakelocks(check your wifi quality).
[BetterBatteryStats] NickosD:
Well I just got the s10+. The first day I got 8h soy with 20-22 overall usage (a lot of setup etc). Next day I installed both bbs and gsam.

I had given both apps adb access, they were working for some time after a full charge but after a while they weren't showing any stats. So any chance they were draining battery because they were trying to access the battery stats etc?

Yesterday I unistalled them both and I installed the one from the testers channel and so far so good (stats are still showing up so its still got adb).
[BetterBatteryStats] strongst:
It's not being collected by bbs itself and not relevant.
[BetterBatteryStats] NickosD:
Unfortunately, with latest version from testers channel, I still not getting stats after some time.

Do you need any log or its a known issue with s10+?
[BetterBatteryStats] strongst:
Please search this thread for "s10" and you'll find already answers :)
[BetterBatteryStats] murti52:
Hi, is hockey app not working or the site is down..? I have 2.5.330 version and wanted to update (if there is an update). Thanks
[BetterBatteryStats] TNSMANI:
Your major issue seems to be with your wifi router and not with your phone. Though wifi is shown as connected and running the whole time, all background downloads happened on mobile data. In addition, other alarms and wakelocks are also consistent with wifi being an issue.

Try re-setting your wifi. Are there any other devices connected to it, especially like printers? Disconnect all other devices and take a dump and post it here. Likewise as strongst said, another dump without wifi may also help. Dumps of 6+ hours will do.
[BetterBatteryStats] cpoxda:
I had Wi-Fi enabled for the first dump, so as strongst requested, here's another dump with wifi disabled. (link below) Thanks for looking at this, strongst.

Tnsmani, this issue happens when I'm not home as well, so it doesn't seem to be my wifi router that's the problem. I don't know what you mean by re-setting my wifi. Do you mean reboot the router? When you ask if there are other devices connected to "it", do you mean to my phone? No printers or anything connected to my phone but I have a printer and of course other devices connected to my router. In terms of wifi settings, here's what I have now: Wi-Fi > advanced wi-fi: Switch to mobile data [ON] (Switch Automatically to mobile data when internet unavailable via Wi-Fi) AND Developer options > Networking > Cellular data always active [ON] (Always keep mobile data active, even when Wi-Fi is active (for fast network switching)). The other options in Networking under Developer Options are the defaults. I'm running a stock ROM, Android 8.0 that isn't rooted if that makes any difference. (which I imagine appears in the dump anyway). Now since this seems to be Wi-Fi related, I will turn off the two settings that I just mentioned to see if it will help with my battery drain when phone is idle. Unfortunately turning off Wi-Fi on the phone didn't help with the battery drain, since last night at idle the phone was still [awake with screen off] 80% of the time. (as shown in most recent dump, link below). Thanks for the help Tnsmani.

https://drive.google.com/file/d/19nhEeTX9SYtw6gLYbkjvssrfURy8jL_h/view?usp=sharing
[BetterBatteryStats] strongst:
Thanks for the idle dump with disabled wifi! So far no changes as we can see.

NETLINK (*api*): 3 h 24 m 37 s Cnt:(c/wc/ec)727500/0/0 48.3%

That is holding your device awake.

Also the inter-process communication (IPC) is significant high with an hour. There's some communication under the good from network driver/location service, maybe.

Do you have wifi and Bluetooth location scanning off?

Since it's not rooted is it's bootloader locked? I recommend a factory reset and test with default settings without any 3rd party apps, but first answer the questions above. It can also be an issue with your wifi driver.
[BetterBatteryStats] cpoxda:
Wi-Fi and Bluetooth location scanning were on, so I just turned them off to see if that will help. Bootloader is locked. Thanks for your help!
[BetterBatteryStats] Oswald Boelcke:
You'll be surprised how much this will help. This is not onyl one of the evilest things for privacy but it also drains battery like...
[BetterBatteryStats] cpoxda:
Success!

:) :good:

I'm happy to report that the idle battery drain issue is gone, thanks for the suggestion strongst to check location scanning. I turned off Wi-Fi and Bluetooth location scanning and now the phone is finally behaving nice again. I wish that I would have asked for help months ago. :p

:) :good:

I'm happy to report that the idle battery drain issue is gone, thanks for the suggestion strongst to check location scanning. I turned off Wi-Fi and Bluetooth location scanning and now the phone is finally behaving nice again. I wish that I would have asked for help months ago. :p
[BetterBatteryStats] strongst:
Glad to hear that. You're welcome to ask questions at any time :D
[BetterBatteryStats] m8980:
hi,

I'm using latest beta from play store on my rooted samsung galaxy s10+.

but bbs doesn't collect stats. i granted permission via terminal and adb, but no luck.

how can I solve this?

thanks
[BetterBatteryStats] TNSMANI:
Glad to hear that!

Please search this thread with your phone's name. It has been discussed umpteen number of times.
[BetterBatteryStats] NickosD:
Any ideas on why nova is using the acceleration sensor and how to turn it off?

Since Monday I had higher battery consumption and itight be because of that.

I have static wallpaper
[BetterBatteryStats] strongst:
Try this within Nova settings: Settings - look&feel - screen orientation - force portrait
[BetterBatteryStats] cangokturk:
P30 pro terrible SoT.

Hi guys,

I have serious battery problem with my p30 pro. While others are getting 8-9 hours of SoT. I am getting max 4.30 HOURS. I don't play games there is not a one in my phone. I usually use just for whatsapp and chrome, Always on mobile data and, 2-3 hours hotspot on.

Could you please tell me your opinion what is wrong with this device. I added some screensshots from batterystata app.
[BetterBatteryStats] Oswald Boelcke:
I apologise but screenshots are never useful for an analysis; and anyway your screen on time is about 2 hours and 45 minutes but should be less than 1 minute.

Please refer to the OP how to capture a BBS log (aka idle dump) that could be used for an analysis.
[BetterBatteryStats] AdLion:
I did the test shown on first page. Why so much battery drain (>3%/h) with phone in standby? :mad:

https://hastebin.com/oqusubebex.m
[BetterBatteryStats] strongst:
You're also welcome to post a dump file according to the instructions :)
[BetterBatteryStats] AdLion:
I can't post any link. I'm a new user. :(

How can i attach a file?