yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] kleoxy:
The airplane mode is off but BT is on.

The application (Zepp) on the phone has the whole persmissions. I'll try to restrict them and maybe after, I'll see better results.

Thanks
[BetterBatteryStats] TNSMANI:
Your stats say otherwise. No wifi connection stats and no data connection for the entire duration of the dump file. And no 'Network' stats either. I don't know why.
[BetterBatteryStats] kleoxy:
It's because I shut them off during sleep time...

About network, it could be because I have chosen DND mode.
[BetterBatteryStats] unknownz:
Running on Xiaomi Poco F4 with custom ROM, any idea on the error encountered?
[BetterBatteryStats] WhoIsJohnGalt1979:
Force close the app from app info and reopen.
[BetterBatteryStats] unknownz:
Thanks for that tip! Works perfectly and issue resolved 🙂
[BetterBatteryStats] RASTAVIPER:
Can someone please have a look and explain me why my rooted Oneplus 9 Pro can't get to deep sleep and doze mode?

Except rooting, no other custom mods are added.

Magisk 25.1 in place, F.75 stock Rom
[BetterBatteryStats] RASTAVIPER:
Also any idea why there is no Doze info at the CPU states tab?

I have selected it to be visible from BBS settings.
[BetterBatteryStats] TNSMANI:
This is not an idle dump. You have used the phone for more than an hour. Please read the OP and a few posts in the first page and post an idle dump file.
[BetterBatteryStats] birdie:
I'm sorry if it's been asked before but is there any difference between the F-Droid version and xda-edition edition?
[BetterBatteryStats] orifori:
Hello everyone, I made a 3-night experiment, trying to find out what drains my battery most (on a custom Android 13 rom). The phone was on my desk while I was sleeping.

- Night 1 (GPS, BT, WIFI and mobile data - on) - 4% per hour battery consumption

- Night 2 (GPS, BT and mobile data - off, WIFI - on) - 2% per hour battery consumption

- Night 3 (everything off, airplane mode) - 0.3 % per hour battery consumption

Do you think these values are normal and what phone settings to change to reduce battery consumption?
[BetterBatteryStats] nacos:
Hi all,

Just wondering, was there anyone able to make the BBS work in Android 13?

As signalled by many others, regardless of the installed version, the app installs just fine but it never generates any stats. Under Settings > Advanced > App Permissions the status is always reported as "Failed" (see attached screenshot).

I tried a lot of version, from the Store, F-Droid and the official website, to everything else, but none works. The app used to work just fine in Android 10. Once I installed Android 13, it all went bellyup.
[BetterBatteryStats] beeshyams:
It works for me on Pixel 4a

If you mention your device, probably some one else with that model can help
[BetterBatteryStats] nacos:
Samsung S20, the Exynos version (SM-G980F).
[BetterBatteryStats] TNSMANI:
Did you try a reboot after installing BBS? If that too doesn't help, we can blame Samsung.
[BetterBatteryStats] nacos:
I did, no difference. As for who to blame, I believe it's both, with the worst offender being Google by a large margin.

What's really intriguing about BBS, is that neither the F-Droid, or the Play Store / Aurora Store versions can be installed directly from the store. They both end up with parsing, or other errors (see attached screenshots).

Only versions sideloaded from 3rd party sources, including the XDA Developer's thread, can be installed. I also tried installing the apk under System - still no luck.
[BetterBatteryStats] chamonix:
Current build is addressing the android 14 changes. It will not work!!!!

If someone could point me at a git repo where I can read about the changes in the code-tree that whould speed-up things. Currently I see only a black-box indicating an change in the architecture:
[BetterBatteryStats] orifori:
I have a significant battery drain related to mobile data.

While I am sleeping at night, I have the following battery consumption:

- 2.6% when everything (GPS, BT, WIFI and mobile data) is on

- 0.8% when everything (GPS, BT, WIFI) EXCEPT MOBLIE DATA is on

Obviously, the mobile data is making the big difference. Any ideas what to look for or what settings to change?
[BetterBatteryStats] TNSMANI:
Actually it is not the mobile data that is the culprit. It is the other things that you have disabled/enabled which consumes mobile data and drains the battery. To find out which apps/settings consume data, please read the OP and a few other posts in the first page of this thread and save an IDLE dump file and attach it here. Someone will help you.

Please remember to enable mobile data and wifi while obtaining the dump file.
[BetterBatteryStats] orifori:
Thank you but the things/apps that I have disabled/enabled are absolutely the same - in the first case they consume mobile data, while in the second case consume WiFi.

