yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] HolyDonus:
thanks for getting back to me this quickly!

I should've mentioned that I have the wifi-model without LTE, so there are no mobile data available.

Location is a good point, I've noticed that yesterday aswell and turned it off. Bluetooth should have been off though 🤔 I never use it and always have it turned off.

As to how old the battery is - I bought this tablet used in November 2023, so I couldn't really tell.

If I had to guess I'd say in use since release in 2019?

I was just confused as to why the battery drain suddenly started happening - when I used it in November/December and halfway through January 24, the battery wasn't draining as significantly as it does now. I used to consume media for an hour every night and had to charge the tablet every 3 days on average. Now I have to charge it everyday, because it drains 2.8% / hour in idle and 15% / hour during media consumption.

Appreciate the reply though, maybe it really is just the battery being too old. I installed the latest LineageOS 20 update yesterday, maybe that will help aswell.
[BetterBatteryStats] TNSMANI:
If the battery is nearly 4 years old, then it may be nearing its end. You can't predict how an old battery will behave. From my experience, most of the times it suddenly dies without giving any indication beforehand. It definitely won't die slowly and evenly.

As I said, there is nothing else in the stats.
[BetterBatteryStats] enebro77:
Well ... I am a big fan of that app and have to say the graphic showing the history its not working in a proper way.

In my case it just shows the screen is on when it isnt .... In you case works in a proper way ?

(mine is a s23 ultra as well)

Many thanks in advance
[BetterBatteryStats] willcor:
To be honest, I don't use the graphic unless I have a real" issue" that I have to problem-solve. Glancing at the graphic, it seems to be working ok ?

I normally check Summary and App Sucker page.

Overall, since using my S23 Ultra, I haven't really had any real battery drain issues.
[BetterBatteryStats] enebro77:
Interesting .... looks like is working properly in your phone ...

Is it Rooted ?

What ROM are you using ?
[BetterBatteryStats] willcor:
Not rooted. ( Stopped rooting my devices years ago ,)

Pure stock Firmware Oneui6.0

( Android 14 )

No hack or mods .
[BetterBatteryStats] tvcat-xda:
Tablet Alldocube iPlay50 Mini Pro

Android 13 non root

I installed and granted all required permission through ADB as per the guide.

Is there a way to check if all required permission granted successfully?

Charged to 100%, use it until 94% then let it sit overnight but the summary

page still showing "No stats have been collected yet"

How can I fix this?

In the Android Settings > Battery > Battery usage. I always get "Battery usage

data isn"t available" since I got this tablet. I tried clear the data of "Device

Health Services" multiple times but never work. Is this related?

Let me know what other info do you need and thanks in advanced.
[BetterBatteryStats] TNSMANI:
Yes. BBS Settings>Advanced>App Permissions. Check whether everything under that says 'Granted'.

This might be related to why you don't get the BBS stats.
[BetterBatteryStats] tvcat-xda:
Thanks.

Checked and all required permissions have been granted. Looks like there could be some problem with the system. Lets see if future system update will fix this.
[BetterBatteryStats] SwampFalc:
Hello,

Since wednesday my Motorola G Stylus (2021) has been draining its battery at least 4 times as fast as before, losing between 10 to 20% per hour, even when completely idle in airplane mode.

I've installed BetterBatteryStats and the most obvious thing it is showing me is that my phone does not go into deep sleep at all and the CPU remains clocked at its highest speed 100% of the time.

But I'm having trouble parsing the rest of the information in order to find something I can do to fix it.

Does anyone think they could be of any help to me? Let me know if you want the BBS data (+ in which format, dump, logcat or dmesg).
[BetterBatteryStats] TNSMANI:
Please post BBS dump file. If you are not able to attach it here, zip it and try or post it elsewhere and provide a link.
[BetterBatteryStats] SwampFalc:
Thanks for moving my post. The dump should be attached.
[BetterBatteryStats] TNSMANI:
This is for a very short period of 3+ minutes and so totally useless. Please read the first few posts of this thread about how to produce an idle dump file. The phone has to be idle and the dump file has to be for a minimum of 6 hours. Post the file and me or someone else will help.
[BetterBatteryStats] SwampFalc:
Sorry, it did not click that the filters on the page would also apply to the dump.

