yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] EyeTech:
Thanks!. Version is latest (6.0.3) and cache settings are default. I've cleared map data and turned off tasker for a while (not that I use any location based tasker events). I've also turned off location in settings. If that settles the wakeups down I guess I'll re-enable things gradually and monitor with BBS. Thanks for your help, appreciated.
[BetterBatteryStats] suku_patel_22:
Well check it out once get a PC, thanks for clarifying

Swyped from my Desire S
[BetterBatteryStats] fraser82:
great app! thanks a lot ;)
[BetterBatteryStats] qualitymove13:
Event log service wakelock

Attached is my dump file. I have no clue where to head with this but I appreciate the help in advance.

Epic 4G Touch Running:

Caulkin v2.6

Rogue 1.3.0
[BetterBatteryStats] chamonix:
Your device was awake one hour, screen was on part of that time. It seems that your device has been trying to notify you of an incoming SMS and has indirectly been causing your lock screen to hold a wakelock. Are you using the stock locker or an alternative one?
[BetterBatteryStats] qualitymove13:
Stock touchwiz with an Ics theme. So disabling the led notification would fix this? I don't like how the notification stays on until I read the message anyway. Thanks again, great app!
[BetterBatteryStats] :
hey hey how come the RC3 now has service running in background? if i remember correctly the old version I don't see it running in my task manager.
[BetterBatteryStats] Kurre:
Just read couple of posts back and you'll find changelog and chamonix's explanation about the matter. ;)

Sent from my CM'd SGS
[BetterBatteryStats] chamonix:
Here's the answer
[BetterBatteryStats] chamonix:
v1.5

V1.5 is rolling out on Market and of course updated here as well (see post #2). Sources are up-to-date for those interested.

Enjoy
[BetterBatteryStats] KeesStolk:
Just updated, looks great.

Your program helped me a lot, since downloaded.
[BetterBatteryStats] damian5000:
Can do. How much time is needed? Any length its held awake should tell the tale, correct? Do you recommend a specific method of producing the log?
[BetterBatteryStats] damian5000:
Here is one log while screen off. Not sure if its adequate. If not, please point me to how to appropriately retrieve.

http://speedy.sh/gMxSV/2014-06-08-20-53-48.txt

The phone is rebooted it deep sleeps fine. When using the phone for awhile it will then not deep sleep and nothing helps it other than another reboot.

BBS shows nothing for kernelwakelocks. Same as WLD. Its as if the wakelocks are logged in an entirely different way.
[BetterBatteryStats] chamonix:
The screnshots are not BBS related so they don't really help. Please reproduce the error and save a dumpfile and logcat using the share option from within BBS
[BetterBatteryStats] chamonix:
1.16B4 is upwith some fixes and a feature. Enjoy!
[BetterBatteryStats] chamonix:
28 downloads but no feedback....
[BetterBatteryStats] m1trand1r:
Oh...one of 28 d/ls is mine..,and everything seems to work as expected....installed over B3 and old references were deleted on start-up...

Anything else you expect from reporters ?

Just say....;)

And thanks again mate;)

Beam-ed through your pineal gland via//Android 4.4.3.:p//
[BetterBatteryStats] damian5000:
I thought you meant the android logcat. The issue is that BBS shows nothing in kernel wakelocks.

The screenshots were to show you the phone is not deep sleeping and the kernel keeping the phone awake.

If I took a screenshot with BBS there would be nothing to show.

I will look at the BBS log export options.

Also interesting 'boot' and 'current' are the only options available in the 2nd and 3rd selectable stat options. I mean there's no 'since screen off ' etc..available as selectable.
[BetterBatteryStats] mikeone33:
Just an FYI, I downloaded the latest version and email it to myself but it was detected by gmail as a virus.

Virustotal had 3/50 engines detect a virus

https://www.virustotal.com/en/file/...a2fa7f6064a9b6434e95ee93/analysis/1402244787/

Antivirus	Result	Update

Commtouch	AndroidOS/Systush.A	20140608

