yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Can you please confirm on the current build. I did major changes to avoid that BBS get shut down too early by doze and other android mechanisms that block background processes.
[BetterBatteryStats] Fif_:
Thanks.

I'm willing to try, but is there a download that's available without registering with hockeyapp?
[BetterBatteryStats] chamonix:
Deleted, duplicate
[BetterBatteryStats] chamonix:
Unfortunately not to my knowledge
[BetterBatteryStats] shaggyskunk:
What's the issue with hockeyapp? I don't know if [MENTION=1330150]chamonix[/MENTION] gets anything for people registering with hockeyapp, but I hope that he does! BBS is FREE & Doing anything that supports the Dev & Development is the least we can do ?
[BetterBatteryStats] Fif_:
Nothing wrong with HockeyApp. I'm generally trying to avoid creating accounts on random websites if I can. That's all.
[BetterBatteryStats] chamonix:
No I don't. Hockeyapp is just the best tool for the job I needed: distribute apps in an automated fashion while keeping track of crashes and analytics. Of course you can opt-out from crash-reports and analytics but even without that data hockeyapp is still the best to me because of it's speed of delivery for test builds.

Of course, once a build is stable enough I still use the beta and staged rollout features from gplay but as these are far slower I need something with more velocity while iterating on new versions.

Edit: anyone who wants to support my work can still go to gplay and buy BBS from there (same features so just to pay me a beer)
[BetterBatteryStats] chamonix:
I understand your concerns and I would have chosen a comparable solution without registration if only I'd found one. I take your privacy seriously: you can find all details as well as the ones for hockeyapp here: http://better.asksven.org/bbs-privacy/
[BetterBatteryStats] shaggyskunk:
Done a long time ago ??
[BetterBatteryStats] chamonix:
New version is up with some widget-related fixes. [MENTION=2044343]accuphase[/MENTION] I hope the new text version suits your needs. Please let me know if you miss anything. I have ported the layout to the "new" responsive one and added the option to keep or remove text colors. Like that the circles and the legend can be placed independently on the screen.
[BetterBatteryStats] :
Thaaaaaaaaanks!

Looks great.

One idea: is it possible to show only time numbers or only percentage numbers in the text-widget (as it was before)?
[BetterBatteryStats] chamonix:
I can do that :) Btw a new release is building right now because the update of the widget was all little erratic
[BetterBatteryStats] chamonix:
I would like you guys to test a specific use-case: the fresh install. SDK26 adds the logic to ask for certain permissions that that was added into 2.5. Of course this logic only runs if the perms are not granted already and that is why testing the fist-install flow is important. Before un-installing remember to export your settings!
[BetterBatteryStats] chamonix:
Btw I guess you already noticed that the numbers + % are shown if the widget is large enough
[BetterBatteryStats] :
Yes, I've noticed it ;)

But having numbers + percentage together in the widget results in a bit cluttered view ...

Many thx again!

---------- Post added at 12:47 PM ---------- Previous post was at 12:34 PM ----------

"Asking permission" process was fine for me (fresh install) :svetius:

---------- Post added at 12:53 PM ---------- Previous post was at 12:47 PM ----------

Text widget: switching text color on/off in settings have only impact to new widgets not for the one placed already at homescreen (or do I miss something?)
[BetterBatteryStats] paolocorpo:
Thanks Chamonix

I performed a fresh installaton of last beta rjust eceived by Hockeyapp

No issue with permissions (it means that nothing has been asked during or before installation)

I noted a stable notification always present on left top despite I closed BBS

It is really necessary ?

I am on Xiaomi Mi A1 8.1.0 stock last patch
[BetterBatteryStats] chamonix:
Unfortunately the notification is required to show that there is a backgroud service (event processing) running. That is the only way to ensure that the event processing is not muted by doze-model and battery optimization. This notification is in a channel "event processing" that you can mute without losing any other notifications from the app though
[BetterBatteryStats] chamonix:
The color on/off is certainly supposed to become active straight away, will look into that. The responsive addition of % to the figures is not a replacement for turning figures off alltogether, I agree. Just wanted to point out that the responsive widget has a few neat features included to optimize the use of space as this is new to the "modern" widgets.

I am working on a few other ideas right now but expect a release fixing/improving the widget during the week-end
[BetterBatteryStats] DSC05:
Since a few versions (idk exactly when it was introduced) the wake time and percentage isn't correct anymore in the widget though it shows the right time in the app under summary.

Galaxy S9 with Android pie beta.
[BetterBatteryStats] chamonix:
New version is building and will release soon:

- Added option to show only % values in widgets

- Setting changes get reflected in widgets after a few seconds

- Applied changes in settings to both widgets
[BetterBatteryStats] :
Looks great!!!

One small thing ... could you please align the time & percentage to the right hand of the widget (sorry to be a bit persistent) ...

Many thx again to you and your extraordinary support!
[BetterBatteryStats] vldesco:
Missing some spanish translations, I will do it as soon as possible.
[BetterBatteryStats] chamonix:
Building..... and out for today :)
[BetterBatteryStats] :
You're the best! Have a great weekend!
[BetterBatteryStats] solquest3:
Hey all.

I'm checking the dump file (attached) and there's something I don't understand.

I have a lot of wakelocks, like

*alarm* (com.tripadvisor.tripadvisor.TripAdvisor): 44 m 39 s Count:6 1,4%

*launch* (org.waterfoxproject.waterfox.Waterfox): 44 m 39 s Count:15 1,4%

GOOGLE_C2DM (com.musixmatch.android.lyrify.Musixmatch): 44 m 39 s Count:0 1,4%

GOOGLE_C2DM (com.lafourchette.lafourchette.TheFork): 44 m 39 s Count:0 1,4%

GOOGLE_C2DM (com.bwinlabs.betdroid_it.bwin Sports): 44 m 39 s Count:0 1,4%

that I thought I blocked, setting permit every 999999 seconds on Amplify app.

Have I done something wrong? How can I just block them?

Speaking of the last two of them, why is it saying Count 0 and then 1,4%? I would have expected 0%, if count is 0...

Apart from that, I'm having Level lost = [1,8%/h].. is there something you easily see I can do for getting it lower?

I need to have Macrodroid checking quite often the cell tower I'm connected to for doing actions depending on my position.

I could use geofence for doing that, but I guessed It drained more battery.

One more thing, I have an app 'Diretta' that is always showing late notifications. I've set wifi never sleep and 'no optimization' for that app on settings/battery, but still I'm getting late notifications. Is there something you see from that dump that I can do?

Last thing: I seem to have always

Poor Signal (): 2 d 2 h 29 m 8 s 96,0%