This makes we think that it's the mobile data (or other related settings) that drain battery. Eventually the (constant) switch between WiFi and mobile data.
[BetterBatteryStats] TNSMANI:
If I understand you correctly ie. there is a constant switch between wifi and data, it means that your wifi connection is not stable. If it is stable, every background upload/dpwnload should happen on wifi only and not switch to data. And mobile data by its nature consumes more battery than wifi, especially if the mobile signal is not excellent.

Please provide an idle dump file so that we can analyse that.
[BetterBatteryStats] orifori:
No, there should be no constant switch between mobile data and WiFi while I am sleeping all night with the phone on my desk beside my bed. During that time the phone is connected to my home WiFi network which is stable. When I use my home network continuously for hours through the day, I notice that the WiFi connection drops around every hour (i.e. WiFi disconnects -> phone switches to mobile data -> phone automatically connects back to WiFi a minute later). So, during the night while I am asleep, I guess this could happen maybe 5-10 times.

In this regard I have been looking into Developer options like:

- WiFi safe mode (off)

- WiFi scan throttling (on)

- Mobile data always active (off)

but I might be missing something important. Any advice will be appreciated.
[BetterBatteryStats] TNSMANI:
From previous post:
[BetterBatteryStats] xn0live:
In Network we can see how much MBytes we used for apps like Instagram, for Wlan.

Is there a option for mobile data?
[BetterBatteryStats] TNSMANI:
The Network stats shows both wifi and mobile data. Look at the prefix, like this:

If the 'mobile' prefix is not shown for any entry, it means that mobile data was not used by any app and everything happened on wifi.
[BetterBatteryStats] Lownita:
Is this still necessary? App is working fine without it for me on Android13/MIUI 14.

adb -d shell settings put global hidden_api_policy 1
[BetterBatteryStats] halfbytecode:
On a rooted Pixel 7 Pro running Android 13, the app is not working, even with all permissions granted and hidden api policy also set to 1.

The summary page simply displays "No stats have been collected yet", while the Raw Stats page displays "Battery info Service could not be contacted"

I have tried this on a number of ROMs with same results. It was previously working on all my other devices.
[BetterBatteryStats] nacos:
It's a known problem. See previous posts. Hopefully the dev will come up with a fix soon.
[BetterBatteryStats] halfbytecode:
Okay, I got misled by some posts where it was mentioned that it was working on Pixel 7 Pro, but perhaps it was working in the past.
[BetterBatteryStats] WhoIsJohnGalt1979:
Still is working just fine on Pixel 7 pro. Never has stopped working like ever for me.
[BetterBatteryStats] nacos:
Are you on Android 13?
[BetterBatteryStats] WhoIsJohnGalt1979:
Yes!
[BetterBatteryStats] halfbytecode:
Seems like you are on stock ROM. When did you first install the app on the phone, and which version of the app was it?
[BetterBatteryStats] exodius48:
These git might help

Narek / Batt · GitLab

A simple app that shows battery status information on Android devices. Requires Android 14.

gitlab.com

Android API tests / Android 14 · GitLab

Testing new APIs introduced in Android 14

gitlab.com
[BetterBatteryStats] xn0live:
Version 3.4.0-525 (108)​