F-Prot	AndroidOS/Systush.A	20140608

NANO-Antivirus	Trojan.Dex.CoinMine.cwydae	20140608
[BetterBatteryStats] j1gga84:
Beta 4 is running very well, no problems observed for now, many thanks for update :)

Regards

Sent from my GT-I9100 using german Tapatalk 4
[BetterBatteryStats] Christiancs1969:
Also seeing no problems s5...

Sent from my SM-G900F
[BetterBatteryStats] chamonix:
Safety first: I pulled the file for further investigation.

If any malware specialist reads this please contact me so that I can provide the APK for analysis

Edit: file is back up as additional tests did not confirm
[BetterBatteryStats] mdamaged:
Submit it here: http://anubis.iseclab.org/...make sure and submit after filling out the captcha, it speeds things up a little.

If you ask me, it's a false positive, B3 gave some FPs as well, anubis then showed it as clean, these stupid AV companies and their broken signatures are more of a headache than the malware itself sometimes.
[BetterBatteryStats] mikeone33:
Sorry about the hassle, I normally send apks through gmail for faster installs when I am at work and I have never had one blocked.
[BetterBatteryStats] Karpfenhai:
Next time you are facing this, type this into a terminal emulator:

$su

#ps | grep z

Check whether there is a zombie process, you should see which app had caused it.

I recommend a filesystem check of your storages.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
Thanks! Isubmitted the APK and I guess you were correct, it was most probably a FP. I have scanned it locally as well without findings. File will be up again in a few
[BetterBatteryStats] chamonix:
nvm, I'd rather be precautions than sorry. More tests showed no alarm so I assume it was a false positive.
[BetterBatteryStats] chamonix:
1.16B4 is back up again after the investigation did not confirm
[BetterBatteryStats] jr67:
Sorry for not getting back to you earlier. Both the install and remove zips worked as expected using TWRP. Thanks.
[BetterBatteryStats] jr67:
chamonix, I can't pull a current dump file using Tasker without first opening BBS. If I don't have BBS open when running the task the stats in the dunk file are old. The time and date stamp in the dump file are current but all the stats look to be from the last time I opened BBS. If I have never opened BBS since the last time I rebooted Tasker can't pull a dump file at all.

I'm using the latest beta.
[BetterBatteryStats] jeozme:
Hey guys, I have a concern regarding BBS. I would like to use my amazon coins to buy BBS, so I went to the amazon store and what I found was Battery Saver 2X - Better Battery Stats. The price is 1,99 Euro. I think it is not the same app, but obviously this guy is using the good reputation of two good apps for himself. Even the battery graph (shown in OP pic no. 5) is identical !!!!!! but the name.

That is the link:http://www.amazon.de/Battery-Saver-2X-Better-Stats/dp/B00HNWFT72/ref=sr_1_1?s=mobile-apps&ie=UTF8&qid=1402298296&sr=1-1&keywords=Better+Battery+Stats

So, if I am wrong kindly let me know and I will buy it. But seriously, I think there is someone taking advantage of a great app.

Best!
[BetterBatteryStats] Karpfenhai:
Works flawless so far,I like the count per hour, good idea!

One thing which persists since ages, not a big deal but it's there, if you don't use the spinners the app keeps complaining "Could not load from / to reference" maybe you could suppress the query if from/to is unchecked?

Great work Sven, as usual! [emoji106]

Tapatalked from my Galaxy SII
[BetterBatteryStats] Rajesh G:
BBS Not working in Nexus 4

Hi,

Am using Nexus 4 and on Kitkat 4.4.3.

The app does not work.

Could you please help me with the procedure to fix it?﻿

Regards,

Rajesh
[BetterBatteryStats] chamonix:
I am aware of that app and it's a kang. As BBS is open source there is really nothing I can do about it.

If you want to support my work I'd recommend not buying it.
[BetterBatteryStats] chamonix:
added issue #453