I have attached what should be a dump of 6 hours. At least, I hope. I charged the phone to 100%, played a bit with it to get it to 95%. Then I laid it down.

During that approx. 6 hour period, it restarted all by itself twice :( These were not full reboots, they happened way too fast for that, but it did mean the screen went on and back off. So this is a dump from "unplugged" to "current".

Thanks to anyone who's willing to take a look at it.
[BetterBatteryStats] TNSMANI:
It does look like an 'Unplugged' to 'Current' dump. But the battery was at 35% at the start, not 95% as you say. It went down to 20% at the end. In between, the phone was on for 18 odd minutes. May be that accounts for what you described ie. screen coming on a few times. And the dump is not for 6 odd hours but for 9 odd hours.

Google Play Services seems to have been on for a few hours but I think that it was not draining the battery by itself. You may have a rogue app which doesn't go to sleep or misbehaves otherwise and gets Google Play Service blamed. I have not found any other major culprit.

Did you recently install any app? If so, uninstall it and check. If not, I am afraid, the only other way may be to factory reset the phone losing data in the process. Do take a backup in case you decide to do this. And check the drain after the reset but before installing any apps by yourself. If the drain is ok, add your apps one by one (don't restore them from the backup) and see which app triggers the drain.

I know it is a tedious process but I have no other advice given your circumstances. If you want to, please wait for advice from others too, before proceeding.
[BetterBatteryStats] SwampFalc:
I agree that some values are weird. The 9 hours is more than likely "from boot", since I turn it off for the night, it won't survive a full night anyway. As to why it claims to have gone from 35 to 20... No real idea, unless it was at 35 when it did the second reset by itself.

I'll try another dump. It's charging while off now. If it resets again, maybe I'll take a look at the data right after.
[BetterBatteryStats] Isendel77:
Does Better Battery Stats work with Android 13 (OneUI 5.1). I don't get any stats other than Alarms. Using Better Battery Stats XDA Edition - v3.4.0-525
[BetterBatteryStats] TNSMANI:
Please check permissions granted for BBS in its Settings.
[BetterBatteryStats] Isendel77:
I checked, all permissions have been granted.
[BetterBatteryStats] TNSMANI:
Then may be it is not compatible with your device.
[BetterBatteryStats] Isendel77:
Not compatible with the Samsung Galaxy S20 Ultra (Snapdragon)? That's surprising. Anyone else on here have a Galaxy S20 series using Better Battery Stats?
[BetterBatteryStats] TNSMANI:
That is not at all surprising, if you have been following this thread. There are multiple complaints from Samsung owners here. If you search this thread for the OP's posts, you will also find him saying why Samsung devices have an issue.
[BetterBatteryStats] Isendel77:
I guess you're right, notwithstanding my Samsung Galaxy S10+ running Android 12 works perfectly with the app older and most recent version of Better Battery Stats. Oh well it is what is is.
[BetterBatteryStats] ᵀᴴᴱ HUИTΞR:
I get this at STATUS, but all privileges are granted. HyperOS, Xiaomi 13, Android 14.

Build.VERSION.RELEASE: 14
Build.BRAND: Xiaomi
Build.DEVICE: fuxi
Build.MANUFACTURERXiaomi
Build.MODEL: 2211133G
Build.VERSION.SDK_INT: 34

FAILURE: an unhandled exception occured

STACK TRACE
java.lang.ClassNotFoundException: Didn't find class "com.android.internal.os.BatteryStatsImpl" on path: DexPathList[[zip file "/data/app/~~V9_CdjCzWtP8Ukn9oJSesg==/com.asksven.betterbatterystats_xdaedition-LIe-hOYb6HWhwADYxeuOeg==/base.apk"],nativeLibraryDirectories=[/data/app/~~V9_CdjCzWtP8Ukn9oJSesg==/com.asksven.betterbatterystats_xdaedition-LIe-hOYb6HWhwADYxeuOeg==/lib/arm64, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.asksven.betterbatterystats.DiagnosticsActivity.diagGetService(DiagnosticsActivity.java:121)
at com.asksven.betterbatterystats.DiagnosticsActivity.onResume(DiagnosticsActivity.java:95)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1615)
at android.app.Activity.performResume(Activity.java:9057)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5202)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5245)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8752)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteI
nit.main(ZygoteInit.java:1013)
[BetterBatteryStats] Kirst_:
Hi guys. I bought a Nothing Phone (2a) and I'm having issues with Google Play Services - at least according to Battery Usage. The battery drain only happens when I'm actively using the phone, it doesn’t happen if it’s on idle. I already disabled "App install optimization" on Google Play Store and every setting I could think of - like Wi-Fi Scanning. I even did a hard reset.

