yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] DB126:
Unfortunately, one of his requirements was to maintain regular backups unless I misinterpreted the following:
[BetterBatteryStats] githyanki:
I just use Tibu. If he wants Google backup, definitely going to need a dump to see if that's the issue.
[BetterBatteryStats] DB126:
Yep. My preference is good old nandroid (TWRP backup) for DR. I always build new devices from scratch transferring settings, configs, etc. as needed from another device. Native Android backup covers the occasional need to transfer entire apps intact. TiBU a great app for those who prefer a different approach.
[BetterBatteryStats] ali.jujara:
Please look at this dump. I am loosing almost 10 percent every night.
[BetterBatteryStats] strongst:
Instagram, Facebook, forumrunner are sending alarms causing wakelocks. But maybe your battery isn't the best in terms of capacity anymore. But at first you can make a test and freeze those 3 apps before going to sleep and see if there's more battery left when you wake up.
[BetterBatteryStats] ali.jujara:
Forum runner as in quora?
[BetterBatteryStats] strongst:
net.endoftime.android.forumrunner.teambhp and I forgot the desk clock
[BetterBatteryStats] ali.jujara:
Desk clock is the official clock app right?
[BetterBatteryStats] strongst:
Exactly
[BetterBatteryStats] drt1:
Phone kept awake.

Can someone please help me make sense of this? Been trying for a almost two weeks but just can't get my head around it. Phone is kept awake but it doesn't happen all the time. A reboot will usually sort it out. Most of the time it kicks in again after charging, but sometimes it'll just happen randomly without a charge. Can't find the culprit. Thank you so much in advance.
[BetterBatteryStats] TNSMANI:
I would say that switching off connectivity, ie data and wifi, resulted in the drain. Apps like Facebook, Instagram etc depend on connectivity and will try repeatedly to connect, resulting in drain. Restoring connectivity will most probably quieten them as the social media apps have become more battery efficient over a period of time.

So, while experimenting with freezing those apps is ok, don't attempt any drastic measures till you take another dump with full connectivity. I am sure your problem will be resolved.
[BetterBatteryStats] ali.jujara:
I have a habit off switching off data/wifi after using social media. I ll give it a try like you say and will let you know. Thanks.
[BetterBatteryStats] TNSMANI:
I could see two issues, one is the Photos app and the other is the wifi connection.

Since there is no networks stat shown in BBS (for whatever reason), I am unable to say much about Photos except to say that probably backup/sync activity of Photos caused a significant amount of drain.

Regarding wifi, see what other devices are connected to the same wifi since wifi chatter will keep the phone awake. Try a restart of your wifi if it had not been done for some time. Also try assigning a static IP for your phone and/or switching off the other devices from wifi and take another dump.

---------- Post added at 03:09 PM ---------- Previous post was at 03:02 PM ----------

Having apps which require net connectivity to function and switching off both data and wifi, is inexplicable unless you are roaming and have no wifi connectivity. If this is the case, then you will have to bear with the drain till connectivity can be resumed.
[BetterBatteryStats] DB126:
I see you have already received guidance on this issue. Me thinks the 10% run off has little to do with app related drain. Be interesting to see the results after "freezing" suggested items. Disabling network connectivity in the manner you indicated could be an issue if the device does not properly power down radios. Are you using airplane/flight mode or disabling radios individually? Network isolation alone will not trigger significant drain as apps are designed to handle that common scenario (more accurately Google Play Services which handles much of the behind scenes interaction).
[BetterBatteryStats] skivnit:
Anyone knows what is causing mmc0_detect kernel wakelocks as I dont an sd card
[BetterBatteryStats] ali.jujara:
No I do not use airplane mode. I just toggle data/wifi off. And again there is drain during the night but I can see that the battery is draining significantly fast and also I am getting a screen on time around 3 hours only and that too with AKT. I thought its an oreo related issue so i downgraded to nougat but the issue still persists.
[BetterBatteryStats] DB126:
If overall endurance is down and you have eliminated other potential culprits (kernel, network, ROM, etc) then the battery may be failing or some hardware component is not dropping into a low power state when idle. Have you tried booting into Safe Mode to eliminate user installed apps? While I don't think this is the culprit it's an easy test. Google "Android Safe Mode" if unfamiliar.
[BetterBatteryStats] ali.jujara:
Once i confirm that it is not app related I'll try the safe mode option. I ll try one more battery cycle tonight to see if the issue is app related.
[BetterBatteryStats] DB126:
The best way to confirm whether (fill in the blank) is a user related app issue is to use safe mode for a while. Freezing random apps without strong indications of complicity is the long way to a short answer.
[BetterBatteryStats] drt1:
Thanks a lot. Google photos gone for now and I'll see if it makes any difference. Yes, I noticed that there's no network stats and wondered how come. For some reason I never got any in the last two weeks, since I started using BBS (since I noticed idle drain). WiFi might be a problem as I am using a shared network (my neighbor) for the last month or so, until mine gets fixed. However, I have been using the same (and also photos app) on previous ROMs and never had idle drain before. I'm also getting rid of using that for the time being and see if it improves. Still, this issue kicks in on other WiFi networks too, not only on my neighbor's network. The other day I was at work, left work and half an hour later checked phone and seen a notification by BBS that phone was awake for the whole time since I left the office. I do use a Tasker to turn off WiFi if disconnected for more than ten minutes. Might that be hanging or something?