Is that new to b4 or is the problem present in b3 as well?
[BetterBatteryStats] chamonix:
Do stats show at all after that toast message ?
[BetterBatteryStats] chamonix:
Why don't you go to post #1, read the section about how to report bugs and come back with a little more info?
[BetterBatteryStats] snapdesign:
I think the problem is that he is on 4.4.3...and the app is not yet compatible...
[BetterBatteryStats] damian5000:
Thanks for your time Chamonix. Here are logs from a period when the screen was off, but the phone not deep sleeping.

BBS Stats https://drive.google.com/file/d/0B1y5ZqRAxj5LYWY1X0FtcmNrRnJTQ3poMm40YmprallqSWw4/edit?usp=sharing

logcat https://drive.google.com/file/d/0B1y5ZqRAxj5LQmpwaVIyMndGNC1rcUZUMk8wTlQxQlo3T05R/edit?usp=sharing

dmesg https://drive.google.com/file/d/0B1y5ZqRAxj5LT3VsVm9FRG9OalktY2FBSWpzdE5VcUlFdkNj/edit?usp=sharing

BBS JSON https://drive.google.com/file/d/0B1y5ZqRAxj5LT3VsVm9FRG9OalktY2FBSWpzdE5VcUlFdkNj/edit?usp=sharing

Here are images from BBS and a couple of other apps. The Kernel was keeping the phone awake according to GSAM. GSAM, WLD and BBS all show nothing for Kernel Wakelocks. CPU Spy and BBS confirm the phone wasn't deep sleeping during this time.

Only partial wakelocks shown which lasted just a few minutes. I can only infer that the wakelocks aren't being logged or are being logged in a way that isn't standard. This is true for the stock ROM and all custom ROMs for this phone (THL T11 & THL W200S MIUI and stock ROMs)

Images:

https://drive.google.com/file/d/0B1y5ZqRAxj5LT2FlX1J4dGpPRUE/edit?usp=sharing

https://drive.google.com/file/d/0B1y5ZqRAxj5LV0NwbVVSVjdvWU0/edit?usp=sharing

https://drive.google.com/file/d/0B1y5ZqRAxj5LWkRmVkU1Q0lCdWs/edit?usp=sharing

https://drive.google.com/file/d/0B1y5ZqRAxj5LZmN2ZjZ6Ym1mRXM/edit?usp=sharing

https://drive.google.com/file/d/0B1y5ZqRAxj5Ld1M4SnVsWGJDc2s/edit?usp=sharing

https://drive.google.com/file/d/0B1y5ZqRAxj5Ld3drVzhNakg4emc/edit?usp=sharing

Thanks for the time with trying to figure it out. I'm more concerned with what is causing the wakelock and how to fix it, but if the logging for these phones can be fixed as well, that's great. Cheers.
[BetterBatteryStats] Rajesh G:
BBS Not working in Nexus 4

I have attached the logcat, screen shots for your reference.

Hope this helps. Let me know if you need any additional information.

Cheers.
[BetterBatteryStats] Karpfenhai:
Yes they do, nice side effect, the b4 updated the manually as system app installed b3 and set a since boot as fallback even without rebooting, nice trick :)

I don't use the since spinners, but the toast appears from time to time, but I guess you already got my point :)

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
Well you think wrong. BBS was tested on 4.4.3 and runs well
[BetterBatteryStats] chamonix:
Is your phone rooted and if yes have you granted BBS root rights (you need to enable the root features in the advanced prefs) and installed BBS as a system app? this error is due to a change in 4.4+ where google has decided that apps should not be able to access the battery stats anymore.
[BetterBatteryStats] Rajesh G:
BBS Not working in Nexus 4

My phone is not rooted. Does that mean BBS will not work unless rooted? :crying:
[BetterBatteryStats] diminou91:
Only if you're in 4.4+. But it should work otherwise without being rooted. You just miss some (pretty useful) options.
[BetterBatteryStats] chamonix:
1.16B5 is up with more fixes and some visual enhancements. Let me know what you think!

