yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] skimo12:
Hi [MENTION=5417899]DiamondJohn[/MENTION], I did use the "clear data" button when I tapped on app info for Messages. However, my text messages were not deleted. My reason for trying the deletion is that maybe a message never got sent, so keeps pinging to try to send.

I noticed, after the re-installation of Messages, that it does some work in the background. I disabled this setting, but there were still lots of Wake-ups overnight. I have now disabled Messages and installed Textra. I will run a test tonight to see if it helps. I also found a review that said that Messages is heavy on batteries.

Regarding 4G, I think it was a fluke when I had good results. I tried another run a couple of days ago and the connection is still poor for most of the time.
[BetterBatteryStats] TNSMANI:
To Whomsoever Is Interested

In some countries, including mine (India), the speed with which new technologies are rolled out is not matched by execution. When 3G came, it was rolled out, but the mobile towers were not upgraded fast enough, with the result that the tower near you had excellent 2G but since you had turned on 3G on your phone, the phone searched and found the same on a distant tower. This connectivity will be poor, unless you switch back to 2G, and will drain your battery. The same is the case with 4G. Don't be surprised if you learn that only some towers have been upgraded to 4G and many are yet to switch over.

The provider will claim that he has 4G and also issue sims compatible with 4G but connectivity will be poor except in some places. So in some places 2G or 3G will be better and in some other places 4G will be better. I don't think any provider has upgraded all the towers to 4G though it was introduced a year or two back.

So you have to test which of the 2G, 3G, 4G tech is better for you and at which place and keep switching between them if your drain is bad. If it is tolerable, leave it on what you like and grin and bear the drain. :cool:
[BetterBatteryStats] justjr:
Yep, for me I leave in 3G when I'm not playing a game or watching youtube, cause 4G towers are really scarce around here, and I've heard they have way less range then 3G the ones anyway, so basically all providers around here will probably not provide 100% 4G coverage for a long time on my city, just not worth if you wanna do the enormous amount of money they actually already make.
[BetterBatteryStats] Deni_NS:
[MENTION=1330150]chamonix[/MENTION] would you in future releases maybe implement back convert to system app?

Don't know about other ROMs but on miui there is blank pages (overall, wakelocks, alarms etc), when i push it to system, everything is good.

It was on 2.2xx versions but after that it is missing.