One question: I noticed this "Sensor: Significant Motion Detector(20), wakeup=true, Time: 6 h 15 m 58 s" in "Sensors" section. Does it have anything to do? I haven't touched the phone at all during the time BBS was collecting stats. Sorry if my question sounds naive, I'm a noob at this stuff as I never had battery issues before.

Thanks again.
[BetterBatteryStats] smiledexter:
what is it? Kernel? why does he use the internet?

0 (Mobile)
[BetterBatteryStats] ali.jujara:
Kept wifi on for the whole night and still getting drain of 10 percent. The alarm went off at 7 and I was snoozing as usual and I checked after two hours the battery was around 88 percent. Note that I have disabled the photos app and during this time I have not used the phone.
[BetterBatteryStats] js.tan:
hi noob here,

can anybody help me with my bbs dumpfile, is my phone stats good?

i have a feeling that some apps are draining my battery, but i dont know which one.

i have seen people that using this device has 7 hour or more SOT, but mine only got about 4 hour SOT

i am using redmi 4x (santoni), RR 5.8.5 final, magisk and xposed installed.

thank you
[BetterBatteryStats] DB126:
Another OnePlus A3000/A3003 with elevated drain. Thoughts:

- 1.1%/hr idle drain is elevated but not absurd

- device was awake ~11 min (screen off) during 6½ hour monitoring window

- CPU use largely low/idle during wake intervals

- 2½ min screen-on time is likely distorting stats (real idle drain <1%/hr)

- rundown starting at 100% may be (likely is) distorting stats

- best do a new run in 'safe mode' starting at 90-95% charge

- verify Google Now and WiFi scanning are disabled

Consider age of battery, device history (past behaviors) and general model characteristics...might be time for a replacement. Good luck.
[BetterBatteryStats] smiledexter:
Verry verry bid used.

Runing phone 18 h 42 m 2 s

Uid: Kernel (Android OS) big data leaked and battery drain. 0 (Mobile) (0): 27.0 MBytes 19,2% and battery drain 367 mAh.
[BetterBatteryStats] Tanogeek:
Xwxxxd
[BetterBatteryStats] DB126:
Unfortunately, BBS stats are borked (identical wakelock durations) which happens on some Android 7+ ROMs for unknown reason. General observations:

- idle battery runoff of 4% over 6 hours (0.6%) is quite reasonable

- device was 'awake' for nearly 20% of the above window making efficiency stat even more impressive

- appears health/fitness monitor functions (eg: smartwatch support) was driving much of the wake time

- other apps were minor contributors to wake time; wouldn't worry about them

Aside from the above everything looks good.

---------- Post added at 04:05 PM ---------- Previous post was at 04:02 PM ----------

Short answer: It's fine (core process); move on with your life.

Long response: BBS dump not to specs; includes large amount of screen-on time. See OP for guidance on creating proper BBS dump.
[BetterBatteryStats] js.tan:
[MENTION=5488402]Davey126[/MENTION] thank a lot.

guess, i'll try to search how to tame the wakelock from mifit app.
[BetterBatteryStats] DB126:
Great - you know which app is the potential culprit.

Suggestion: Don't try to "tame" wakelocks directly; you'll likely make things worse and likely waste a lot of time getting to a less desirable state (not to mention introducing undesirable side effects). Give Greenify a whirl. Hibernation is a better solution in most cases. Brevent is an alternative if you don't like the color green. Both are available in the Play Store.
[BetterBatteryStats] js.tan:
Oke, i'll try both apps and report back

hope that hibernating the app won't delay the notification send to miband.