Is that depending only on my network (I'm in Italy and have GSM/WCDMA/LTE as preferred network) or is there something I can do for having it better? Can be related to

Deep Sleep (): 1 d 23 h 13 m 28 s 89,8%

?

Thanks!

Luigi

xiaomi redmi 4x, android 7.1.2, resurrection remix rom
[BetterBatteryStats] shaggyskunk:
Thanks for your time & efforts - Always appreciated! ?️
[BetterBatteryStats] DB126:
- Obviously didn't read OP on preparing a proper IDLE dump ...

- First step to better battery endurance is to dump Amplify

- log (such as it is) exhibits classic symptoms of over Amplification

- Alarms and wakelocks are not evil
[BetterBatteryStats] chamonix:
New build is up with a few minor UI tweaks and fixes
[BetterBatteryStats] kamilmirza:
build 2.5-302 (95)

Customization > Show Bars does not work
[BetterBatteryStats] chamonix:
Thanks for reporting. The option was removed but the settings was still there. Will be removed in next release.
[BetterBatteryStats] :
2.5_302: awake percentage is negative and kwl>100% ... can't be correct, can be?

Edited: wrong attachment, sorry
[BetterBatteryStats] chamonix:
I noticed that on my phone yesterday while it was plugged but was not able to reproduce after unplugging, assuming the "from" reference was not before the "unplugged" one. If your problem persists please provide a logcat + dumpfile so that I can have a closer look.

Edit: kwl > 100% is possible as kwls as well as pwls can overlap. Summing the times may be bigger that "since", e.g. Since 1 minuten, 45 seconds of wlan_rx + 30 seconds PowerManagerService.Display = 1 minute 15 Seconds out of 60.
[BetterBatteryStats] Nimueh:
Somehow the text only widget isn't updating at all since the last update. The other one works (it does show weird KWL times though), only the text widget is on strike or something.

I've rebooted, removed + replaced the widget a few times, all to no avail :eek:

Screens are from my View 10 but my Galaxy Tab (both running RR Oreo) shows the same behaviour.

Edited since XDA is was being a pita and doesn't didn't like the last screenshot :laugh:
[BetterBatteryStats] solquest3:
Oops I'm sorry.

Uninstalled Amplify, then next time I'll charge I'll follow what written in the beginning of the thread.

Thanks for replying!
[BetterBatteryStats] shaggyskunk:
[MENTION=1330150]chamonix[/MENTION] This is JUST an FYI - I'm not looking for you to do anything about it - This is what I'm seeing on the xda edition on my S9+ running One UI beta - So it's certainly not a stable or final build - The message does disappear after you click on "ok" & I haven't had the chance to see if the message actually means anything ??️
[BetterBatteryStats] M7mdA7md7sein:
Can anyone help me regarding my S9 Plus ??

I think I can get good battery life for continuous Screen-On-Time, but regarding the stand-by time is very bad !

I would greatly appreciate further help in my case.
[BetterBatteryStats] chamonix:
Can you please provide a dumpfile logcat as well as the settings (reference, fallback reference) you have selected. I need to look into a few things that may be depending on the Android version.
[BetterBatteryStats] chamonix:
This is a message that is displayed by android: google has decided that they know better than their users and from Pie have started restricting API-calls they don't want apps to call anymore. There are different levels of restriction where certain calls can not be made anymore (blacklisted) but for the greylisted ones (BBS uses lots of these) this warning is shown. I have read somewhere that this warning would disappear if the app is complied for production instead of debug (the xda edition is compiled with debug) so this is something that I will definitely look into and try to suppress.
[BetterBatteryStats] shaggyskunk:
No worries - Yeah Google ?

It disappears on it's own after clicking on it - I did check out the site in the message anyway - Thanks for the info ??️
[BetterBatteryStats] Nimueh:
I hope this is what you wanted ... not sure why BBS made 2 of each file though, possibly because it crashed when I tried to "Save to" the log/dump?

XDA is being a b*tch again about the screenshots, fingers crossed that you can see them :fingers-crossed:

Thanks for looking into it ... nobody else has posted so I think I'm pretty much alone with this :angel: :D
[BetterBatteryStats] robert.haugen@gmail.com:
Partial Wakelocks - 2.4-265 Android 9 Sony Xperia XZ2 Compact

Hello.

I am not seeing Partial Wakelocks on my Sony Xperia XZ2 Compact with android 9.

Version 2.4-265.

Permissions should be ok:

requested permissions:

android.permission.DUMP

android.permission.PACKAGE_USAGE_STATS

android.permission.ACCESS_WIFI_STATE

android.permission.ACCESS_NETWORK_STATE

android.permission.INTERNET

android.permission.RECEIVE_BOOT_COMPLETED

android.permission.BATTERY_STATS

android.permission.READ_PHONE_STATE

android.permission.GET_TASKS

android.permission.BLUETOOTH

android.permission.WAKE_LOCK

android.permission.READ_LOGS

android.permission.ACCESS_SUPERUSER

android.permission.READ_EXTERNAL_STORAGE

android.permission.REQUEST_INSTALL_PACKAGES

install permissions:

android.permission.RECEIVE_BOOT_COMPLETED: granted=true

android.permission.BLUETOOTH: granted=true

android.permission.GET_TASKS: granted=true

android.permission.INTERNET: granted=true

android.permission.BATTERY_STATS: granted=true

android.permission.PACKAGE_USAGE_STATS: granted=true

android.permission.ACCESS_NETWORK_STATE: granted=true

android.permission.ACCESS_WIFI_STATE: granted=true

android.permission.DUMP: granted=true

android.permission.WAKE_LOCK: granted=true

User 0: ceDataInode=1310923 installed=true hidden=false suspended=false stopped=false notLaunched=false enabled=0 instant=false virtual=false

gids=[3002, 3003]

runtime permissions:
[BetterBatteryStats] Icetea:
after a long period of use:

why betterbatterystats isn't fully localized? i can select the German GUI, but unfortunately most results are shown in English?
[BetterBatteryStats] shaggyskunk:
BY "localized" - You mean translated? If so - & you're looking for German translation & you are fluent in German & English - You could probably ask [MENTION=1330150]chamonix[/MENTION] if you could translate it into German - And unless you have purchased the paid version - it's a free app! ?️
[BetterBatteryStats] Icetea:
i can't understand, that [MENTION=1330150]chamonix[/MENTION] the german programmer of this app isn't able to translate the whole app into German!

and yes, i use the pro version of it.
[BetterBatteryStats] shaggyskunk:
I don't know if [MENTION=1330150]chamonix[/MENTION] is German - Just because his profile says he lives in Berlin doesn't mean that he is - Maybe he's Australian lol - Great that you are supporting the Development of BBS! ?️
[BetterBatteryStats] Icetea:
not a German??? My fault! ;)