Now, I'm aware that BBS doesn't fully work in Android 14, but I wanted to give it a shot at least. Alarms is the only section working and it shows a lot of wakeups from android itself, dunno if that's a normal amount or not. I have attached the log and some screenshots. Sorry for the incomplete log, but I would be grateful if anybody has any idea of what is going on. Worst-case scenario I will simply return the phone and order a new one, but I would like to keep trying before resorting to that.

*edit: I think screen time is bugged on this phone, since Digital Wellbeing shows more hours of screen time - 5h 12min.
[BetterBatteryStats] ZP31:
I've read about Samsung problems but anyway, please tell me how to grant permissions (if possible):

I am on S4 i9506 ks01lte on LOS 20 (unofficial). I did:

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS
adb -d shell pm grant com.asksven.betterbatterystats android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats android.permission.PACKAGE_USAGE_STATS
adb -d shell settings put global hidden api policy 1
Argument expected to be 'default'
adb -d shell settings put global hidden api policy default

But I get errors (screenshot).

I rebooted but it didn't help.

I installed from F-droid.

Why this app requires permission to make phone calls and manage them? It seems that it has nothing to do with battery.
[BetterBatteryStats] TNSMANI:
BBS is not intended to analyse in-use drain. That said, your wifi accounted for 75% of the drain which in my opinion is too high. The other alarms look normal for in-use (though I am not an expert on in-use stats).

Check your wifi. How far away from the wifi were you when you used it? Reset it by switching the router off, wait for 30 seconds and then switch on and check. May be try using mobile data for some time to see whether that drains any less, though normally wifi consumes less power comparatively.

EDIT:

Usually the screen is the top most drainer when you look at Battery under Settings whereas in your case it is the wifi. Strange.
[BetterBatteryStats] TNSMANI:
The adb commands are in the same page as in the screenshot. If they don't work, BBS won't work. There is no workaround for these commands AFAIK.
[BetterBatteryStats] Kirst_:
Oh, my bad. I thought it could work for in-use drain too.

The drain happens whether I'm using wifi or not. Maybe I have some rogue app messing with Google Play Services, so I will try uninstalling apps one by one to find the culprit.

Thank you!
[BetterBatteryStats] tetra88:
Dears,

I hope someone can help me by reading the attached dump file.

Since some days I have a impressive battery drain. This happened from one day to another after having:

Updated 80 apps

Free up space in the internal drive

Updated time zones of the Samsung Watch

Thanks to BBS I uninstalled few apps (Facebook Lite, Amazon Music and Investing) but still I have huge battery drain (35% overnight, during the day 40%/h).

I see many *alarms* wakelocks, but I do not know where they come from.

Thank you!
[BetterBatteryStats] TNSMANI:
The dump file you attached is not strictly according to requirements. You seem to have used it for 2+ minutes after unlocking but before you saved the file. Please produce another one where the 'screen on' time is in seconds ie save the file as soon as you unlock.

Apart from that, your mobile signal is poor/moderate most of the time. This is a huge battery guzzler. You also seem to have turned off the wifi. On top of a poor mobile signal, with the wifi turned off, the background downloads/uploads all happened via mobile data. Still more battery drain.

Please enable wifi while generating the next dump file and if possible, locate your phone where it has better mobile signal.
[BetterBatteryStats] tetra88:
I'm living close to the border and signal is always poor, like in the past 5 years. It should not be the culprit, but I can switch to roaming in case.

I hoped that 2 minutes wouldn't invalidate 8h45mins of log. In addition WiFi and also mobile data were off. Having them enabled it's almost impossible to reach 6hrs of log.