Miui 14, Android 13 not working :( is there come a update soon?
[BetterBatteryStats] WhoIsJohnGalt1979:
Working perfectly with Android 13. No need to force stop app for final permission API permission to be granted.
[BetterBatteryStats] nacos:
I have personally documented and posted (a few threads above) that on some devices (including Samsung S20) running Android 13, BBS no longer works. I have been using BBS for years and I can confirm that it did stop working as soon as I updated to Android 13. Please note that BBS worked perfectly fine on the same device running A10 and A11. Furthermore, both Google Play and F-Droid versions fail to install with a parsing error.

Several other users reported the exact same problem on Samsung and/or other devices running Android 13 so, the fact that yours still works does not mean that all other reports have no merit - it's NOT a matter of not knowing how to install it or configure it. It just stopped working. The app's status is reported as failed, no matter which version is installed, or whether installed as user's app or at system level - Yes, I've tried that too. ☹️

Based of the reported error, the developer should be able to figure out where the problem lies and eventually how to fix it however, so far all reports appear to have been ignored.

See the attached screen recording. I just reinstalled the app for the 100th times.
[BetterBatteryStats] WhoIsJohnGalt1979:
Hello, the functionaility of the app on your phone or whoever else has no bearing on the fact that it works on mine. Please do not disrespect people just cos something is not working for you. I do not have to say that the app doesnt work cos its not working for you. My post was simply to report that the app's new version works fine on my Pixel 7 pro on A13 and the changelog is absolutely in allignment with the fixes implemented. I have no concern whether it works for you or any one else. Please take it up with the developer.
[BetterBatteryStats] nacos:
These threads are intended to connect those who reach out for help, with those who can help - preferably with clarity, transparency and respect. No disrespect was ever intended, only clarity. Peace! 🤝
[BetterBatteryStats] xn0live:
hey, anyone know how i can fixed it? android is very high
[BetterBatteryStats] TNSMANI:
A screenshot is not enough. Please read the OP and the following couple of posts and save an idle dump file and post it here.
[BetterBatteryStats] DrRazee95:
Hi can you tell me if my download is good? Or is there some sensor or application that drains the battery? Thank you

Ciao mi puoi dire se il mio download è buono? O c'è qualche sensore o applicazione che scarica la batteria? Grazie
[BetterBatteryStats] TNSMANI:
Please use English as per Rule 4. I see that you were informed of this Rule in September, 2022 itself. Any more non-English posts may invite trouble to your account.

The file you have attached shows that the duration of the saved file is just above one hour. Please read the first two or three posts of this thread on how to save an idle dump file, generate one and post it here so that one of us is able to help.
[BetterBatteryStats] kr4m4rk:
Hi everyone,

I am a long term user of BBS (started back in 2012...) and I recently restarted using it as my 2.5-year old Pixel 4A (stock Android) has been showing an abnormal battery drain.

With BBS I noticed that the phone was no longer able to get into DeepSleep, so I took the chance and wiped everything. I have then flashed GrapheneOS a few days ago (just to get a bit more control over my phone than with stock Android).

Unfortunately I am still experiencing what a I consider a "above normal" battery drain and decided to dig deeper. Please find attached my DUMP and a couple of screenshots taken right after the DUMP.

Additional info and considerations I can make myself:

The DUMP regards a timeframe between 4 am and 6.20 am - I was in bed sleeping and not using my phone, just letting it discharge. I lost 5,0%/h which I think is not normal.

The phone now gets into Deep Sleep, though only for 1h20m out of roughly 2h13m of monitoring

I don't see any specific issues with wakelocks (either kernel or partial), but I find an abnormal quantity of Alarms from "com.android.server.action.NETWORK_STATS_POLL" with "Intent:null" - this alarm wakes the phone 3 times per minute! I can't be certain but I think it is the no. 1 candidate for my issues.

I Googled this alarm but frankly couldn't get much considering that the intent of the alarm ("null") doesn't really help.

I would like to know if you have any opinions/suggestions regarding some tests I can do to improve the situation?

I have tried to provide as much info as I could, please let me If you require something more.

Thanks in advance!
[BetterBatteryStats] TNSMANI:
Since the dump file is not for the mandated 6+ hours, I have not gone through it in its entirety. Please save an idle dump file as described in the first few posts of this thread and post it here. We will try to help.

This prompted me to check your mobile signal and sure enough I found this:

That definitely is a major reason for your drain since poor or moderate signal strength drains the battery a lot.
[BetterBatteryStats] kr4m4rk:
Thank you, I was expecting the comment on the DUMP duration but last night I fell asleep on the sofa and only managed to get 2 hrs... :D

Anyways, I will provide a 6+ hrs dump tomorrow. Thanks and have a nice day.
[BetterBatteryStats] handydandy:
I'm on A13.1 and this still doesn't work. Have you been able to verify it on v13?

Edit: Solved. The "Permission manager" app needs to be enabled. Some people may have de-bloated it
[BetterBatteryStats] punkyan:
Hey,

my new Google Pixel 7a is draining like crazy during idle. I spent almost a week looking for the reason. I searched hundred threads in different forums but I could only nail it down to the "Garmin Connect" App which is used to sync my workouts from my smartwatch (Vivoactive 4) und send notifications to the watch. With the app installed the phone is only in deep sleep by ~30% because "hal_bluetooth_lock" is keeping it awake most of the time. The s5100_wake_lock might be connected to this. I couldn't find more details on the wakelocks.

When i delete the app or turn bluetooth off the hal_bluetooth_lock is no big problem. Then my phone is entering deep sleep for ~90%.

I did a factory reset on my phone and set up every app from scratch without using the backups. And I did a factory reset on my smartwatch. I deleted cache and app data + installed the app from playstore several times. I disabled the location permission and the weather location function on the garmin connect app (seemed to be a problem in the past). But it seems that I am the only one with this problem.

In a German Forum a user is using the same phone and the Garmin Connect App with a different smartwatch. He has no problem at all. So it seems to be a specific problem on my phone and not a general problem.

Could you please look into my logs?

I did one with the app installed and connected to my watch. And another one with Garmin Connect and Garmin Connect IQ removed from my phone.

BTW: I don't mind the drain from location service, Google Now and the now playing feature. I like these features :)
[BetterBatteryStats] planetarspinach:
In my brand new Pixel 6a I have 0% deep sleep time unless I disable bluetooth even though I haven't connected ANY accessories to my phone.
[BetterBatteryStats] TNSMANI:
As you rightly said, it is the Garmin app which seems to create the issue.

The first one with the app and the second one without it but both with BT on. If you want to use the app, you will have to find a way to control the alarms and wakelocks thrown by the app but without affecting functionality. I have no idea how to do it.

Apart from that your mobile signal is weak at the place where you are taking these readings and if you are able to place the phone where the signal is better, you may get some lesser drain. Or change to a provider whose signal is better at your place.
[BetterBatteryStats] pine74:
What is AWakeLock and how to prevent it?

On Android 13 roms, when playing music on certain players with wired headphones and using those players' sleep or idle timer options, when those timers end, sometimes it causes AWakeLock, which only disappears after reboot.

The players are:

Stock LineageOS player (Eleven) with Sleep Timer app;

Vanilla Music with idle timeout option;

Foldplay with idle timer option (this one seems fixed).

It didn't happen on previous Android versions.
[BetterBatteryStats] amtra:
Anyone help with this. My stats are not showing after Full charge.
[BetterBatteryStats] TNSMANI:
From what you say, it seems that players are not optimised for A13. The easiest solution is to request the devs of the apps for the solution stating your issue. Any other meddling may result in new issues.
[BetterBatteryStats] TNSMANI:
Did you reboot after charge? If not, try that first.

The author of the app may require additional info like your device, ROM (whether stock or custom), Android version etc. for him to do anything. If it is Samsung, don't bother, it may not be possible.
[BetterBatteryStats] amtra:
Rebooted twice still same.

Additional Info

Xiaomi 12 pro (Zeus)

MIUI 14.0.3

14.0.3.0TKKINXM

Non rooted
[BetterBatteryStats] oldman20:
On Android Q samsung, i give root permission but Private API not grant, is it fine?
[BetterBatteryStats] WhoIsJohnGalt1979:
Force close the app and re-open. That should take care of the private API permission.
[BetterBatteryStats] tortino:
Since currently BBS doesn't work on my Samsung A54 5G I've decided to try other apps.

I've found that Battery Guru works correctly: I can see wakelocks (but it's missing some features that are present in BBS, like alarms).