Edit: APK was brocken, recompiled and uploaded again....
[BetterBatteryStats] chamonix:
Without root you will have very limited functionality but BBS still should work. I will reject root and do some testing.
[BetterBatteryStats] p50kombi:
Not working on latest ARHD M8.

get the "Unfortunately, BetterBatteryStats has stopped." notification
[BetterBatteryStats] j1gga84:
+1

Same here on SlimSaber

Regards

Sent from my GT-I9100 using german Tapatalk 4
[BetterBatteryStats] chamonix:
A logcat or it didn't happen
[BetterBatteryStats] p50kombi:
Then I guess it didn't happen

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[BetterBatteryStats] sidki:
Same here on Galaxy S4 KitKat stock ROM.

I hope this is what you need.
[BetterBatteryStats] vinsbelmar:
Same problem here. Last verion crashes

Enviado desde mi Nexus 5 mediante Tapatalk
[BetterBatteryStats] chamonix:
Thanks. Looks like a broken apk with a lot of unrelated class error. Looking into it.
[BetterBatteryStats] hitekredneck:
Crashes on CM11 as well.
[BetterBatteryStats] arsal_93:
In this image "No Network Data" and "Unknown Signal" are at 100 % , is this Normal ? I don't use Data Network at all but when I do it starts decreasing

And this is evident from this pic

Samsung S3 (Resurrection Rom Remix 4.4 with Boeffla Omni Kernel)
[BetterBatteryStats] fbf2201:
Another log with the startup crash of 1.16B5.

http://pastebin.com/FQ60TShW

It's somewhere in between of all those touch_boost messages. [emoji6]
[BetterBatteryStats] chamonix:
Sorry for the trouble, the package was brocken. Compiled again and did a quick regression test.

1.16B5 reloaded
[BetterBatteryStats] chamonix:
When Wifi is on Android always reports that "network data" is off because it really is
[BetterBatteryStats] fbf2201:
Nevermind - no trouble...

Nobody forced me to install the developer build. [emoji6]
[BetterBatteryStats] arsal_93:
But why is it showing that Unkown or No Network is 100 % when it's supposed to be 0% because my WiFi is turned on ?

Samsung S3 (Resurrection Rom Remix 4.4 with Boeffla Omni Kernel)
[BetterBatteryStats] chamonix:
It shows network data100% off and you have wifi 100% on. This is as android was designed
[BetterBatteryStats] chamonix:
Ok, thanks for giving me the whole picture. As the missing kernel wakelocks are consistentely missing on all apps and not only BBS there are a few options to check:

1. Check if you have a file named /proc/wakelocks and if yes report what permissions it has (the file may exist but perms broken): see http://elinux.org/Android_Power_Management#Sample_.27cat_.2Fproc.2Fwakelocks.27_output

2. if there is no such file check your favorite ROM/Kernel thread to see if by chance kernel wakelocks have not been removed from the kernel (yes, there are a few kernel devs that do that)

We'll take it from there once we have more info
[BetterBatteryStats] damian5000:
I checked in /proc/ but do not see a file or folder named wakelocks .

This is Aliyun based kernel. It's an Android fork from China.

So this is just something to accept...that the phone will always have a deep sleep issue after using it for awhile?

It will stay deep sleeping for many hours... Even with WiFi on. Then using it for awhile triggers the wakelock and it never sleeps again until reboot.

It's a shame as the phone is otherwise excellent for the price.
[BetterBatteryStats] pikachukaki:
Nexus 5 latest cm11 nightly 4.4.3 bbs and settings crashed when pressing appops and permissions
[BetterBatteryStats] chamonix:
the only option that I see would be to contact the dev to find out for what reason the kernel wakelocks are being removed (these are standard in any Linux kernel)
[BetterBatteryStats] chamonix:
added #457
[BetterBatteryStats] Karpfenhai:
The circles are way to big, the don't adjust yet like height for graph did.

Tapatalked from my Galaxy SII
[BetterBatteryStats] fbf2201:
I prefer the bars, since it makes it easier to compare the different lines with just a brief look.
[BetterBatteryStats] p50kombi:
Same with me.

