yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] TNSMANI:
Your mobile signal was patchy and usually it is a drainer. Please locate the device where you have a better signal when you take the next dump.

Unusually BBS itself caused wakelocks for about 19 minutes. Uninstall BBS, reboot and then reinstall it.

You have some kernel wakelocks (netlink, alarmtimer, ttyC0) and they can't be controlled, as far as I know. Change to a different kernel if availab to see if that is better.

Your wifi connection is also playing up. Reset the wifi router by switching it off and after about 10 or 20 seconds, switching it on.

You have an unusually large number of 'job.delay' (204) and 'job.deadline' (76) alarms. They normally should not matter but the high numbers indicate an issue.

Location/Location scanning seems to be on. Switch it off. If scanning for a public wifi is on, switch that also off.

FaceBook is also causing a lot of alarms.

The network stats doesn't show up.

Check the above and do the needful and post a new dump.
[BetterBatteryStats] navinthomas:
I am trying to create a custom reference via the BBS plugin in Tasker. When I select the configuration, there is an option to "Save a Custom Reference", which I have enabled, and there is an option to select the "Stat Type" as well. I don't understand what this Stat Type option is for. Is it related to the "Save a Text Dumpfile" option?
[BetterBatteryStats] Nekromantik:
no stats here on OnePlus 8 Pro running Havoc OS
[BetterBatteryStats] outof_galaxy:
Please help me with my battery stat, i fully charged the phone and removed the cable at night but when I woke up, the phone only had 2% left
[BetterBatteryStats] TNSMANI:
This is not an idle dump. You have used the phone for more than 16 minutes before saving the dump. Please read the first three posts of this thread and post an idle dump. While taking the fresh dump, please locate your phone in a place where the mobile signal is better since you only had moderate to poor signal when you took this dump. That normally is a huge drainer.
[BetterBatteryStats] tortino:
hello,

I have searched for a solution for the "transaction failed on small parcel" error on android 11.

I found something here:

Restrictions on non-SDK interfaces | Platform | Android Developers

developer.android.com

Bypass Android's hidden API restrictions

Starting with Android Pie, access to certain hidden classes, methods and fields was restricted. Before Pie, it was pretty easy to use these hidden non-SDK components by simply using reflection. N...

stackoverflow.com

bbs seems to work correctly if I use this command:

adb shell settings put global hidden_api_policy 1
[BetterBatteryStats] oldman20:
Hello. Can someone take a look at my dump file please? What should i do to improve my battery health? Thank

Meet Google Drive – One place for all your files

Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

drive.google.com
[BetterBatteryStats] TNSMANI:
Google Drive access denied. Please grant access.

And if the dump is in any language other than English, please provide a fresh dump in English.
[BetterBatteryStats] oldman20:
Sorry I miss. Please, again. It's already English language!
[BetterBatteryStats] TNSMANI:
The screen on time is nearly 4 minutes. It should be as less as possible in seconds. So please save the dump immediately on unlocking the screen.

So we need another dump and while taking it, if possible, please locate the phone in a place which has a better mobile signal. The current place has terrible signal and that normally drains hugely.
[BetterBatteryStats] oldman20:
Sorry, i reupload new dump

BetterBatteryStats-2021-04-15_040818228.txt

drive.google.com
[BetterBatteryStats] TNSMANI:
Sorry, while the screen on time is ok, the dump is for 3+ hours only as against the requirement of 6+ hours. Please read the first three posts of the thread to understand the correct way of taking a dump and post a fresh dump.