Battery Guru

Battery Guru displays battery usage information, measures battery capacity (mAh), show estimates, and helps you change your charging habits with useful tips to prolong battery life and increase its lifespan

www.paget96projects.com
[BetterBatteryStats] Ok_Kaleidoscope5109:
Does anyone if the persistent notification still shows in the latest builds?
[BetterBatteryStats] mhtolido:
Hi everyone

I recently flashed my Redmi note 9s global with Pixel Experience plus (PixelExperience_Plus_miatoll-13.0-20230508-0607-OFFICIAL) and the official PE Recovery.

I'm having huge battery drain (almost 5% per hour without any use!!!)

I used BBS to log the situation and got 30% loss last night.

there is high count on RILJ_ACK_WL and *telephony-radio*

I ran through the log but I couldn't figure anything that i can make use of (I'm an official noooob!)

could you please help me figure it out?
[BetterBatteryStats] TNSMANI:
The dump file shows a weak mobile signal

This is confirmed by the RILJ high count observed by you and

Usually mobile signal will consume huge battery if its strength is not great. If you have not changed the provider, then the change of ROM looks to be the culprit. May be clean flash the ROM or search if any others are facing the same situation like you in either your device thread or the ROM thread.
[BetterBatteryStats] Mmohsin:
Guys getting this error.

Any fix?

OnePlus 8 pro android 13