If, given the conditions, the file is not valid I will try to produce another one.
[BetterBatteryStats] tetra88:
Attached a second log after having disabled Meta Services.

Wifi on, GPS off, screen on less than a minute. I generated the log after 5 h 52 m 49 s , but I'm confident that's fine.

Thanks for any suggestion you might have.
[BetterBatteryStats] TNSMANI:
This dump file is ok but the earlier observations about your mobile signal remain.

Too many wakelocks, alarms, kernel wakelocks etc, mostly from system. Unable to specify the exact reason. May be your updating of apps or freeing up space has something to do with it.

Your wifi also seems to have an issue. Please try resetting it by switching off the router, wait for 30 seconds and restart.

Was location/scanning on? If so, do you require it during sleep?

Instagram had 2 alarms per hour.

A whole lot of apps had background uploads/downloads of data. The system apps can't be tweaked AFAIK but the other apps can be. Check the list within the spoilers and determine whether you need to have these many apps on auto update.

Spoiler content hidden.

And the phone was on the highest CPU speed for more than 2 hours. I am not able to say why except for the already made observations.

May be you have a rogue app or an update was not properly taken resulting in misbehaviour. Two options: uninstall all the apps, reboot and install the apps one by one looking for any misbehaviour. Or back up to the PC/laptop and reset the phone and check drain before installing apps. Painful, I know, but you may not have many choices.

You can also enable airplane mode and generate another dump file to check the drain without wifi and mobile signal. BTW, how old is the battery?

In that case, how much drain you experienced overnight before this episode?

The moment the screen is unlocked, most of the sleeping apps wake up and start their background activity. Even if for a minute, that will skew the readings and that is why the dev requested that that interval be as brief as possible. And in the earlier dump file, wifi was off, not mobile data through which background uploads/downloads happened.
[BetterBatteryStats] tetra88:
Do you mean the GPS? If so, this is was off.

As the phone, 6 years. I know it's not new, but I started to have the problems the morning after I updated 80+apps and free up space. I guess too it has something to do with this.

No more than 5% during the night.

I think I will start uninstalling the 80+ recently updated and check again BBS.

If the issue persists I'll consider an hard reset.

Thank you for the analysis!
[BetterBatteryStats] huutinhle:
Hi all.

Please kindly help me solve this problem.

I used adb to grant full permissions as instructed by the application.

But I still can't use it when the app displays "Private APIs not grandted" like picture.

I'm using S22 ultra, Android 13, One UI 5.1

Many thanks
[BetterBatteryStats] TNSMANI:
Please read the last few pages to know why BBS doesn't work with Samsung devices.
[BetterBatteryStats] huutinhle:
I used the Search dialog box to search for the same problem as mine but I couldn't find a way to solve it.

So is there no other way to use it on Samsung phones bro?
[BetterBatteryStats] TNSMANI:
Check THIS post by the dev. Still remains unresolved. Unless the dev is able to come up with something, you are stuck.
[BetterBatteryStats] huutinhle:
I feel very sad when I hear this. But anyway, thank you very much for your fast support. All the best
[BetterBatteryStats] Envinite:
So I assume you didn't get the "STATUS:Failed: didn't find class....lin64" issue within BBS's App Permission? Seems like the common issue among Android 14 devices including mine (LG V20 LineageOS 21)
[BetterBatteryStats] veekay:
Finally making the jump from A10 to A14 and will greatly miss this app. I'll still keep my fingers crossed that a solution presents itself somewhere down the road.

Byebye wakelock stats and thank you for everything chamonix
[BetterBatteryStats] X-Flies:
Quick question.

Bought the Play store version after being using the XDA for quite some time. Are we able to export settings and records from one version to the other?

Right now I have a XDA version with the last data since charged and the other one without data.
[BetterBatteryStats] overblood:
Has the developer retired?
[BetterBatteryStats] overblood:
Have you tried Gsam battery monitor? It shows wake locks after enabling some ADB stuff. Works on android 14. Currently using it on a Samsung s23.

I never tried the better battery stats app so can't tell you Gsam is better or worse.
[BetterBatteryStats] veekay:
I had been using both when I saw BBS wasn't going to work once I upgraded. It does an ok job, but nothing beats the BBS widget.
[BetterBatteryStats] Duvel999:
Does it work on Android 14?