Phone is rooted and permissions are granted.
[BetterBatteryStats] yochananmarqos:
It no longer needs to be a system app. Are the permissions granted? Check BBS Settings > Advanced > App Permissions.
[BetterBatteryStats] Deni_NS:
Well for miui probably it needs... Everything is granted. i changed for you now to see, but I'm reverting and pushing to system app because it is only that way that works.
[BetterBatteryStats] chamonix:
That is weird as as already stated tge system app is not required anymore to get the right permissions. Csan you please report back what permissions are granted when no system app is installed (from settings - advanced - app permissions?
[BetterBatteryStats] Deni_NS:
As you see in screenshot it is like granted and everything should be silk and smooth, but the problem is that it isn't.

It's no problem for me, i manually push to system, but the guys who uses miui maybe don't know this and maybe you should get back for some people. If not then it's okay, it was suggestion :cowboy:
[BetterBatteryStats] greenys':
Could somebody tell me what "No Data Connection 100%" stands for? It's the same all the time and I have no idea why? Some people said it just means WiFi is turned off but my constant battery drain is 4% per hour which seems much to me and I'm afraid it is connected to this "issue".
[BetterBatteryStats] TNSMANI:
It is not an "issue" but what 'some people' say is the opposite of the correct meaning.

Please read the OP and also search this thread since "this issue" has already been answered multiple times by the Dev and others (including me).
[BetterBatteryStats] kamalmost:
How to get notified for new versions of the App

Lame question, how can I get notified (for new versions) if I installed XDA version of the app and not the one in google store... any idea!
[BetterBatteryStats] lazostat:
Here is the dump file. Do you see something strange? I see many alarms , some Network activity and motion sensors which working all the time.

If I block notifications from an app, would still wake up the device?
[BetterBatteryStats] strongst:
Hi, you have only 0.4%/h drain that's excellent for op5 within nearly 10h. I would not spent anything more to investigate something. If you want to get lower, just switch it off.

It's a smartphone, you will have minimal network activity, wakelocks, alarms and battery drain.

Everything below 0.5%/h excellent imo,up to 1%/h there's investigation possible but mostly it's due to hardware/software issues where you can't gain a significant improvement.

Nevertheless, as we know, your device and rom along with xXx mod is working perfectly including your apps and usage behavior :svetius:
[BetterBatteryStats] Oswald Boelcke:
No update notification for the XDA version.
[BetterBatteryStats] justjr:
I get updates notifications on email from the hockey app when a new beta version is launched on it. Just register there and choose to be alerted.
[BetterBatteryStats] chamonix:
Yes I have an idea but you should contact the dev of gsam, he will know what to do
[BetterBatteryStats] greenys':
Oh, I've searched a lot about it a few months ago especially in this thread. I'd not have asked if I found the answer, now would I? But oh, it seems I gotta do it again and hope this time I'll be more lucky. But if you refer to OP, yes I've read it and no it does not answer the question that should I care about it or does it drain my battery. Thanks anyway.
[BetterBatteryStats] DB126:
Yep - that approach will get you a quality response.
[BetterBatteryStats] TNSMANI:
Obviously you have neither read the OP nor searched this thread properly. Just a sample from the OP:

19. Q: The other stat is wrong. It shows "No data connection" and "No or unknown signal" while was online with Wifi all the time

A: "No data connection" and "No or unknown signal" refer to your cell data (2G/3G) service. As you have had Wifi on for some time the cell data was turned off, consistent to what the stats say: work as designed

If you search properly, you will come across many references in this thread.
[BetterBatteryStats] henningsieh:
Maybe I posted the following in the wrong forum/thread. I would like to disable them, but I can't find corresponding entries in these "standard alarm / wakelock blocker settings" of most custom ROMs. I am thankful for any helping advice or tip. Thank you!
[BetterBatteryStats] greenys':
I HAVE read these posts... but I still don't understand . _." I don't ever use Wifi, hotspot etc. I'm always on mobile data. Most answers are wifi/hotspot specific.

As I said I...only...want...two...simple...answers.

Do I have to pay attention to this stat?

Does it drain battery? Yes or nah. It's that simple. No clear answer for several months in a row. I don't need detailed explanation because I won't understand or care anyway...
[BetterBatteryStats] DB126:
No & No. Simple enough?

---------- Post added at 01:32 AM ---------- Previous post was at 01:26 AM ----------

Alarm and wakelock blocking is largely ineffective, often produces unwanted side effects (including increased battery drain) and is generally advocated by those who are unable to differentiate between symptom suppression and root cause analysis. There's a reason the items you listed can not be toggled. Let them be.
[BetterBatteryStats] Oswald Boelcke:
Currently out of thanks i.e. I've to express my gratitude this way. Concise, clear and very valid statements.:good: I also applaude you due to your patience by the use of only four simple words. I'd even not replied at all.
[BetterBatteryStats] Bloodlust:
Hi, I have the play store version of this app and enabled the stats via ADB shell since my tablet is not rooted but I seem to be able to only get the "since unplugged" reference.

The others like

- since boot

- since charged

- since screen off

isn't available in the drop down list.
[BetterBatteryStats] lazostat:
Does watchdog process eat more battery?

Is there any way to see the screen time on since unplugged, without have to charge the battery over 90%, which is the lower value that resets the battery stats?
[BetterBatteryStats] hbbxmjbb:
Can't find update.:confused:
[BetterBatteryStats] DiamondJohn:
In regards to resetting battery statistics, I have not tested the following explicitly with BBS, but to get the job done otherwise (since its been removed as a feature in most recent ROMs I have been using :mad:) I run the following command

dumpsys batterystats --reset

If you prefer to use an app / click on the screen over shell commands, the following utility I built (free) has the feature built in under the menu "Current State>Reset Battery Stats". NB: It does require root. https://xdaforums.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260
[BetterBatteryStats] DB126:
No.
[BetterBatteryStats] imlk__:
a debug edition with Android debug key？:confused: uncarefully？
[BetterBatteryStats] jbm76:
I am having a problem with TMD3725_Light Ambient Light Sensor Non-wakeup keeping my android system awake more than normal.

If anyone could have a look at my dumpfile would be appreciated.
[BetterBatteryStats] Oswald Boelcke:
Dump not really useful (Screen On (): 1 h 4 m 52 s 20.6%). Check OP for correct procedure.
[BetterBatteryStats] jbm76:
Ok

From 100-95% the problem isn't as bad/ when I sleep. During the day it seems to be worse. But yes I will follow what the OP says to do.
[BetterBatteryStats] Oswald Boelcke:
Utilisation of the device easily induce wrong observations and/or interpretations. The dump is obviously not a logcat, and whoever takes a look into your dump doesn't see what YOU did with your device. Allow me to quote @chamonix taken from here:
[BetterBatteryStats] Bloodlust:
How do I enable other references besides "unplugged"? Anyone?
[BetterBatteryStats] doraemonkey:
Is this app android pie support?
[BetterBatteryStats] strongst:
Yes, see here https://www.xda-developers.com/betterbatterystats-update-android-pie-support/
[BetterBatteryStats] doraemonkey:
Thank you, which version? I check the first page but the changelog just for Oreo
[BetterBatteryStats] TNSMANI:
'From Boot' will become available once you reboot the phone. 'Screen Off' and 'Screen On' can be enabled from BBS's Settings>'Watchdog' - enable and will be available after your screen is off atleast for sometime.
[BetterBatteryStats] Bloodlust:
I see.. thanks for the insight [emoji3]
[BetterBatteryStats] maybeme2:
This is my wife's nexus 5 phone which has been losing battery charge faster than usual. I put in a new battery in it over a year ago and don't know if she needs a new battery again or something is eating up her charge that can be adjusted. I would appreciate any help.

Phone is rooted.

Thank you.
[BetterBatteryStats] githyanki:
Get rid of WeatherBug, quicksearch, and mshop. Those are the biggest drainers.
[BetterBatteryStats] Oswald Boelcke:
And I assume, both, a pretty weak mobile and WiFi connection, might be responsible for the unusual drainage. If the device has to search for networks it eats up energy.
[BetterBatteryStats] maybeme2:
Got rid of Weatherbug. Can't find quicksearch or mshop. What are they?
[BetterBatteryStats] githyanki:
com.amazon.mShop.android.Amazon

com.google.android.googlequicksearchbox.Google

Try to remove the search bar on the home screen. May need to change launchers if yours doesn't allow that to be removed.
[BetterBatteryStats] yochananmarqos:
com.amazon.mShop.android.Amazon = Amazon Shopping

com.google.android.googlequicksearchbox = Google App search widget
[BetterBatteryStats] justjr:
Just posting to say that I finally bought the app, sorry for taking so long [MENTION=1330150]chamonix[/MENTION], should've done it sooner, such an invaluable tool.
[BetterBatteryStats] krkhaha:
Hi. Where is file to download? I mean version 2.4.
[BetterBatteryStats] Nekromantik:
Is there a XDA edition of 2.4?
[BetterBatteryStats] :
Please read op ...

Here you are:

https://rink.hockeyapp.net/apps/43837e1e08b04ce09d3b50ed1aed6768
[BetterBatteryStats] marcdw:
Tried different browsers but page requires a login.

ZTE Axon 7 A2017U, AospExtended v5.4 ROM, HellsGate Kernel, Multiboot, XDA Legacy
[BetterBatteryStats] justjr:
Yes, it does. Make an account.
[BetterBatteryStats] marcdw:
Ah, I see where I was wary. First time going to HockeyApp was via the link a few posts up. I was like uh uh on that. Then I clicked on the link in the OP where the page mentions BetterBatteryStats. Now I'm good. ?
[BetterBatteryStats] joluke:
This is awesome :D

Enviado do meu SM-N950F através do Tapatalk
[BetterBatteryStats] xdamami:
Latest Paid Bbs not working Miui 10 Pie.
[BetterBatteryStats] justjr:
Are you enrolled on beta?
[BetterBatteryStats] peterlee928:
howdy all! would it be too much to ask to take a quick peek and proffer any wisdom?

generally, i dont have that bad of idle drain. but occasionally, i will have drains like the one in the attached log. based on my read, it looks like "powermanagerservice.wakelocks" is the key culprit, but im not certain as to what is triggering that.

any insight would be greatly appreciated! and i apologize in advance for not having my phone charged to the proper levels before i took my dump... but it is 6 hrs. let me know if yall need it to be at the proper %s. :)
[BetterBatteryStats] strongst:
Hi, regarding your question, I answered it here: https://xdaforums.com/showthread.php?t=1179809&p=77349288