Latest play store build installed
[BetterBatteryStats] mrjuniork:
Have you tried force closing the app?
[BetterBatteryStats] oldman20:
Or clean data app
[BetterBatteryStats] RandomRegistered:
CrDroid 9.6 (Android 13) on Redmi 9T. App version 3.4.0-525. Every tab works except "Summary". "No stats have been collected yet". Device is rooted, all rights are granted, private api access enabled. Tried to make it a system app, tried different old versions, even making selinux permissive - "Summary" tab never worked.
[BetterBatteryStats] xn0live:
Why is BBS so high, is it normal?:

it was in deep sleep

Processes

=========

*wakelock* (com.asksven.betterbatterystats_xdaedition.BBS): Uid: 10216 Sys: 18 m 31 s Us: 18 m 9 s Starts: 0

system (Android-System): Uid: 1000 Sys: 12 m 43 s Us: 23 m 33 s Starts: 0

android.system.suspend@1.0-service (Android-System): Uid: 1000 Sys: 20 m 22 s Us: 7 s Starts: 0
[BetterBatteryStats] roasm:
Hi, please help!

I have a Lenovo Legion Y70 Snapdragon 8+ Gen1 with 5100mA battery. Phone is heavily debloated with more than 2000 MB of chinese bloat .apk deleted from system partitions.

If the phone has wifi/4G/GPS activated and working, I have at least 3-5 days of single charge battery runtime.

If I have wifi activated on the phone but I have internet blocked in the wifi router from 00:00 to 6:45 at night (I configured the router this way to block all internet in that interval), the phone battery has drastic discharge rates (in excess of 10% per hour!).

My background applications are Whatsapp and K9 mail.

Phone is degoogled (no Google Play or Google account on it) and I have root.

I have attached the BetterBatteryStats log from last night. Battery has discharged from more than 80% to 40% in a couple of hours.

Summary: phone connected to wifi, wifi has no internet because I disconnected it in the router, switchover to 4G data if no internet on wifi is not permitted (it is deactivated in phone's developer option).

My main suspects now are: Whatsapp, K9 and the WIFI internet checking logic.

From my interpretation of the BetterBatteryStats log it seems the culprit to be the WIFI internet checking.

But I accept any help on this!

If I go in the mountains and I have no signal I want to know how to stop the battery drain because then to have battery charged in the phone becomes critical.
[BetterBatteryStats] Alucardis666:
Thanks for the update!

Sent from my iNsAn3 AnDr0iD Galaxy S II
[BetterBatteryStats] jeremysherriff:
no worries dude

Those counts are high, i'd like to see a proper dump file to get the full context.

If you're using "since unplugged" then it means that BBS isn't able to catch the unplug signal (my terminalogy sucks, you get the idea) - it might be an idea to use @chamonix's other app "commandcenter" to grab a logcat dump ?? Hopefully he'll see this series of posts and provide some commentary - the BBS method of catching the unplug signal changed recently and I'm not sure how best to troubleshoot.
[BetterBatteryStats] cdmackay:
Or try setting a custom ref when unplugging, then leave for a few hours, then do a report "since custom ref"
[BetterBatteryStats] jeremysherriff:
Yeah that should work
[BetterBatteryStats] ballmead:
Its all good.

The sync icon on "internet" was stuck on, causing the wakelock.

Once I deselected it, no more wake lock.
[BetterBatteryStats] Atticustrd:
Is it normal to have better battery stats as the top app when going into my rawalarms settings? Shows 1825
[BetterBatteryStats] jeremysherriff:
No bro that's not normal at all
[BetterBatteryStats] Karpfenhai:
Wifi on and wifi running show exactly the same values on my phone, is that, what we expect?

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] Piratebhoy:
I am not having the best of times with my SGS2 battery. This is my second one as the first one developed a fault. Since i have received this battery (official from samsung) the life has been pretty poor from a low user.

Please find attached my dumps, from a custom ref yesterday afternoon and through the night where i left it unplugged.

any help at all would be greatly appreciated as im quite gutted about how poor my phone battery is. I don't use many apps and i am becoming even more reluctant to use the phone for the web if it wont last 24hours on very low usage!

The phone is NOT rooted, i dont use twitter or facebook... i have 4 email accounts, (one google, 2 hotmail and a microsoft account)

let me know if i have dumped the file correctly.... and if i need to upload anything else! Thanks.
[BetterBatteryStats] chamonix:
No way, bbs uses no alarms. Are you maybe confusing with BMW?