I downloaded the latest beta...
[BetterBatteryStats] beeshyams:
Search please

I did that for you. Here
[BetterBatteryStats] iamnotkurtcobain:
What's the collectionLib-Sigcollector wakelock? It's waking up my device too often and prevents better deep sleep.
[BetterBatteryStats] fillwithjoy1:
I'm on Android 14 and have installed the app as a system app. alarms and cpu states are the only thing that works.
[BetterBatteryStats] bombadier:
[APP][2.2+][11 Dec. 2022 - V3.1] BetterBatteryStats

I started BetterBatteryStats because I was missing the great battery history that Spare Parts allowed to call on Froyo. It has been a long journey since the first version. BetterBatteryStats provides an insight in following categories: - General...

xdaforums.com
[BetterBatteryStats] fillwithjoy1:
Thanks for attaching that. I heard GSam is working for Android 14, maybe those devs could help?
[BetterBatteryStats] bombadier:
It was reported that GSam was working with A14, shame that it looks like the end of the road for BBS
[BetterBatteryStats] Sx64:
It also works in Battery Guru under Additional\Wakelooks (Not Playstore version). Of course not as nice as in BBS and no current power % values.
[BetterBatteryStats] Mariusz Saj:
Hi

I have a rather strange problem - the application turns off after granting permissions... (after granting permissions to BATTERY_STATS)

Samsung S20, Android 13, BBS 3.4.0 from F-Droid

(I tested version 3.4.0-525 - same problem :( )

I am attaching the logs from logcat adb

I used this application some time ago and it was ok. Now after reinstallation it doesn't work

ps

This conversation is 2000 pages long... if there is a solution somewhere, I apologize in advance - it's hard to read through this amount of information.
[BetterBatteryStats] TNSMANI:
If the dev is still at it, your log may help him find a solution. But I don't want to raise your hopes too high. Samsung is notorious in this thread. Please read the last 2 or 3 pages to understand.

There might have been an update to the ROM which broke compatibility.
[BetterBatteryStats] webfrm:
I want to thank the developer, as I have been able to use the app for years to find the culprits that drain my phone battery and decide if they are truly needed. I also want to thank all of those who made posts; I know now why all I can see is the CPU state. So, it seems there is no workaround to get past ADB responses of "no permission specified" to all the commands. Does anyone know if there is anything similar that will enable us to read the wake lock state, even if it is not as beautifully done as BBS?

It seems that the higher power that controls Android (aka Google) has no problem pushing app updates and other unwanted changes that break good apps like BBS, which, even if we could be called niche users, have value. If it wasn't for the fact that I have become addicted to this small-screen computer that fits into my pocket over these years, I could easily be free. to not want to need this information. But Big Brother knows I'm an addict who looks to see what new cool pocket computer will come out every year and if I will need to replace the old one, leaving only with one option: keep the old one and air-gap it (not sure makes sense) so BBS and everything I love never gets harmed by big Brother's relentless updates. But then I'm just carrying it around as a pretty fancy paperweight, and they got me as soon as I switched that WiFi back on, and those updates got pushed (even though I turned them off), and suddenly, all is broken again. If I spot them, the rooted phone (and unrooted is way out of luck) can be rolled back to an earlier version that was good before those updates.

Access to the information taketh away for no reason as usual in the New World Order of next versions of OS.
[BetterBatteryStats] nailyk:
Hello Sven,

Thanks for your amazing app I use since years.

It seems, in recent Android version, there is a new HAL to retrieve power usages : https://source.android.com/docs/core/power/power-stats-hal

Maybe that the way to go ?

(Sorry, my knowledge of java and Android API is too weak to be able to make a PR...)

Hope this helps !
[BetterBatteryStats] vavan_bonus:
Could you tell more about this software? How to enable wakelock display? I've found some modded version on 4pda.ru but it doesn't display wakelocks.
[BetterBatteryStats] TNSMANI:
Would please make your queries about Battery Guru in its own thread HERE?

It is not nice to discuss one app in another app's thread.

Thank you for understanding.