Once again your mobile signal was an issue. You don't have a place where it is better? In that case, you will have to be prepared to face some extra drain.
[BetterBatteryStats] oldman20:
So sorry, i will take dump correctly again, and fact is my room not perfectly for signal, I knew that :( all I want to know is my battery and rom I using is normal or not
[BetterBatteryStats] knpk13:
Does the app work on Android 11? The latest test/RC version did not prompt me for SU access but the screen said all perms were granted. But kernel wakelocks and sensors stats were empty in the app.
[BetterBatteryStats] noz38:
Hi!

I need help finding the cause of a battery drain please.

It happens at night, with airplane mode on and sceen off. I usually lose 10 to 20% battery.

I have a rooted Galaxy S20 fe and I removed a lot of the preinstalled apps to try to extand the battery, but maybe I did more harm than good ?

Edit: Tonight after removing GMSCore and Phonesky, I lost 15% battery overnight. No dump because I didn't follow the steps with full charge etc before going to bed. I'll try to post an updated dump tomorrow.

Edit2 : Previous dump is bad, new dump tomorrow, sorrry...
[BetterBatteryStats] TNSMANI:
AFAIK the Play Store version works on A11. I don't know about the test/RC version.
[BetterBatteryStats] TNSMANI:
The dump is not an idle dump. It has more than 4 hours of screen on time. Please read the first three posts of this thread and post an idle dump to enable us to help you.

Wakelocks, kernel wakelocks and sensors don't show any stats. May be uninstall, restart and reinstall BBS and check. Or else check the Play Store version.
[BetterBatteryStats] noz38:
Sorry about the bad dump, I thought I did everything correctly.

While playing around with different versions of bbs to get a clean dump, I found what caused my problem !

First, the version that worked for me is v2.5.341.

Now, my battery drain was caused by myself, like I thought, I removed too many preinstalled apps ! Without Always On Display service (AODService in /system/priv-app), the system didn't know when the screen was off and the phone never went to deep sleep !

I put it back in priv-app and only lost 1% overnight !

Sorry for wasting your time with the first dump, and thanks for replying anyway, it helped me find the cause !
[BetterBatteryStats] debiansid10:
oneplus 8t with PEBS ROM + forum edition.

kernel wakelock and sensors not working

attached dump and logcat file.
[BetterBatteryStats] Fionar:
I had a similar issue on my Oneplus 8 Pro, using the same rom. Using the Play Store version of BBS fixed the issue for me.

On another note, I've noticed a slight drain on my own device after letting it rest for the night. Nothing major, but I was hoping I could further optimize the idle drain by tinkering a little bit more with my device. If anyone would be so kind as to take a look at my logs and provide me with some feedback, I would very much appreciate it!

GitHub link
[BetterBatteryStats] TNSMANI:
Sorry for the delayed reply. The attached dump is not an idle dump. The screen was on for nearly 2 hours. Please read the first three posts of this thread on how to produce an idle dump. Measurement from boot is likely to skew the readings.
[BetterBatteryStats] TNSMANI:
Nothing jumps out as a culprit. But the awake screen off time and suspend service process time are high though the reason is not clear.

Heartbeat alarm number is also high though your mobile signal shows up as great.

Perplexed:confused:

May be wait for more experienced users to comment.
[BetterBatteryStats] Fionar:
The plot thickens! I'll perform a factory reset to see if that resolves the issue, whenever next I find the time.

Thanks a lot for your support, I appreciate it! :)
[BetterBatteryStats] debiansid10:
My battery works perfectly on Evo-X by Krieg. But can't see data from BBS. What should I do?
[BetterBatteryStats] giteshraheja:
This should be added to post #1 for better reachability.
[BetterBatteryStats] debiansid10:
Thanks that fixed my problem
[BetterBatteryStats] debiansid10:
I can't add into test after bought from google play store. Please help
[BetterBatteryStats] giteshraheja:
There's nothing that anyone can do. Go to first page and download beta version from website.
[BetterBatteryStats] b0mb:
can some1 tell me that to do that bbs can read the alarms?

i´ve already tried all adb commands but when i start the app the first line is still red (APPOPS_USAGE_STATS)
[BetterBatteryStats] TNSMANI:
Are you using the correct package name of BBS for the adb commands? They differ between the one in Play Store and the one on XDA.
[BetterBatteryStats] b0mb:
yes
[BetterBatteryStats] TNSMANI:
Then uninstall BBS, reboot and reinstall. Give permissions afresh and see whether they work.

Are you on A11? On A11 some versions don't seem to work properly. Try some other versions of BBS.
[BetterBatteryStats] mrjuniork:
On A11 the version that works best for me is 2.5-341. The newer ones have had issues with permissions and properly collecting stats.
[BetterBatteryStats] b0mb:
Ok! Im on A11 derpfest actually.... will try another version ;)

thx!
[BetterBatteryStats] azsl1326:
Is there a fix for stats not being collected?
[BetterBatteryStats] TNSMANI:
You seem to have charged the phone to 83% and immediately opened BBS. So no stats. Allow the device to run for some time and let BBS collect stats. Then open BBS and check.
[BetterBatteryStats] azsl1326:
This was after some time. It's still showing the same today as well.
[BetterBatteryStats] tenkokuugen:
It is huge consumption when screen on

BetterBatteryStats-2021-05-10_151250716.txt