thanks a lot :highfive:
[BetterBatteryStats] gvp9000:
Here is the dumpfile.

*backup* wakelock always keep my phone awake.

When I disable google backup I don't have this problem ....

Any other fix I could try, because I need google backup.

Samsung Note 3

android 5 stock
[BetterBatteryStats] TNSMANI:
Dump not according to requirements. Screen on time should be less than a minute, in fact as less as possible. Also a dump for atleast 6+ hrs preferred.
[BetterBatteryStats] DB126:
In addition to being out-of-spec (and thus largely unusable) log shows several issues that could lead to elevated wake time including poor/no signal. Google backup is of limited value on Android 5.0 (Lollipop); it certainly will not protect your personal data or settings in 3rd party apps. Might consider an alternative including tools that periodically copy personal data to Google drive or some other cloud repository. Most can be configured to back-off when signal levels are low and/or only perform runs when connected to WiFi.

---------- Post added at 01:58 PM ---------- Previous post was at 01:28 PM ----------

It likely will, as would wakelock limiting/blocking. Can't have your cake and eat it too if you want 7x24 'active' monitoring. App hibernation offers more control if seeking a balance. Also check app settings. Might be a way to curb activity during non-peak periods.

Finally, assess if the concern is truly a problem if you are deriving benefit from MiBand. More than a few have froze to death in their fully functional homes scoring exceptional low fuel usage ("just turn off the furnace, honey...we'll save a bundle"). Also consider the information MiBand is quietly collecting and sharing running in the background. Me thinks it probably goes beyond basic fitness info. Good luck. :)
[BetterBatteryStats] Logo1985:
I need help!!

Can anybody help me with a battery problem? My movile phone consumes a lot of battery wihout using it, without wifi, without dates connection (from 100% to 60% in 6 or 7 hours). It's a new phone, only a week with me. I configured it to spend the minimun, but it's the same. I don´t understand very much about moviles so I don´t know what to do with the results of Better Battery Stats. I will appreciate any help. Thanks a lot.
[BetterBatteryStats] strongst:
That strange process 6a00000.ssusb prevents your device from going to deep sleep hence its awake all the time. That is causing the battery drain. Please do a factory reset in the recovery(before back up everything, cause it's wiping your phone) and wipe caches too. Then test again.
[BetterBatteryStats] js.tan:
[MENTION=5488402]Davey126[/MENTION]

Sorry, My english is a bit rusty, if you mean balance what i need, not just greenify the apps that cause battery drain,

then yes, i need miband to alert me when there are notification, and if hibernate the app wont send me notification, then i just have to live with it.
[BetterBatteryStats] strongst:
You can try gadgetbridge instead of the native app for your mi band :good:
[BetterBatteryStats] ali.jujara:
I tried putting the device in safe mode and the idle drain was around 3-4 percent in a course of 7 hours. Yesterday i charged my phone around 97 percent and it drained around 12 percent during the whole night
[BetterBatteryStats] js.tan:
great idea, i will give it a try.

do you use gadgetbridge? does it drain battery?
[BetterBatteryStats] Luinwethion:
So I found a TKbay video where he talks about this great app, and I wanna to check the difference between turning EMUI strict background app control on and off.

I get the stats like awake / asleep , radio and etc. But I get no information on the usage by app.

I've search all throughout the settings without any luck.

Am I missing something, or will this be a EMUI thing?
[BetterBatteryStats] strongst:
Yes im using gadgetbridge with my Pebble and there's no drain from the app at all.
[BetterBatteryStats] js.tan:
ok, thanks a lot, i will try gadgetbridge later
[BetterBatteryStats] DB126:
Agreed. Drain was not unreasonable (perhaps 0.5%/hr). Also consider alternative apps such as the one suggested by [MENTION=613506]strongst[/MENTION].
[BetterBatteryStats] skivnit:
I have been using this app since the start, I overall can pinpoint the culprits but with my s8 and now s9 I seem to have a kernel wakelock mmc0_detect. I know that mmc is for storage but 0 should be internal storage right?anyway, here's my dump hopefully someone can help me have better battery sleep

https://filehost.net/d27afe3b98af2c48
[BetterBatteryStats] DB126:
Latest log is distorted by 11+ min of screen on time which included a 145 MB YouTube download and a phone call. So 0.9%/hr including the burst of activity that occurs after waking the device and reestablishing network connectivity. Plus YouTube ...

Screen off wake time was ~12 min over 11½ hours. Quite reasonable - but no detail on effective drain rate due to above distortion.

Log indicates Amplify is installed. Well, all bets are off. Wakelock limiting is a leading cause of device instability, erratic drain and otherwise inexplicable behavior. Not saying that is the source of your issue(s) but has no place going forward.

Appears the drain baseline for your device is somewhere under 1%/hr. Not the best but not unusual for OnePlus A3000 series.
[BetterBatteryStats] TNSMANI:
The dump is not proper. Instead of 'From Unplugged' 'To Screen On', it is 'From Unplugged' 'To Screen Off', the result being that more than 11 minutes of screen on info has muddled the dump. And as already stated multiple times by others as well as me, the screen on time should be as less as possible, preferably in seconds, before the dump is saved.

EDIT: [MENTION=5488402]Davey126[/MENTION] beat me to it :crying:
[BetterBatteryStats] js.tan:
thank you all, i will report back after testing several options
[BetterBatteryStats] DB126:
You'll need to attach directly or find another host. Accessing link via desktop yields requirement to disable ad blocker (not happening). Mobile access entails 30 sec timeout for unregistered users.

Before going through the effort to repost recognize little can be done about kernel wakelocks not tied to a misbehaving app/service. The presence of a wakelock does not necessarily equate to excessive (operative word) drain. Alarms and wakelocks are not evil despite ignorant attempts to characterize them as such. Apps, services, etc that abuse their privileges are the true culprits.
[BetterBatteryStats] skivnit:
Sorry about that didn't know where else to upload as I cant attach text files using tapatalk apparently. I know nothing can be done about kernel wakelocks I just want to find out if an app is triggering it as I have long awake times from it.

https://pastebin.com/e6zx84EH

Hope this is ok
[BetterBatteryStats] Logo1985:
it doesn't work for me

Thanks. I just did it and the problem persists. Has anyone another idea? I'm bored with this phone.
[BetterBatteryStats] DB126:
Yep - pastebin is much better. Excellent log, BTW. Appreciate you taking the time to do it right. :)