The idle drain isn't hight,that's true, but I don't know if it gets better(see your device forum for comparisons).

The main problem I see is the bad cellphone connectivity:

Poor Signal (): 1 h 1 m 24 s 16.0%

Moderate Signal (): 5 h 22 m 48 s 84.0%

If it's possible for you to repeat such a test - dump within an area of better coverage so you can exclude this roques.
[BetterBatteryStats] drezz2:
Goodnight

to be connected by bluetooth or wifi, originates wakelocks?

When I put the BT, "Bluetooth remote devices UID" appears, is it normal? (I do not know if the program when BT is connected or wifi marks it as wakelock) in "partial wakelocks" and in "kernel wakelock" it is grouped under PowerManagerService.wakelock

a greeting
[BetterBatteryStats] strongst:
Yes, like hal_bluetooth_lock but this depends on device/software and won't be an issue in general. Without wakelocks, it's not possible that some low level functions will work.
[BetterBatteryStats] drezz2:
thanks for the quick response, I have an old version of android and a version of its program for quite some time, that as I was doing well the program, do not update it. I attached the dump file, which I forgot, although if it's not a problem, you do not need to look at it

Thank you very much
[BetterBatteryStats] strongst:
Sure I'm looking into it ;)

The dump isn't an idle dump(refer op for details), but nevertheless it's drain is only 0.5%/h which is excellent for this usage period!you're concerned about this I guess:

LocWeather (com.xiaomi.hm.health.Mi Fit): 46 m 10 s Count:95 0,8%

BluetoothRemoteDevices (UID): 41 m 56 s Count:503 0,7%

But I think the wakelock refers to the MI fit or the health app itself. You can check this if you just connect the watch to gadgetbridge(for example for several Xiaomi devices) instead of health app and freeze it, then start a similar dump record to exclude the app as problem.
[BetterBatteryStats] drezz2:
Of course, sorry, it was a lot that I did not get dump files and I did not remember how it was done correctly

I was really worried about the BT, but if connecting the BT to the clock or to the car radio generates wakelocks in a normal way, then I do not worry

I use a modified mifit, which allows other things, although both the original and the modified generate that wakelock although I can not understand the reason (maybe consult every so often the location and the problem is that in the mobile I usually have the gps disconnected)

thanks again for your time
[BetterBatteryStats] habylab:
This doesn't have the latest Pie beta though.
[BetterBatteryStats] peterlee928:
very much appreciate the insight! interesting on the connectivity, as the idle dumpfile was captured at night while my phone was connected to home wifi, which is solid signal. but i will test it in various areas to see if i get different reads. :good:
[BetterBatteryStats] githyanki:
Cellular signal was poor, not WiFi.
[BetterBatteryStats] peterlee928:
that is even more curious. but thanks for the clarification! not much i can do about that lol...

EDIT

ok this is likely a very dumb question, but why would poor cellular signal have an impact since my wifi was connected the entire time?
[BetterBatteryStats] DB126:
Your devices cellular radio remains powered at all times unless explicit steps are taken to kill it such as enabling airplane/flight mode and then toggling on the WiFi radio separately. With most carriers/devices/roms you can not make or receive calls/texts if the cellular radio/service is disabled.
[BetterBatteryStats] strongst:
Just an more technical additional explanation for this question in addition to [MENTION=5488402]Davey126[/MENTION] explanation: if a cellular signal drops the radio amplifier on your phone needs more power with the same antenna to keep the signal sustainable.

This is the same with every radio amplifier also the one for wifi.
[BetterBatteryStats] peterlee928:
also [MENTION=5488402]Davey126[/MENTION] - much thanks for this info! :)
[BetterBatteryStats] justjr:
If you're on LTE you can always try GSM to see how is the signal. For me GSM is always 100% while LTE keeps going down because we get only a few towers on my town.
[BetterBatteryStats] strongst:
You cannot always try GSM. More and more countries and providers let GSM die and its not available ;)
[BetterBatteryStats] justjr:
I hope that happens here, after LTE coverage gets good enough. But I find it unlikely. xD

Well then, try if you can?
[BetterBatteryStats] Oswald Boelcke:
I don't know if your ROM's settings support this feature (see screenshots) but I'm very happy with an automatic switch to 2G if screen is off. However, I can confirm that I still receive notifications of my non-greenified and non-battery optimised communication applications like email or messenger clients.