drive.google.com
[BetterBatteryStats] TNSMANI:
Please read post no 37689 and 37690 above.
[BetterBatteryStats] TNSMANI:
Please read the first three posts of this thread and post an idle dump.
[BetterBatteryStats] MagikGab:
Hi guys, could you please help me with my battery life?

I own an OnePlus 8 running the lastest stable OOS (11.0.5.5), with root (Renovate Ice Magisk Module + xXx No Limits Magisk Module) and Radioactive Kernel. I see other users getting 7+h SoT, while I can't go beyond 4h without heavy usage (I play no games, I use only my phone with apps like WhatsApp, Instagram, Facebook, Reddit and YouTube) and I can't understand why. My problems started from my previous phone (Xiaomi Mi 9T Pro), on which I got barely 2:30h of SoT, so I don't think that the problem is strictly related to my OP8 (it only has 1 month of life).

I keep the battery of my phone between 20 and 80%, I set most of apps on "Optimized" in battery settings (in order to stop them running in background), and I disabled their autostart conditions with SD Maid. Even with all these precautions, I get a terrible SoT. I really don't know how to improve the situation. I tried really everything. Could you please help me?

I followed the first post guide in order to post a dumpfile from BBS. I got two dumpfiles with screenshots.

I used my phone as usual and let discharge the battery from 80% to 22%. I got about 3h of SoT. The screenshots and the dumpfile are set from Unplugged to Current.

I followed the first post guide (charged the phone to 100%, used it until 95%, left unused for 8h). The dumpfile is from Screen off to Screen on and there are screenshots like the dumpfile and also from Unplugged to Current.

One other strange fact is that usually I turn WiFi off while I sleep, and I lose about 5% battery overnight. This time, while I followed this guide, I left WiFi on and I lost only 3%... Why?

Thanks in advance for your help!
[BetterBatteryStats] strongst:
The idle dump looks fine with just 0.4%/h drain.

But your usage dump seems to start from 65% battery instead of 80% or higher: Level lost [%]: Bat.: -43%(65% to 22%) [2,2%/h]

Do you have attached the correct one?

Do you have any mods that you still using since your prior phone, especially the magisk modules?
[BetterBatteryStats] MagikGab:
Thanks for your answer! These are the only mods that I use. I'm sure I attached the correct one, because it's the only dump I made (apart the one from 95 to 92%)

EDIT: the only mods I used also on my previous phone are iOS Keyboard Sounds (but I saw that that modulus only replaced .ogg files, there isn't any extra configuration file) and the Systemless Hosts.

EDIT2: I'm using (only on OP8) the app Battery Charge Limit to stop the charge to 80% and reset battery stats when it does so. I don't know if it could help.
[BetterBatteryStats] strongst:
Might be possible that there's a calculation issue regarding your battery level, but that's guessing around.

In my opinion it would be helpful to make a new dump and check if the battery level is the same as shown in the system and not 65% where it should be 80% according to your information 🙂
[BetterBatteryStats] MagikGab:
Thanks!! I'll make two other cycles: one from 100 to 5% and another from 80 to 20% and I'll post them there. Many thanks for your help :)
[BetterBatteryStats] strongst:
You're welcome🙂 make sure that the battery level of the dump files matching the system ones.
[BetterBatteryStats] MagikGab:
Hi guys! I made other two cycles and I got the BBS dumpfile.

The first dump is over night (WiFi turned off, from screen off to screen on). The battery dropped from 32 to 23% doing nothing...

The second one is the complete cycle (from unplugged to current), with the battery that went from 99 to 5%.

The third one is a second over night dump (again WiFi turned off, from screen off to screen on) and the battery dropped from 43 to 33%.

The last one is with another cycle, but this time is with battery from 80 to 20%.

I never rebooted the phone since my previous post. Could you please help me improving my battery? I think that there could be some problems, because I think that is not so normal that the battery drops about 10% with WiFi off and without usage. Many thanks in advance!

EDIT: sorry for the zip, but I was having problems attaching four different files
[BetterBatteryStats] TNSMANI:
It is the idle dump ie. overnight 6+ hours that we usually analyse. The in-use dump is not reliable since there are so many variables.

I have checked your first idle dump. It looks like both wifi and mobile data were disabled. If that is so, then that is the base drain below which you normally can't go. The network stats were not populated. I don't know why.

