yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Social hub, sync and location are your main issues.

- social hub: bloatware, you will need root to freeze it

- location: are you using latitude?

- sync: I suggest you visit your settings

Most of the two hours of awake were caused by network traffic.
[BetterBatteryStats] Piratebhoy:
I don't use latitude... will investigate.

Other than google mail, it shouldn't be syncing anything. The problem is i don't know what is syncing.

I keep trying to clear social hub, but no luck.

Even with these things, do you think the battery is performing ok?
[BetterBatteryStats] cdmackay:
If you were continuously connected to an AP, then yes, that is what is expected.

On means on, but not connected to an AP. Running means connected to an AP.
[BetterBatteryStats] filipeataide:
Gallery drain

Hey there guys.

In my Partial Wakelocks the biggest hitter is, from 8h26m6s:

*sync*

com.cooliris.media.Gallery

6h34m7s (23647 s) Count:34 77.9%

How can I fix this?

Thanks
[BetterBatteryStats] Karpfenhai:
Thx for clarifying, I'm used to disable my wlan if i dont use it, that might be the reason why there is no difference ;-)

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] chamonix:
Your had huge amounts of data to transfer or cooliris' server was really slow. Either way you should check the settings and decide if you need that service. For cloud based stuff my opinion is that a setting to sync only on wifi / when charging should be mandatory.
[BetterBatteryStats] jeremysherriff:
Hi, it's impossible to say if your battery is performing OK because you don't say if it was fully charged when you unplugged it (I don't know what Statistic Type: (4) is, might be "since charged"?) but you also don't say what level it was at the end of the 10 hours.

Something else not mentioned - if you don't need them all delivering immediately, don't use push mode for the 4 mail accounts. Try an hourly sync instead, for the ones that aren't so important. The network issues could easily be continuous attempts to connect in push mode when you have poor network/data coverage.
[BetterBatteryStats] sohebq:
I lost 10% battery on overnight charge in just 5 hours. Log isn't showing any suspicious thing.
[BetterBatteryStats] chamonix:
Half of the time awake is attributed to SMSDispatcher, suggesting the handling of sms/mms for 8 minutes!

Except that this reading seems odd (look at the kernel wakelocks)

You should take another reading
[BetterBatteryStats] TNSMANI:
@roasm

These are the major culprits:

Your mobile signal is patchy and on top of that, mobile data was used to download/upload 108 MB. That will drain a lot of battery.

I don't know what you mean by disabling 4G. If you mean that instead of 4G, 3/2G was enabled, that will explain the download/upload on data. But if you mean that mobile data was totally blocked, then that block did not work.

You may have a better 4G mobile signal than 3/2G and that will explain your statement that enabling wifi/4G/GPS has the best results for you.

If I were you, i would enable wifi (with internet) and 4G so that downloads/uploads happen on wifi since drain from downloads/uploads using mobile data will always be higher than those happening on wifi.
[BetterBatteryStats] roasm:
Thank you for taking the time to look at my log!

If I turn off phone's wifi and let the phone all night but only with internet from the phone GSM-LTE network, I will loose only at max 1-2% from the battery.

If I let the phone with wifi on and internet, the same thing is happening = no drain on the battery.

The draining is happening only if I am connected to wifi and that wifi has no internet.

But tonight I will uninstall Whatsapp and K9 mail and I will repeat the test.
[BetterBatteryStats] TNSMANI:
I did not notice any substantial drain associated with alarms and wakelocks of Whatsapp or K9 mail. But the download/upload might be from them.
[BetterBatteryStats] roasm:
I have in the above attached log 2397 separate entries like these ones:

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.522

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.106

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.1265

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.524

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.892

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.1254

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.1791

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.1851

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.2421

Alarms: 1, Intent: NETWORK_LINGER_COMPLETE.1174

They all seems to come from:

WifiHealthMonitor Schedule Daily Detection Timer

The log was with wifi connected and internet blocked in the wifi router.

In these conditions I have extreme battery drain.
[BetterBatteryStats] TNSMANI:
These denote mobile signal issues.
[BetterBatteryStats] Virus1x:
Hey I'm stuck. I have a s23 ultra. If I download the Google play version, I give perms it never capture stats. I tried XDA version and after perms it crashes endlessly any ideas?
[BetterBatteryStats] roasm:
Try with another (older) version. I read somewhere that it may work.
[BetterBatteryStats] bull123:
To all who have an issue with OxygenOS 13. problem solved.

I'm using the OnePlus 10 pro with OxygenOS 13.1.

I needed a non root solution so I can use the NFC without it being blocked for payments.

I downloaded the XDA edition.

I used a combination of solutions, they all worked but not by themselves.

1. I started with this - https://krispitech.com/betterbatterystats-without-root/

2. then implemented this with the Permission manager under settings -

3. Finally added the adb code for in the bottom for SDK28 and SDK 29 from here - https://better.asksven.io/betterbatterystats/non-root/

Will update with some pictures later as I get the stats.

Perhaps you can do steps 1+3 and then 2. I wrote it as I did it and worked for me, just because of the evolution of searching for solution while it wasn't working.

Thanks and good luck!
[BetterBatteryStats] xn0live:
Processes

=========

*wakelock* (com.asksven.betterbatterystats_xdaedition.BBS): Uid: 10216 Sys: 45 m 46 s Us: 36 m 10 s Starts: 0

system (Android-System): Uid: 1000 Sys: 16 m 27 s Us: 25 m 54 s Starts: 0

android.system.suspend@1.0-service (Android-System): Uid: 1000 Sys: 28 m 18 s Us: 9 s Starts: 0

why BBS eats a lot of battery is that normal?
[BetterBatteryStats] Oswald Boelcke:
On our devices, BBS doesn't eat any battery and never has.
[BetterBatteryStats] xn0live:
why my eat a lof of battery
[BetterBatteryStats] TNSMANI:
Are you running the XDA version of BBS? Try uninstalling, rebooting and installing again.
[BetterBatteryStats] xn0live:
yes :

(com.asksven.betterbatterystats_xdaedition.BBS)
[BetterBatteryStats] TNSMANI:
Which version? Also please try my suggestion in my previous post.
[BetterBatteryStats] xn0live:
i do a restart and uninstall, the latest

3.4.0-525 (108)​
[BetterBatteryStats] TNSMANI:
If it still has problems, try the earlier versions.
[BetterBatteryStats] alboon2000:
Hi, when will it be compatible with s23 ?
[BetterBatteryStats] veekay:
A shame about the issues with current Samsungs. It's an odd feeling not seeing my stats widget on the screen. Here's to hoping for a fix one of thee days.
[BetterBatteryStats] Oswald Boelcke:
I suggest to blame Samsung instead this great developer! Maybe the developer doesn't even owns such a Samsung device to develop and test? An alternative might be if you provide him a device!

Regards

Oswald Boelcke
[BetterBatteryStats] veekay:
Wasn't a blame at all as I understand it is out of the devs hands.
[BetterBatteryStats] Oswald Boelcke:
Thanks a lot. I just wanted to make sure it wasn't addressed towards @chamonix
[BetterBatteryStats] xn0live:
i hope there will be come new BBS update, what not eat a lot of wakelock for A13
[BetterBatteryStats] tortino:
There is another app ( Battery Guru ) that is working correctly on Samsung phones.

I have tried it on my phone ( Samsung A54 ) and it can show the wakelocks.

But I still hope that one day BBS will be fixed too, because I like it more than Battery Guru.
[BetterBatteryStats] bilmiyorum:
Hi, help me pls!

What is this "j (Android System): 4 h 40 m 47 s Count:3728 97.8%" And why my CPU dont go deep sleep mode ?

Is this normal behavior for samsung phones ?
[BetterBatteryStats] TNSMANI:
AFAIK, Android system wakelocks are an accumulation of wakelocks from your various installed apps. As it seems high in your case, I will suspect the last installed app, if this is showing up only now. Otherwise, you have to hunt for a misbehaving app.

I also found this in Alarms:

I understand from a Google search that this may relate to your carrier/provider.

And your mobile signal strength is not very good:
[BetterBatteryStats] bilmiyorum:
Thanks for your help. com.sec.epdg may be activating because i setting volte and vowifi are on.

Idk what this "j" is. It always there. Look at this image (airplane mode on, sync off, location off, wifi off, health app uninstalled) Even after 5 seconds of screen of this j is still there. Is my cpu deep sleep 0% because of this ?

Edit:

I found it! It's because of the sensors, so I disabled my sensors from developer options and whoaa "j" is gone and the CPU now goes into deep sleep. I'm not sure which sensor is the problem but I remember the Samsung S10 Exynos has a bug with the proximity sensor.
[BetterBatteryStats] xn0live:
Did anyone know what exactly that for a Instagram wakelock is, and how can I fixed? any help?

(uninstall and install the app not working)

job*/com.instagram.android/com.instagram.util.offline.BackgroundPrefetchJobService (com.instagram.android.Instagram): 15 m 31 s Count:1 25,1%

job*/com.instagram.android/com.instagram.util.offline.StoryBackgroundPrefetchJobService (com.instagram.android.Instagram): 14 m 33 s Count:5 23,5%
[BetterBatteryStats] sixtybi:
I have exactly the same problem. Have you solved it somehow?
[BetterBatteryStats] sshriss:
Unfortunately no. I am trying from time to time new versions with no luck.
[BetterBatteryStats] fillwithjoy1:
hello! it sounds like instagram is destroying your CPU. question is why can't you uninstall instagram?
[BetterBatteryStats] fillwithjoy1:
I'm having a very bizarre issue. The device isn't sleeping at all and the CPU is running 24x7. What do people suggest I should do?

P.S. did forget to export to a bbs log file
[BetterBatteryStats] mike_san:
Hopefully let's see if you can get better battery life with it.

The ideal will be to underclock on the kernel but oh well.
[BetterBatteryStats] DiamondJohn:
BBS is for idle drain, the graph you provided is not idle drain. Your screen was even on for a lot of the time, and that is a major battery drainer. Also, it was on and off often, thus probably not giving your device time to enter the low drain doze state of deep-idle.

Again to be clear, that was not an idle drain run. Follow the OP instructions.

In simple terms, your device appears to be using power because you are using your battery.
[BetterBatteryStats] fillwithjoy1:
understandable, will get bbs log
[BetterBatteryStats] thomase00:
I have a Verizon Google Pixel 4 with stock firmware and want to use BBS to help figure out why my 100% charged battery is draining ENTIRELY overnight while in airplane mode, despite my best efforts to prevent it. I've used BBS in the past to debug similar issues, which required using ADB to grant permissions, but it has been several years since I have had it installed. I'm pretty sure that I have used it at some point since I started using this phone.

Anyway, I've followed all the instructions for using ADB to grant permissions, BUT I am still getting blocked from using the app due to "Private APIs not granted". I have followed the instructions exactly, executing the following command successfully within adb shell:

settings put global hidden_api_policy 1

I have confirmed this command was successful by following this up with a delete:

settings delete global hidden_api_policy

which outputs the following to the terminal:

Deleted 1 rows

Is there a known issue with BBS, or with my particular device?

I'm currently using the XDA edition version 3.3.1-522, but I have also tried the Play Store version 3.3-507 with the same results.
[BetterBatteryStats] TNSMANI:
I am rooted with Magisk. But all other permissions were granted automatically via root except for the Private APIs. That showed up in red. But BBS was working normally and after a few reboots, that message is also gone now. Is BBS working or not? If not, try rebooting a few times after giving the permission via ADB.
[BetterBatteryStats] fillwithjoy1:
battery drain, anyone know how to fix?
[BetterBatteryStats] Oswald Boelcke:
Dump not suitable for any analysis. Duration only slightly more than one hour, screen-on-time nearly 10 minutes. Please refer to OP for instructions regarding requirements for an idle dump. Thanks for your cooperation.

Regards

Oswald Boelcke

Senior Moderator
[BetterBatteryStats] thomase00:
Well, I feel stupid. Seems to be working after a reboot. Thanks!

BTW, I only drained 0.5% per hour last night rather than 20% per hour. I think the culprit might have been Microsoft's "Link to Windows" app, which I uninstalled yesterday. Any similar experiences with that app?
[BetterBatteryStats] Oswald Boelcke:
That drainage is good and really acceptable. And as I don't use anything by Microsoft or Google (incl. Play Services) no experiences but I could assume they are the culprit especially if granted access to the internet.
[BetterBatteryStats] thomase00:
That drainage is with airplane mode. Without that, I expect the drain to be MUCH higher, especially considering that my phone can barely hold on to a cell signal in my bedroom at 120dBm.
[BetterBatteryStats] Oswald Boelcke:
Oops, I agree. In airplane mode, my device drains about 0.2%/h
[BetterBatteryStats] fillwithjoy1:
oh what, okay. seems like my phone took multiple files under the bbs directory, maybe there's something useful there
[BetterBatteryStats] TNSMANI:
Then that is the lowest drain you can achieve. With wifi and mobile data on, the drain will definitely be higher. BTW, how old is the battery? Airplane mode drain seems on the higher side.

If you have a mobile signal that bad, expect extreme drain because poor signal strength is a high drainer.
[BetterBatteryStats] TNSMANI:
The three dump files are of no use. They have high screen on time and/or for very short duration (of minutes). Please read the first few posts of this thread and post an idle dump file as already requested by Oswald Boelcke in his post above.
[BetterBatteryStats] thomase00:
Battery is 3 years and 8 months old. I started getting other weird behavior recently like intermittent failure to actually charge, even though plugged in and "charging". This is why I'm looking to upgrade. I dragged my feet during the previous holiday "upgrade season" because I wasn't crazy about the options and not ready to give up unlimited photo storage. I really prefer Pixel to any other Android but the Pixel 7 modem has some weaknesses that I'm worried won't work well in my poor signal environment. I have an iPhone from work and honestly am thinking about switching, but just not ready to submit to the Apple ecosystem. Regardless of my concerns, just ordered an unlocked Pixel 7 from Amazon with a decent discount due to their 30 day return policy. Unlocked also allows T-Mobile test drive so that I can evaluate switching from Verizon.
[BetterBatteryStats] saboyko:
Hello. No stats in Summary tab, constant message No stats have been collected yet. Phone with Root, all rights granted. I checked past versions of the app. Up to version 2.1.0.0 the statistics in Summary is displayed. Since version 2.2.0.0 - No stats have been collected yet.

UPD. Once bluetooth is enabled, stats are displayed on the latest version of the app.
[BetterBatteryStats] Levelup1:
Hi people, do you know why im getting minus values like this?
[BetterBatteryStats] TNSMANI:
I too get minus values but rarely and not in all fields. Try uninstall, reboot and reinstall BBS?
[BetterBatteryStats] kuduku:
Can anyone pls tell what is this kernel wakelock of deleted ?

I had debloated the ROM , is it due to that ?
[BetterBatteryStats] TNSMANI:
You don't seem to have rebooted your phone after debloating/for more than 4 days. I don't know whether it is a remnant left due to that or is actively present. Plus BBS is not recording stats correctly and your dump file is also not according to requirements. So uninstall BBS, reboot and then install BBS. Then take an idle dump as described in the first post of this thread and attach it here. Someone will try to help you.
[BetterBatteryStats] Vordx:
Is BBS fixed on Samsung phones yet? To this moment we don't get any stats on it even with giving it all the permissions it asks for.

If not, is there an alternative to BBS that actually works on Samsung phones?
[BetterBatteryStats] Donkarz:
Newest Version wont show any statistics. Running a Pixel 7 Pro with the newest Android 14 beta. Could this be the problem? Battery optimization is turned off. Any ideas?
[BetterBatteryStats] fillwithjoy1:
Same here, using Battery Historian as an alternative currently
[BetterBatteryStats] fillwithjoy1:
Installed the Android 14 Beta on my Pixel 6 Pro, but looking through, the phone isn't going into deep sleep at all, can anybody figure this out? (bbs is broken, so I'm attaching a bug report, battery historian is what I'm using)
[BetterBatteryStats] ankurcshah:
Can someone please help me fix this whatsapp drain that has been going on for a few weeks on my device, Tried different roms too! I'd be grateful for any inputs
[BetterBatteryStats] guhvanoh:
Did you try deleting WhatsApp and seeing whether the drain is still there? If it isn't, you know what the problem is.
[BetterBatteryStats] ankurcshah:
Sorry I don't understand, I will try uninstalling it but I am sure it won't solve my issue. Even in battery stats WhatsApp is always at the top. What else do you think the issue is?
[BetterBatteryStats] ankurcshah:
My attachments keep getting deleted for some reason . I can't upload the logs
[BetterBatteryStats] Oswald Boelcke:
Please search this thread, and you will easily find out that for unknown reasons some of the dump files are not accepted for uploads as txt-files. Just zip the file and you will be able to attach it.

And now I know why your last post only contained the word "here"... The reason why I've deleted it.

Regards

Oswald Boelcke

Senior Moderator
[BetterBatteryStats] ankurcshah:
Thank you . Here is the zip
[BetterBatteryStats] WhoIsJohnGalt1979:
Quick suggestion, the zip that you have shared doesn't help much. BBS as a tool is mostly to understand idle drain over a period of time. The general recommendation is to pick a time when your battery is around 90% a bit less than that, set custom reference, turn off phone display and just leave the phone alone for at least 6 hours. Ideally the screen on time in these 6 hours should be less than a 1 min. Immediately after 6 hours when you turn on the display of your phone, save the dump and share. BBS to study active drain is a waste of time. Hopefully that helps.

Edit: Also, are you using acc by vr25? not sure if the charging switch you are using is holding a wakelock which is causing some drain, if so, try using another switch. I might be wrong if you are not using acc.
[BetterBatteryStats] fillwithjoy1:
For me WhatsApp drains my battery all the time, so I used Hail to disable it, but that disables your ability to receive calls and messages won't be loaded until you open the app again. Honestly, not much that you can do right now. You can however run this command in adb shell, and it will restrict whatsapp's ability to run in the background until you receive a message/call (but I don't know how this will run in reality)

cmd appops set com.whatsapp RUN_IN_BACKGROUND ignore

cmd appops set com.whatsapp RUN_ANY_IN_BACKGROUND ignore
[BetterBatteryStats] ankurcshah:
Does this kill notifications and calls?
[BetterBatteryStats] fillwithjoy1:
Honestly, I haven't tried this. You can try this for a day or two and see if anything changes, and then revert the command. I wouldn't recommend disabling the app at all, but see how it performs under background restrictions.
[BetterBatteryStats] AndroidWars:
Wificonnectivity manager periodic scan timer draining battery. Turned off wifi scan and locations etc. I left the phone %100 at night till the morning %3 percent drained thats nice %2-3 normal. I used the phone all day 4g on.

Whats wrong on alarms? I dont know app related or I will format the phone.

Please help guys... Thanks
[BetterBatteryStats] Oswald Boelcke:
Idle dump not usuable for analysis:

Screen On (): 6 h 1 m 27 s 19,7%

Screen on time must be less than one minute. For instruction refer to OP.
[BetterBatteryStats] AndroidWars:
I edited & uploaded other 2 log files just now.
[BetterBatteryStats] Oswald Boelcke:
But those are the logcat and the dmesg. That doesn't really help. We need an idle dump.
[BetterBatteryStats] AndroidWars:
I saved idle dump when I wake up morning. This dump idle
[BetterBatteryStats] Oswald Boelcke:
But that are great stats. Your battery didn't drain at all:

Battery Info
============
Level lost [%]: Bat.: -1%(98% to 97%) [0,0%/h]
Voltage lost [mV]: (4118-4130) [-0,5%/h]
===========
Other Usage
===========
Deep Sleep (): 11 h 2 m 4 s 49,8%
Awake (Screen Off) (): 24 s 0,0%
Doze Idle Mode Time (): 5 h 55 m 59 s 26,8%
No Data Connection (): 5 h 55 m 15 s 26,7%
Great Signal (): 6 h 15 m 53 s 28,3%
Screen dark (): 45 s 0,1%

Was the device in airplane mode?

Nothing in there that could be analysed.
[BetterBatteryStats] AndroidWars:
Tha

Thank u for answer

no airplane mode just wifi & data off. Daily usage and alarms seems to me too much. I'm obsesive little bit about battery life. I removed a lot bloatware apps with adbappcontrol. That because its good I think. Thank u for help
[BetterBatteryStats] Oswald Boelcke:
In that's case, very nice. But you should run also an attempt with WiFi and mobile data on. The result will certainly be different.
[BetterBatteryStats] AndroidWars:
I will try. I Will left %100 with wifi on tonight. Thanks 👍
[BetterBatteryStats] love4chat:
amazing app
[BetterBatteryStats] alexkno:
Are there any plans/forecast in when a working Android14 Version is available?
[BetterBatteryStats] nahoragg13:
Here's my dumpfile, followed the steps, unfortunately got 1 WhatsApp call in between, rest was no usage. Please help. Thanks
[BetterBatteryStats] nahoragg13:
Here's my new dump file, left my phone idle at night for 7 hrs, -25% drop in battery and no signs of drain from wakelocks. The phone is in deepsleep for 92% but still so much battery drop. Pls help.
[BetterBatteryStats] TNSMANI:
I have not checked your earlier dump file since you said that it was interrupted by a Whatsapp call.

You have very poor mobile signal and that is the main reason for the huge drain. If you can rectify that (may be by locating the phone elsewhere where the signal is good or by changing the provider) and save another idle dump file, we can analyse that to find out if any unnatural drain happened and why.
[BetterBatteryStats] nahoragg13:
Thanks that could be a reason. I'll try again today in airplane mode but I'll keep my wifi on.

But I also have a Samsung phone which I keep with this device at same place but it only drains 3-4% which makes me believe that OnePlus is lacking in optimisation when cellular network is poor.
[BetterBatteryStats] TNSMANI:
Both phones on the same provider?

How old are the batteries in each of them?
[BetterBatteryStats] nahoragg13:
Yes same provider. My oneplus is 2months old and samsung 1.5yrs old.
[BetterBatteryStats] TNSMANI:
Surprising, that's all I can come up with.
[BetterBatteryStats] DiamondJohn:
Different phones can have different channels/frequencies.
[BetterBatteryStats] Ok_Kaleidoscope5109:
I'm running the Play Store version (3.3-507) and when I upgraded to 3.3.1-522 (XDA version), the persistent notification ("Event Processing) disappeared. There seemed no way to get it back.

I downgraded back to the Play Store version, but I am curious if the current version 3.4.0-525 (108) shows that notification or not?