I also attached an idle dump for completeness (while the device was connected to our home WiFi network).
[BetterBatteryStats] strongst:
Nice feature(is it implemented in ressurection remix?) for such situations.
[BetterBatteryStats] Oswald Boelcke:
Affirmative. As you certainly recognised I'm on RR-N-v5.8.5 on all devices. I don't remember if it's still implemented in RR-O-v6.1.x as I only briefly used that version - not usable to me as daily driver (really hell of battery "consumption" while the device was supposed to be turn off, and I regularly and much too frequently "lost" the SIM (SIM not recognised) while baseband was still available).
[BetterBatteryStats] Lughnasadh:
It is implemented on RR-O-v6.2 on my Nexus 6P. I also included the last idle dump I did on this version from my home WiFi. However, I did have data turned off.
[BetterBatteryStats] maybeme2:
Is there a tool or standard method to determine when a phone battery has deteriorated and it is time to just replace it?
[BetterBatteryStats] Lughnasadh:
You can use AccuBattery. It will give you an estimated battery capacity (in mAh) as a percentage of the phone's design capacity.
[BetterBatteryStats] lklaus:
For some time now I have a problem that puzzles me. I can't find the right handle on it, so maybe somebody has a tip (even if it is "don't bother")

While being on mobile data my phone tends to not sleep (watchdogs gives 30-80% awake while screen off). I can't really nail the culprit, though. My normal idle drain is at 0.4-0.6%/h in 8h, depending on mobile data coverage (also, I go into airplane mode automatically in the night)

Attached is a dump from one of those warnings. I'm not really sure what's causing it...

BBS Dump
[BetterBatteryStats] strongst:
Your dump contains a recorded time of only half an hour, but should at least be 6+h
[BetterBatteryStats] lklaus:
Yes, it's for a situation that bothers me. The long idle dump is fine, but while on the move, with the display off for, like, 30m, the phone is awake up to 80%. I was hoping to get a grip on this
[BetterBatteryStats] strongst:
Do you have Bluetooth and location scanning turned on? GPS active? Is it the stock kernel from LineageOS? The device idles too long on 300Mhz.
[BetterBatteryStats] lklaus:
BT is off, location is on ("energy saving" mode). Yes, i think the phone stays awake for too long, but i don't know, why. It's only happening on the go with mobile data, but i don't see a sensor busy...

Yes, stock LOS 15.1 official.
[BetterBatteryStats] strongst:
Turn off wifi and Bluetooth location scanning and test again
[BetterBatteryStats] Oswald Boelcke:
@lklaus: The screenshots show the feature @strongst is talking about. Ensure both are disabled as it won't only improve battery duration but also enhance your privacy. If those are enabled your device searches for WiFi or BT even when WiFi or BT are manually disabled by you.

Additionally, please allow me to quote @Davey126 twice:
[BetterBatteryStats] lklaus:
Thank you, but maybe i stated my original question wrongly. Normally, i have 0.4-0.6%/h drain an am indeed quite happy. Also, this effect while on the move only started a few days ago. So, now it's indeed online at low frequencies, but starts to also drain at about 3% or more, which is bad when being on the way. And, yes, it's a privacy problem, that's why i choose apps that are allowed to use location carefully, but there are some i have to rely on. So i know the actual culprit, but not, why it suddenly pops up.
[BetterBatteryStats] jeremysherriff:
It could be, it's worth a try. Your workmates have the same app, and same server even, so it's probably a bit of corruption somewhere. Could even be a f#&ked message or calendar entry trying to re-download over and over.
[BetterBatteryStats] sohebq:
I thought of moving to go sms, but it doesn't bring pop-up above the screen lock
[BetterBatteryStats] bemymonkey:
NetworkLocationPassiveCollector

Does anyone know what NetworkLocationPassiveCollector is? It's at the top of my partial wakelocks list since yesterday...

I've closed all Google Maps instances and any other apps that use location (with ATK) - any idea what that could be?
[BetterBatteryStats] jeremysherriff:
Yeah passivecollector is the use of the wifi networks and cell towers to locate you to street level. Something is requesting your location - Facebook, Google Latitude, or any of a million other apps could be the cause.
[BetterBatteryStats] bemymonkey:
Unfortunately I've been unable to pinpoint the app... Seems to be gone after a reboot though.
[BetterBatteryStats] jeremysherriff:
I originally typed "see if it returns after a reboot" but changed my tact. Lol.
[BetterBatteryStats] chamonix:
Maybe someone can confirm but I saw syncloop the first time yesterday after unfreezing Whatsapp. The wakelock was gone after freezing again
[BetterBatteryStats] superbobup:
I've never had whatsapp installed but maybe others might have. I'll try and replicate the occurrence and grab a logcat of when it happens
[BetterBatteryStats] bugsaci:
Thank you i will put my last log from last right after i'm arrive at work :D.

Aaaaand, my fast dormancy are not on. I always set it off since almost all battery tips i read told me to turn it off.

Thank you and sorry for bad english :(
[BetterBatteryStats] jeremysherriff:
Are you sure about the fast dormancy? It shows there in the logs..