Can you produce another idle dump but with wifi and mobile data enabled?
[BetterBatteryStats] MagikGab:
Yes, I know, in fact the last time I made a dump from 95 to 93% battery with WiFi on and leaving the phone untouched for 8hrs. Anyway, no problem! I'll make another dump :) thanks for the help
[BetterBatteryStats] RockerAlex:
What is this notification "BBS Event Processing" ?
[BetterBatteryStats] strongst:
It's the background service of BBS since this app needs to run permant :)
[BetterBatteryStats] jawz101:
I just paid on Google Play but the version there is 2 years old. I tried signing up for the beta but the program is full. What's the point of paying if the version on the Play Store is very old and you can't sign up for betas on the play store?
[BetterBatteryStats] mrjuniork:
You might also try with App Center.

Though the latest versions seem to have permission issues.

Version 2.5-341 still works best for me (A11 custom ROM)
[BetterBatteryStats] realista87:
what is the best version for android 10? i still use 2.4-265 on android 9 but i am going to a10
[BetterBatteryStats] shaggyskunk:
I'd always use the latest version, regardless of Android version.
[BetterBatteryStats] TNSMANI:
The one in the Play Store works with 9, 10 & 11 atleast in my case.
[BetterBatteryStats] Limeybastard:
I'm using version 2.3- 248. Is this why I can't change the state type on the pull down menu ?

Edit. Never mind downloaded the one from play store and all is good now.
[BetterBatteryStats] Macusercom:
Is there a reason I can't find BetterBatteryStats on the Google Play Store anymore? I tried to reinstall it, but it seems to be gone 😅
[BetterBatteryStats] Oswald Boelcke:
Yeah, just checked. It has disappeared from Google Play Store.

Most likely any of the Google guys found something what they believe is violating their policies? Too little or better no data transmitted to any of the Google servers? Too little or better no advertisement incorporated?
[BetterBatteryStats] Oswald Boelcke:
After BBS' disappearing from Google PS I decided today to have a look for it on F-droid, and I didn't want to trust my eyes; actually already since 2021-05-15.

Version 2.6 was available! Had to remove my former version due to different signature but then downloaded and installed.

BBS | F-Droid - Free and Open Source Android App Repository

Monitor battery behaviour with Better Battery Stats

f-droid.org

Obviously no observation yet how v2.6 works but that will come the next days.

Only issue so far observed: Despite dark theme selected it stays on light them. I'm going to open a ticket on Github for that unless @chamonix already sees this.

Spoiler content hidden.
[BetterBatteryStats] TNSMANI:
I think that I saw some reports of versions other than on PS not working with A11. Will wait for your inputs.
[BetterBatteryStats] Oswald Boelcke:
Guess I can't provide any feedback in this case. I'm on LOS 16.0 and will never go above.
[BetterBatteryStats] mrjuniork:
I have already tried several 2.6.x versions and had the same issue with dark theme not being applied, as well as perm issues. Collecting stats had issues as well.

I have posted about it and I guess the Dev is gonna take care of this, whenever real life deems it appropriate.

The marked version in the screenshot is the one that still works best for me.

(A11 custom ROM)

Spoiler content hidden.
[BetterBatteryStats] Oswald Boelcke:
Yeah, real life always and everywhere comes first. A few hours ago, I opened a ticket on Github incl. a logcat etc.
[BetterBatteryStats] TNSMANI:
Yep. That was the one in PS. Though old by nearly 2 years, it works even with A11.
[BetterBatteryStats] shaggyskunk:
Samsung Galaxy S20 Ultra Snapdragon variant running One UI V3.1.

BBS version 2.6-378

For the life of me I can't figure out why I started getting "no stats have been collected".

I've checked every battery optimisation setting, including "never sleeping" - And from everything I've checked there's no restrictions on BBS anywhere.

I'm not sure if this started with the May Security Patch?
[BetterBatteryStats] mrjuniork:
I had the exact same issue. And that even before having the may patch installed, so it is quite surely connected to the app itself.

Have you tried Version 2.5-341?

Coz with that version all stats should be collected without a problem.
[BetterBatteryStats] shaggyskunk:
Thanks - Only thing is that I lent my laptop to a friend who is out of town right now - So I can't run adb & I don't have Root.
[BetterBatteryStats] bmwbasti:
Hi guys,

first off all, thaks for this great app.

But i have one question (that is for shure asked several teimes before but i can´t find the answer).