i have read some of his German posts on G+, so i think, he is. :D
[BetterBatteryStats] shaggyskunk:
lol I don't know - I'm just offering possible reasons as to why BBS isn't translated into perfect German - For all I know - Chamonix could be an extraterrestrial being brought to earth solely to help find what's draining android batteries ???️

Sent from my SM-G965W One UI Beta ??
[BetterBatteryStats] Oswald Boelcke:
For a long time now, I'm not using any release version of BBS but I believe they received German strings; if they were updated over the time I don't know. At least the beta versions I use are only available in English although giving credits to some translators in the "abouts". Without looking into a great majority of Chinese apps, it seems to be (let's call it) the usual approach that the "original" language is (American) English independent of the nationality of the developer or his mother tongue. And if chamonix is a German (and I'm convinced he is) maybe his focus is more on development than on translations.

But allow me to partially quote the OP, in which I highlighted one sentence that makes me to assume that @Minty123 isn't currently available. However, you are certainly invited to assist in and support the German translation!
[BetterBatteryStats] Icetea:
keep it calm!

Don't missunderstand me, BBS is really a good app!

But i am only wondering that it isn' fully translated. ( German developer) No matter!

There are similar apps available at the market, which are fully translated.

No reason to fight a senseless fight.
[BetterBatteryStats] shaggyskunk:
Yeah I don't think that anyone is fighting - It's Friday in most of the world - And it's probably been a long week for everyone ???️
[BetterBatteryStats] chamonix:
Yes I am, even if I did not grow up here and my native language is not german but french. Anyhow it' all about time-management and for that reason we have maitainers for different languages (see first post). I understand from your frustration that german has not been updated for a while and I will see what I can do about it.
[BetterBatteryStats] chamonix:
I have checked the logs and the stats and everything look pretty normal to me. On the other hand looking at your screen it is pretty obvious that the text widget does not even get initialized after you dropped it on your screen. Could you please try the following:

- remove any instance of the text widget from the screen

- drop a new instance and wait 10 seconds

- take a screenshot and save a dumpfile and a logcat

With that info I am hoping to understand the reason for the initialization logic not being called of it failing at a critical point.
[BetterBatteryStats] Nimueh:
Well here goes nothing, I hope the files help.

I don't know what exactly changed, it worked until the last (2nd to last?) update last weekend. The other widget is fine, so it's very strange - well to me at least :laugh:

Thanks for looking into it :)
[BetterBatteryStats] mrjuniork:
Let me know if I can help with german translations :)
[BetterBatteryStats] chantoine:
Hi,

Is there special settings for Xiaomi phones or other Chinese models with aggressive battery behavior?

I am a very long BBS user and with a redmi note 5 since several days and the unplugged reference is never set. My stats are from the initial installation with adb and I can't find why.

Envoyé de mon Redmi Note 5 en utilisant Tapatalk
[BetterBatteryStats] solquest3:
Hi again.

I should have done everything in the right way now (charged to 100%, then used to 95% then having not touched it for almost 8 hours.

I attach the dump file.

During that time I had notifications from Whatsapp and Diretta, 3 scheduled email sync (one every three hours) and one scheduled sync to Drive (with Foldersync)

Checking wakelocks I see apps that shouldn't wake the phone (don't have notifications from them):

- Mobike

- OFO

- Stocard

- SwiftKey

- Adobe Fill & Sign

- ebay

- Meteo

- Rassegna Stampa

- Satispay

- TripAdvisor

Is there anything you recommend for having a better battery life?

Thanks!

Luigi

Xiaomi Redmi 4x

Android 7.1.2

Resurrection Remix rom
[BetterBatteryStats] DiamondJohn:
Hey! thats very insensitive of you.:crying: There are a large group of people that believe we do not exists, other than as a Hoax. ie the "Flat Earthers" believe we are paid actors or robots https://www.reddit.com/r/copypasta/comments/61hk5a/australia_isnt_real_all_credit_to_shelley_floryd/ I have not received my royalty cheque yet :mad:

Sure, rub salt onto the wound.
[BetterBatteryStats] shaggyskunk:
Yeah that's very true - I know that Kiwi Land exists, because Frodo Baggins told me so!

Who in their right mind is gonna believe in a place that supposedly has egg laying mammals.... lol ?

I believe in Aliens because ♨️trump ♨️ wants a Space Force ??? LMFAO ?

?️
[BetterBatteryStats] bemymonkey:
Interesting, will keep an eye out for it in case it pops up again. I have no problem with Google tracking my any move, but when it becomes detrimental to my battery life, I start to take offense ;)
[BetterBatteryStats] chamonix:
Not wrong, both views are just using different data:

- the stock graph is using wifi-running as you can see here: http://grepcode.com/file/repository.../BatteryHistoryChart.java#BatteryHistoryChart

- BBS is using wifi-on as you can see here: https://github.com/asksven/BetterBa...en/betterbatterystats/data/StatsProvider.java

I added a feature request to add the other wifi states as depending on conditions they may be of interest: https://github.com/asksven/BetterBatteryStats/issues/111
[BetterBatteryStats] chamonix:
Ok, my first assumption was wrong but not so far from the truth. SyncLoopWakeLock was previously known as *sync*, I added a KB here: https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/SyncLoopWakeLock
[BetterBatteryStats] chamonix:
Could you provide a logcat. It's the first time I see that error on a stock ROM
[BetterBatteryStats] chamonix:
Whatever work the best for you. I use k9 on my phone and gmail on my tablet
[BetterBatteryStats] chamonix:
You should try to check the settings. As far as I remember there is a setting for snooze the notifications and indeed that function keeps the phone awake or waking up again and again.
[BetterBatteryStats] chamonix:
Your problem is kaiten mail, keeping your phone waking up far too often (and with far I mean really far with thousands of wakelocks in 11 hours)
[BetterBatteryStats] chamonix:
Before posting a dump please make sure that the references for kernel wakelocks and alarms were processed correctly. Reading a dump takes a few minutes and it would be great if you could not waste the time of whowver studies in, aiming at helping you.

Generally a dump "since unplugged" is better than "since charged". When you start your analysis make sure to follow following procedure:

- plug/unplug the charger

- leave the phone alone 1-4 hours

- save a dump and check that the chapters "Kernel wakelocks" and "alarms" (if you have root) are populated

- Post the dump as attachement

I will not reply to posts with incomplete dumps

(added to OP)
[BetterBatteryStats] yhrn:
Actually, svnet-dormancy is not directly related to fast dormancy - it's just related to mobile traffic in general. Disabling fast dormancy can actually have a negative impact on battery performance depending on whether your mobile network supports it or not so it can be worth testing with it both enabled and disabled.

I was going to say that you could read a little bit about svnet-dormancy in the BBS knowledge base by tapping the little icon on the right in the svnet-dormancy entry in BBS kernel wakelocks but it seems like the article is gone for some reason.

@Chamonix: Has something happened to the KB? Does not seem to be a lot left there (or at least the svnet-dormancy page seems gone).
[BetterBatteryStats] saebafr:
Hello, a little question. On my galaxy s I have juice defender. When I sleep, the phone is in night mode, with connection disabled. Do I have to close juice defender before using better battery for a clean dump?

Thanks

Envoyé depuis mon Galaxy S Cm9 avec Tapatalk
[BetterBatteryStats] qualitymove13:
@chamonix. Could you please take a look at my log? I am puzzled as it has not gone away after some tweaking i tried from this forum. Thank you very much...
[BetterBatteryStats] LegendZenify:
Actually the drain is quite low, half of what I used to notice before removing some stuff upon the advice of chamomix.

Just thought to get some thoughts on what else could be done before proceeding to diagnose the battery drain with data connection turned on (It seems a whole lot more complicated and worse)

Also, I had removed most of the social stuff and set very infrequent polling (which I'm definitely not planning to do in the long run).

@chamomix

Attached is my bbs log and battery info for my normal usage.

Had mobile data on most of the time (with fast dormancy on)

Please help me take a look at it, thanks.
[BetterBatteryStats] claudioita:
I disinstalled it and reinstalled it, using default Kaiten mail settings.

Battery drain is still there. What can that be?

When I was on GB had the same setting (I think: at least I had the default settings) and everything was fine.

I have 2 gmail account and 2 google apps account. When I was in GB I was using Kaiten PLUS Google email app for all 4 accounts and battery drain was less!!!
[BetterBatteryStats] hslayer:
does this app require superuser permission? it asked for it and I denied it since I don't know why it was asking for permission
[BetterBatteryStats] inconceivable124:
It's only needs it to view the alarm logs.
[BetterBatteryStats] Sincitybronze:
chamonix, is there any way to tell through your app how much battery drain is merely a result of a poor data connection and the phone attempting to find the signal? If not, is there any other way to determine this?
[BetterBatteryStats] rmean:
thank you, that was helpful. after deactivating sync (except i need it), the problem vanished.

last deal-breaker that is left is 'ConnectivityService'.. what exactly does it stand for?

kind regards :)