Preferred bars..

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[BetterBatteryStats] jr67:
Sorry for the delay, I reinstalled b3 to test if it worked after a reboot. On b3 Tasker can successfully pull a current dump file as long as I opened BBS at least once after a reboot. Unlike b4, Tasker can pull a dump file after a reboot with out first opening BBS but the stats in the file are all empty/blank.
[BetterBatteryStats] chamonix:
Would you mind testing B5? I have tweaked the cache in B4 and reverted part of that for the tasker plugin in B5
[BetterBatteryStats] chamonix:
I guess I will have to try different densities and will also consider giving the choice between the one or the other layout.
[BetterBatteryStats] guido_glx:
I like circles and events per hour. Although graphics could be improved, I think it's a nice improvement! Thank you [MENTION=1330150]chamonix[/MENTION]

Enviado desde mi GT-I9100 mediante Tapatalk
[BetterBatteryStats] jr67:
Issue fixed with B5. It works perfectly now. Thank you.
[BetterBatteryStats] Ok_Kaleidoscope5109:
Does anyone know what causes this bho wake lock?

I have Google+ sync turned off and in the app itself I also disabled contact sync and improve suggestions. What the hell Google? You're getting worse than Facebook...
[BetterBatteryStats] gaich:
As for me, circles look great, refreshing the UI.
[BetterBatteryStats] Dark_Avenger:
Hi [MENTION=1330150]chamonix[/MENTION],

I'm using 1.6B5 as system app in KK 4.4.2. There is a difference between the percents shown in "Ratio:" text and the new circle indicator. For example:

Deep Sleep Ratio: 78.1% -> circle 73%

Is this normal? Are there any difference (meaning) between the two?
[BetterBatteryStats] JoeFCaputo113:
I can't seem to get BetterBatteryStats to work properly on my S5. I have root but whenever I try to press "convert to system app" I get a toast that says "Failed" and then the app barely gives me any info regarding battery stats. Also I grant it SuperSU permission but then for some stats it'll say "this stat requires root". Help please!
[BetterBatteryStats] Karpfenhai:
The dev knows about that limitation and provided a zip to fix it a few pages back..

But, the easiest way is to push the apk manually to /system/priv-app/

Set permission to 644, owner / group has to be root.

Reboot, that's it.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] AssToast:
Not sure what it is but I had it but now I don't, give it a week or two
[BetterBatteryStats] Ok_Kaleidoscope5109:
I still have it quite a bit. It's been going on for a month now at least. The annoying part is Google+ has been switched off the whole time. No sync, nothing. I remember this being a huge complaint about Facebook back in the day, but Google+ is worse if anything else.
[BetterBatteryStats] chamonix:
from the facts we know a relation with an app is improbable imho. I'd rather bet on a driver problem. I have checked the dmesg to see if I could find a clue there but didn't find anything of value
[BetterBatteryStats] chamonix:
working on that as I discovered that the other percentages are off
[BetterBatteryStats] erkan07:
Amazing.. Pro thaks for sharing :)
[BetterBatteryStats] djtiko:
Hey guys,

I recently changed my phone provider to wind mobile here in Canada and I don't have the best service. But I've also changed my rom and kernel and I can't figure out why my battery is dying. I used to get 6 to 8 hours of screen time a day and now I get about 4.

My idle drain seems to be okay. Haven't noticed anything too bad so I'm posting a log from my usage today.

Thanks
[BetterBatteryStats] kzflame:
anyone can help me identify what causing this wakelock? Keep waking up my phone making the battery draining.. Same goes for qpnp_soc_wake. help
[BetterBatteryStats] aitkja:
Hey guys / chamonix. Has anyone seen a wakelock called "exynos5-fb-1" before? It is comming up alot along with sec-battery-monitor...