On the go ATM so only glanced at log. Got a memory card in that S9? If so pop it for a day and see if it calms the wakelock. Bit of a WAG but something tells me this one is solvable.

Edit: screen-off wake times fall within reasonable range for a high-end unrooted device. Also, "ignorant" quip was not directed at you! Although no one should ever be offended by the word. Most of us are 'ignorant' to 99.9% of the world around us; the really bright ones might shave a percent or two off that. The balance represents learning opportunities. Those who view themselves as the inverse of that characterization fit the characterization perfectly.
[BetterBatteryStats] skivnit:
The sd card is already in:) maybe I should remove it?
[BetterBatteryStats] TNSMANI:
Yes, that is what Davey is advising you to do.

EDIT: Since you are on mobile data and not wifi, I think that your drain (apart from sd card related) at 0.8% per hour is reasonable.
[BetterBatteryStats] skivnit:
My bad, I read put it in
[BetterBatteryStats] TNSMANI:
See some solutions here: https://xdaforums.com/oneplus-3/help/6a00000-ssusb-wakelock-wld-bbs-t3463062
[BetterBatteryStats] tsiftsism:
Hello.

I attached both the dump and the logcat files so you can read them and tell me if you see anything weird in the battery usage.

The phone was running for almost 8 hours since I unplugged it (the hours that I was at the work), the usage was not heavy and and battery level was @75% by the time I went back to home.

Thanks in advance for your answers.
[BetterBatteryStats] Bogdan010:
No alarms, why? In v2.2 worked perfectly
[BetterBatteryStats] MattyDip:
Hello,

I tried to make Betterbatterystats working on my GS7 Edge without root permission but I'm always getting this screen when I'm starting the app. Is everything OK or something has gone wrong?

Can I remove this screen?