I´m using my phone (Poco F3) only in the battery range of 80%-20%, every few loadings cycles i`m letting it cahrge up to 100%.

For controlling the amount of charging I´m using the app BatteryChargeLimit and it works very well.

After the charge gets stopped from BCL i always use "Reset battery statistics", and my usage in the android statistics gets reset and starts from then on.

Now my problem is, that i really would like to track BBS the same way but it won´t work that way. Selecting " charge" shows the usage since the last full charge and "unplugged" only shows very few option (i think only deepsleep and something else).

Is there any way to "tell" or set BBS to "function normal" even the phone is not rebooted or charged completely?

Kind regards :)
[BetterBatteryStats] TNSMANI:
First of all, which version of BBS are you running? And what is your Android version?

Depending on the above, Unplugged to Current should show you all the stats. But it is better to use the Screen off to Current/Screen on options.
[BetterBatteryStats] bmwbasti:
@TNSMANI

Thx for your reply.

I´m using BBS 2.3-428 and my Device runs with Android 11.

I´m guessing some of this options are ony available in some cases of usage? At the moment i can only select boot and current as i restarted my device ~15h ago and didn´t plug in the charger since then.
[BetterBatteryStats] Uluru25:
My answer is not really hitting your question, but if you are rooted with magisk I would recommend you to try ACCA providing lots of functions e. g. limiting the charging currrent and/or voltage, pause cycles, temperature monitoring etc.
[BetterBatteryStats] TNSMANI:
Please read a few posts above regarding the version which works with A11.

When you start charging and then stop and unplug (whether full or not), the Unplugged option will show up.

Please go into the Settings of the app and you can enable the Charged option for any % of charging from 0 to 100. In your case set it at 75% so that when charging crosses this limit, BBS recognises it as fully charged and the Charged option will appear.

Play with the other options too for Screen on and Screen off to appear.
[BetterBatteryStats] bmwbasti:
@TNSMANI

I have upgraded to version 2.5.341 and it seems to work.

But I still got a problem. I have set the "charge detection" to 75% and charged my phone to 80% but the charging isn't recognised by BBS, I still only have the options "screen on, screen off and unplugged". What's the problem?
[BetterBatteryStats] TNSMANI:
Perhaps related to A11. Though that version of BBS was much before A11 and subsequent versions still have issues, that version is still the best for A11.

As I said earlier, if you use BBS for finding out the battery drainers, the Screen off to Screen on/current is the best option. Or you can set a custom reference point for starting the dump from the three dot menu of BBS (Custom to Screen on/current).
[BetterBatteryStats] rainbow99:
using samsung s21 ultra, and i notice an "Android Eris" causing tons of partial wakelocks. I've tried to google and can't find anything on Eris, can anyone advise me what this is and how to fix? Thanks.
[BetterBatteryStats] rjaygalvez:
Hello. Hoping to get some help here. I am experiencing high idle drain even with low partial wakeups and alarms. I am using a samsungs10e exynos on android 11. Wifi, data and sync are turned off. If my understanding of the stats is right, I suspect I need battery replacement already. Any input would be much appreciated 😁 Attached is my dump file.
[BetterBatteryStats] rjaygalvez:
Help. how do I attach/post the dump file? sorry I'm new here.
[BetterBatteryStats] Uluru25:
When you create a post, there is on the right the button "Post reply" and on the very left a button "Attach files" if using the browser interface for XDA.
[BetterBatteryStats] rjaygalvez:
Thank you for the reply. That is what I did but as seen on my posts above, no attachment is showing. I am attaching the .txt file exported by BBS
[BetterBatteryStats] TNSMANI:
Put your phone on aeroplane mode and take an idle dump. If the drain is high even then, then it is the battery.

Sometimes the .txt file of BBS refuses to be attached. Try to zip it or upload it elsewhere and provide a link.
[BetterBatteryStats] DiamondJohn:
Not sure, but isn't there a post count minimum before attachments are allowed?
[BetterBatteryStats] Oswald Boelcke:
I remember that I occasionally had issues to upload txt-files; some worked, some didn't. All uploaded but not all "sticked". My workaround was to zip the txt and to upload the zip.

A very good alternative is to upload the txt to e.g. https://hastebin.com/about.md and to share the link here.

Negative, no longer since the transition to XenForo.
[BetterBatteryStats] rjaygalvez:
Will try airplane mode tonight. Thank you for the suggestion!
[BetterBatteryStats] rainbow99:
Can anyone advise me? This is always the item with the highest wakelocks and everyday I have like 8 hours of awake (screen off) although not sure if this is the main contribution. Any advice would be appreciated please
[BetterBatteryStats] TNSMANI:
Can you please post an idle dump as stated in the OP and first few posts here?
[BetterBatteryStats] rainbow99:
Dear sir, is this the correct file? Thanks
[BetterBatteryStats] TNSMANI:
There is no attachment?