Kind Regards.
[BetterBatteryStats] Mons1990:
[MENTION=1330150]chamonix[/MENTION] GREAT app! Nothing similar on the store and the price is absolutely honest. I use it from 6 months and I'm very satisfied.

Only a question: the hotplug governor can turn off a core when not needed, how this period is considered in CPU state? At the frequency of the 1st core or his half?

Inviato dal mio Sony Xperia Sole attraverso l'app ufficiale xda-developers
[BetterBatteryStats] matrixzone:
Any ideas which app can cause this wakelock. I have already greenified Google Maps, this looks something different
[BetterBatteryStats] shogun160:
Seems like its this app: (but couldn't finde it in play store - u know best what apps are installed on your device)

http://www.locationlabs.com/sparkle/

uninstall or disable snyc should solve the porblem

Edit: Do you have "Safely Go" installed? Its developed by the same company and could also be the app causing these wakelocks
[BetterBatteryStats] d.kozzer:
Ever since I updated from 4.4.2 to 4.4.3 on my Nexus 5, I've had significantly higher battery drain even though the wakelocks seem to be under control. No usage pattern has changed, and the basic software setup is unchanged (stock ROM, xposed, gravitybox, franco.Kernel). I first dirty flashed, but since there was the drain, I wiped user data & caches several times, re-flashed the ROM and the drain is still there. I then re-flashed franco.Kernel, and the drain was still there. I turned location services off, but the drain is still there. So here's my BBS file with my normal evening/overnight usage pattern, maybe someone here can help me figure this out before I take the next step and go with a full factory image reset from Google's android system image which is basically the nuclear option (which may not solve the drain anyway)

Before the update I would wake up to 90+% battery left. Now it's ~50%.

Thanks!
[BetterBatteryStats] Greggd:
I have an S4 running 4.4.3 and am having the same problem. I tried what you have outlined here (thank you) but keep getting "BetterBatteryStats has stopped error. I've been trying this for days and can't get it to run.
[BetterBatteryStats] chamonix:
I recommend that you enable the root features in the advanced preferences so that you can see the alarms. from what I see in the wakelock counts location from the Google Play services will be the problem, caused either by Google now or another location hungry services from Google.

I also recommend that you double check your location settings and you wifi sleep policy as both are drivers for how the fused location provider behaves.
[BetterBatteryStats] chamonix:
Please provide a logcat of the crash condition and details on what version you use. the The instructions were on installing bbs as system app but you have another problem.
[BetterBatteryStats] d.kozzer:
Thanks. I'll enable the root features and see what they say. The "always scanning" for wifi is turned off, and my location is set to "battery saving". I do have google now running, but I've always had it running, and all of my location settings are the same as before.
[BetterBatteryStats] godlesplay:
these circles are little too big IMO
[BetterBatteryStats] Osid:
BetterBatteryStats 1.16B5. Android 4.4.3

Root enabled. Installed as system app.

Logcat as attachment

Click on icon of an app.

Select Permissions tab

BBS throws a NoClassDefFound Exception related to ActionBarSherlock and tab isn't shown.

In DashClock settings when I select settings of BBS extensions Activity isn't shown.

Invoking manually com.askven.betterbatterystats.DashClockSettingsActivity using am command for example, shows it correctly and settings are used in BBS extension.
[BetterBatteryStats] Orphee:
Hello, is there a way to remove the first screen that ask to install bbs in system? I have xposed module to enable bbs and cm 11 too. So an option to disable it would be great.

Thank you
[BetterBatteryStats] nhakobian:
I just wanted to say a quick thank your for your app.

This was one of the first apps I came across when I started messing with Android devices about 2.5 years ago. It helped me learn about how some internal things are implemented. Unfortunately, I never stopped by and said thanks until now.
[BetterBatteryStats] chamonix:
I don't have the exposed framework installed so I need a little help. What does the screen say on top about the two perms.

The design is that the screen shall only be displayed if the perms are not available, eg when the system app is installed. I would assume that the exposed module also ensures that the perms are granted so the screen should not pop up. Obviously either I assumed wrong or there is a bug