Thanks a lot
[BetterBatteryStats] Bogdan010:
Grant requested permission over adb
[BetterBatteryStats] MattyDip:
This is exactly what I've done as you can see for the other permissions.
[BetterBatteryStats] Bogdan010:
And package usage stats?
[BetterBatteryStats] MattyDip:
Now it's working. I forgot a letter in the code. Sorry.
[BetterBatteryStats] SingularityHRT3:
A Kernel Wakelock named sensor_ind seems to wake Up My device from sleep too often, draining about 10% in 8 hrs when not using the device... The time of that wakelock being on is the same as the time Google Play Services uses Significant Motion Detector... It disappears as I turn off Ambient display but comes up again on enabling it (there is no pick up to enable Ambient display)... Tried different Oreo ROMs and Kernels but still the same issue... This started after what seems to Google Play Services's mid February update (before that I didn't face any such issue)...
[BetterBatteryStats] skivnit:
So removed the sd card but that wakelock remained. Also removed sd card and put airplane mode on but with wifi on it's still there. Only airplane mode removes it. I'm thinking it's related to the modem
[BetterBatteryStats] TNSMANI:
When turning on Ambient Display, also turn on Adaptive Brightness. I read somewhere that the combo solves the issue. Or turning on the Screen Rotation solves it for some others.
[BetterBatteryStats] SingularityHRT3:
I had both adaptive brightness and ambient display on but had the same issue... Didn't try with screen rotation on... Will try that and report...
[BetterBatteryStats] TNSMANI:
For some others, the kernel dev solved it by an update.

EDIT: If both were on, switch off both and then turn both on.
[BetterBatteryStats] sgtslaughter64:
I'm new to the app. I was wondering if anyone has any suggestions for minimising the drain on HTC10, Leedroid ROM, Oreo 8? I'm experiencing about 30 to 40 percent an hour?
[BetterBatteryStats] iamnotkurtcobain:
This is so bad... Google Play Services suck
[BetterBatteryStats] strongst:
Many apps are using Google services to communicate with the internet. It's like a gateway and has been changed before ages.

You need to look at the other tabs too.
[BetterBatteryStats] DB126:
Well it was characterized as a long shot. :)

So you have a kernel mobile/modem wakelock with reasonable idle drain (screen off wake time falls within expected norms) on an unrooted sensor laden device. Not much you're going to do about that other than nibble around the edges with personal app selection/settings. Nothing jumps out in the log. Enjoy your device for what it is.
[BetterBatteryStats] sleepwalking0593:
If you hibernate the app using greenify the alarms caused by the apps are removed from data. I am on oreo using oxygenos on my oneplus 5, running the latest xda build. I think this shouldn't happen as data about the alarms caused by a particular app is removed and I can't track of how much alarms the app is causing in the whole battery cycle. I use line messaging app it causes enormous alarms so I use it and greenify it when I'm done with it. Hope someone can help me on this issue.
[BetterBatteryStats] DB126:
Alarms and wakelocks without a corresponding action are essentially benign. Litmus test is the forest not individual trees. If battery endurance falls within expected norms then it is game over and you can get back to using your device vs managing it.
[BetterBatteryStats] sleepwalking0593:
When I use line app it's shows on the top of list but when I greenify it, it vanishes. Till the time I again open app and alarms starts calculating again from the starting. Earlier alarm counts are lost.
[BetterBatteryStats] DeadlyToast:
Anybody has high number of wifi scanning alarms like me? Can I limit 'em without any life threatening consequences?
[BetterBatteryStats] strongst:
Did you disabled wifi location scanning?
[BetterBatteryStats] DB126:
There is no benefit to limiting alarms (or wakelocks) without a corresponding battery drain. There are plenty of reasons not to including erratic device behavior and the potential to actually increase drain.

Suspect you have WiFi scanning enabled. Location services can also trigger this behavior.
[BetterBatteryStats] DeadlyToast:
No I always have it on disabled. I've noticed that if I leave my WiFi on when I leave the house for an hour and go to a WiFi dense area it gets around 200-400 alarms for wifi scan scheduler (I've put my phone on charge so I can't see the exact name of the alarm).
[BetterBatteryStats] SingularityHRT3:
I tried everything... But still... Here is a screenshot...
[BetterBatteryStats] DB126:
Again, I would not worry about the alarms unless there is a significant corresponding increase in battery consumption. Tilting at the Alarm/WL windmill without further collaboration is wasted effort at best and very well may become counterproductive.
[BetterBatteryStats] strongst:
Nothing to worry about, if there are many wifi access points, then it's normal that the scan count increases. And if you are connected and roaming between the same SSID's it causes additional alarms.
[BetterBatteryStats] soilentgreen:
Yestarday before I went to sleep I install the app, and today I saw that my deep sleep is 0%.

com.cmplay.tiles2 (): Wakeups: 364 (2.8 / h)

Alarms: 362, Intent: com.cmplay.tiles2/com.cmplay.tile2.ui.ReportService

Alarms: 2, Intent: tiles2_ccrash_delay_task_action

I uploded two dumpfiles. one of Unplugged to Current and one of Unplugged to Screen Off.

I get "99% awake while screen off." notification from BBS

I would appreciate it if someone could tell me what I need to do.