yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
I tested on current build (unreleased) and both issues are solved. These problems were caused by a bug in ADT that forced me to change the build workflow
[BetterBatteryStats] mdamaged:
If it's of any help, this would be the module I think he's speaking about: http://xdaforums.com/xposed/modules/xposed-module-enable-batterystats-kitkat-t2519744

I used to use it for this app until you made it work without it, really unless he has other apps which need this module in place, he should remove the module and use your app the way you intended.
[BetterBatteryStats] Orphee:
Hello, does it help you ? : http://xdaforums.com/xposed/modules/xposed-module-enable-batterystats-kitkat-t2519744

Currently, the 2 perms are :

BATTERY_STATS not granted

DUMP not granted

Thanks
[BetterBatteryStats] Perseus:
For what its worth, if I keep pressing back button repeatedly, I can go back to normal app. If I had the app manually installed as a System app, then of course the screen does not appear.

Makes me think the Xposed module didn't set up permissions correctly. as [MENTION=5490227]mdamaged[/MENTION] said, better get rid of the module.
[BetterBatteryStats] Orphee:
I would prefer the way it was working before because I'm on nighlty builds, so I flash quite often... With a system app, it would be deleted each time I flash a nightly... or I'll have to make a flashable zip file to restore it after every flash...
[BetterBatteryStats] mdamaged:
You can use cyandelta, and example of a user doing that with xposed can be found here: http://xdaforums.com/showpost.php?p=51155920&postcount=9729
[BetterBatteryStats] Perseus:
I do believe Titanium Backup can make a flashable File.
[BetterBatteryStats] an0n981:
You can have mine. https://mega.co.nz/#!Vo4GXaAb!W1ahg1mXZr6KlaoyhuVGuJw9aOk3EO6VDOy5bARdTlA
[BetterBatteryStats] jr67:
If your rom supports it, you can edit the scripts (i.e., 50-cm.sh) in /setting/addon.d/ so that the BBS apk in priv-app is automatically restored after every flash.
[BetterBatteryStats] chamonix:
that would be the problem. If the Xposed module gives access but does not grant the perms bbs works as designed as it checks if the app has these perms. The only way to deal with that situation would be to offer a preference to disable the check. It is a dirty workaround but it takes me less time to implement that that to reply ☺

added #460
[BetterBatteryStats] Greggd:
Thank you so much it's finally working for me again using this on 4.4.3.
[BetterBatteryStats] borgez:
[MENTION=1330150]chamonix[/MENTION]

thanks for this great app, but since I update to 4.4.3 the BetterDashclock don't refresh it's problem with BetterDashClock or the BBS?

can you fix?

thank you so much
[BetterBatteryStats] Karpfenhai:
Hmm, works for me..

Plus, it's also updating:

Tapatalked from my Galaxy SII
[BetterBatteryStats] boscos:
Timeservice wakelock

I just wanted to post this because I had an annoying wake lock called timeservice. The problem with this wake lock is that there is no app name so you don't know what's causing it. Fortunately I was able to point it to easysms (Pansi sms). The moment I disabled it the wake lock vanished. So greenify the application and set it to auto hibernate and you're done!
[BetterBatteryStats] guido_glx:
In my case, it doesn't show drain per hour after a reboot. You need to plug and unplug to get it to work again.

Enviado desde mi GT-I9100 mediante Tapatalk
[BetterBatteryStats] Orphee:
Hi, 1.16b5 don't show anything on kitkat with xposed module in other menu.

And i have a fc on process menu.

1. 15 is working without any problem so i back on 1.15.

Thank you anyway :)
[BetterBatteryStats] -sandro-:
Can someone help me understand the reason for battery drain while on standby with 3g data on? In particular I'm using a Galaxy S4, with Google Edition ROMs I get a higher drain compared to CM11/AOSP. No difference at all while on WIFI. I did 4h test with two different ROMs (made by the same dev btw) and both running the same apps, system configuration and kernel. It would useful to know what actually uses the POWER cause the wakelocks in some occasions are not the cause of any drain.

https://www.dropbox.com/s/6cnnq8zqqyduigp/GE.txt

https://www.dropbox.com/s/ilxnmp5bpyeb7c2/CM11.txt
[BetterBatteryStats] chamonix:
1.16B6 is up with some fixes and improvements. Enjoy!
[BetterBatteryStats] :
thanks for the update :)

there's something not working though. it seems that bbs is not able to get permission from the xposed module (it still shows not granted, even after activating the module,rebooting, and completely reinstalling bbs)
[BetterBatteryStats] Orphee:
Did something changed on "Other screen" between 1.15 and 1.16b ?

On 1.15 I have stuff like Screen On, Wifi On, Wifi Running, Deep sleep...

On 1.16b5/6 the screen is empty, nothing appears, even after some time.

Also, maybe I'm wrong but Partial wakelocks shows all stuffs at 0%. I had to disable the filter 0% to see them.

Using Xposed module on 4.4, disabled new system option

Everything is working fine wirh 1.15

Edit : 1.16b tell me alarm needs root 100%. But I have root...
[BetterBatteryStats] borgez:
I'm talking about BetterDashClock (paid app), in simple DashClock it works but in BetterDashClock doesn't since I update to 4.4.3, but i think isn't BBS problem because like I said in DashClock works fine
[BetterBatteryStats] Karpfenhai:
Thx Sven, the circles do look way better this time and the % is congruent now, but.. still pixelated and to big, is it to hard to implement a choice like for graph bars?

Or is it still WIP?

Thx for your efforts!

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
on what device / density does this happen? I don't understand the Pixelmator part as there is no scaling involved so I guess at need to test.
[BetterBatteryStats] Karpfenhai:
See yourself and compare with the fonts:

Device below @218 dpi, which is native for the display.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] DirkStorck:
Hi.I would need some help please...I have used your app ony my S3 and now I use it on my S5. if I try to make a custom reference on my S5 it doesn't work :( It's not created.

EDIT: Ok I have installed 1.16.0.0_B6 and now it works! :)
[BetterBatteryStats] ASRock86Cro:
move-copy
[BetterBatteryStats] chamonix:
Well I learned something about canvas, painting and auto_aliasing last night. Seems a lot better in B7 in my sgs2. Will push in a few.
[BetterBatteryStats] chamonix:
1.16B7 is up, hopefully resolving the pixelated pie gauges for everyone
[BetterBatteryStats] Karpfenhai:
Yay, looks like you did it[emoji106]

Excellent!

Tapatalked from my Galaxy SII
[BetterBatteryStats] Robshr:
Do you have to calibrate the app or something because I fully charged my g2 last night and unplugged it at 12:00am and woke up this morning at 6 :30 now to my calculations that's 6 and a half hours since unplugged but better battery stats says it only been unplugged for 3 hours I would attach a screen shot but for some reason this website won't allow me to I click on download attachment from computer where I put the screen shot and it does nothing and tried uploading from Dropbox but keep getting not a valid image file when it's a jpeg at only 157 KBS but anyway if some could help to get accurate results with better battery stats that would be greatly appreciated thanks

Well here's the link to the screen shot. https://www.dropbox.com/s/jgcky4hi022ualw/screen.jpg
[BetterBatteryStats] chamonix:
Was BBS installed at the point in time you unplugged your phone? the only reason for this discrepancy that comes to my mind is if you have installed BBS after unplug because than the reference "unplugged" would have been create at that point in time
[BetterBatteryStats] Robshr:
No I've had it installed for awhile
[BetterBatteryStats] chamonix:
if you are using any power saving app like greenify make sure bbs is whitelisted so that it can save the reference upon events.
[BetterBatteryStats] Robshr:
Using greenify but it is white listed the weird thing is when I go to boot instead of since unplugged is shows at least close to the right amount of time and it hasn't been rebooted since yesterday morning and like I said I unplugged it right before I went to bed because it was fully charged and that was at midnight
[BetterBatteryStats] BTT8:
How do I decrease my alarm wakeup activity detection wakelock? See attached.
[BetterBatteryStats] mdamaged:
Recharge device, unplug, then let sit idle for 4 hours or so, and then post a dump.
[BetterBatteryStats] godlesplay:
What is wrong?
[BetterBatteryStats] Perseus:
Hit Refresh if that doesn't help, reboot again. Perhaps it will click this time. This happens sometimes.
[BetterBatteryStats] godlesplay:
I clicked refresh and rebooted many times
[BetterBatteryStats] Perseus:
Plug the phone in. Reboot while on Charge then unplug.
[BetterBatteryStats] MegaSharkXDA:
i9100 awful battery life CM11

Hi,

I can’t say I’m impressed at all with the SGS2 battery life running CM11 M7 (KitKat 4.4.2). Quite often the battery won’t last through the day (luckily I can charge it at work, otherwise it wouldn’t even be bearable as a phone).

My crappy Sony Xperia J (JB) I had for a couple of weeks as a replacement could easily reach the end of the day with 70% charge still left when I plugged it in at night.

Android battery stats always show Android System and Android OS as the main offenders (around 20% - 25% each), above Screen usage, Voice calls, Mobile standby...

BetterBatteryStats tells me the phone is in the Deep Sleep most of the time - please take a look at the attached file.

Here’s what I have already tried:

Disabled location services

Disabled Google Now

Disabled Google+ Auto-backup

Opt out of interest-based ads

Disabled back up data to Google servers

Disabled “Android Device Manager” as Device Administrator

Uninstalled all updates to Google Play Services

Disabled automatic updates from the Play Store

Disabled Mobile Data Limit

Disabled Automatic Date/Time updating

Uninstalled Lookout Antivirus

Uninstalled Viber

Uninstalled Skype

Rebooting the phone before connecting the charger

Rebooting the phone immediately after disconnecting the charger

, all to no result...
[BetterBatteryStats] Perseus:
Outlook.com and Facebook are the Top reasons for keeping your phone awake. There are quiet a few other reasons as well. But it is difficult to distinguish. If you post an Idle Log possibly overnight then I can help further.
[BetterBatteryStats] alxdadev:
How about to change the thread subject to the current version :thumbup: ;)
[BetterBatteryStats] chamonix:
It will be changed when I start with the release candidates
[BetterBatteryStats] MegaSharkXDA:
Yesterday night I set Privacy Guard for Google Play Services after uninstalling all updates to Google related apps/services (I'm not sure which version of GApps I'm currently running).

I've also prevented Outlook and Facebook from waking up the device and keeping it awake.

Here's a screenshot from today's battery usage (first few hours of the day, screen always off, connected to car Bluetooth for a few minutes).
[BetterBatteryStats] jererc:
The app is great! Nice job.

I now have more than 24 hours battery life (10-15 before) on my HTC M8 with all the services I need up and running.
[BetterBatteryStats] Perseus:
Looking much better. Can you use K9 Mail instead of Stock Email client ? It allows for Pull instead of Push. Facebook is controlled but Facebook Messenger is not.

Please reboot anytime you see deleted_wakelocks entry under Kernel Wakelocks. They are a drain you can avoid easily. If you are using Privacy Guard to block wakelocks, then such deleted wakelocks will appear not to mention some weird behavior by those apps you blocked.
[BetterBatteryStats] chamonix:
I just wanted to emphasize on one aspect. I see a negative tendency if the belief that by preventing apps to claim wakelocks helps reducing drain.

To be really clear on that: this technique is worse than an band-aid. It is like taking pain killers after a sport injury and keep on exercising. This will most probably result in damages (more drain) cause by erratic behavior.

One simple example:

- an alarm is set to schedule some data retrieval

- the data retrieval happens in holding a wakelock, trying to get data hard enough but not too hard, and finally releasing the wakelock

preventing the app to hold a wakelock will cause the transfer to get interrupted so the app will try again and again. These retries will activate the radio, establish a connection over and over.

Wakelocks are a method used to fulfill a logic and preventing the app to use that method will cause the logic to fail.
[BetterBatteryStats] Perseus:
[MENTION=3378704]MegaSharkXDA[/MENTION] Please note [MENTION=1330150]chamonix[/MENTION]'s Response.

[MENTION=1330150]chamonix[/MENTION], I have always disliked Greenify app for this very reson. I have time and again tried to explain to the users that preventing Wakelocks is bad. But it seems like "Wakelock Killers" are the next Big thing like Task Killers used to be. (Or Seeder for that matter. I know I degress)
[BetterBatteryStats] :
that's not quite correct. Greenify actually stops the app totally from running. meaning that it won't be able to constantly create alarms that won't run because of wakelock blocking.

still, greenify and the likes can potentially cause issues, just not the way you mentioned ;)
[BetterBatteryStats] chamonix:
Please note we were talking about wakelocks (symptoms) and not alarms (causes) in the earlier discussion. As you correctly noted greenify helps adressing poor design at the cause where many other apps try (and fail) at healing the symptoms. Placebo at least have the advantage of not having any disadvantages, what is not the case of "wakelock-killers".

btw and if you allow the OT: as far as I understood greenify follows a new idea in trying to "align" alarms in such a way that once the phone woke up as many apps as possible use that slot instead of causing multiple wakeups near to each other. It should be noted that a developer has the possibility to request "fuzzy" alarms that were designed for that exact purpose. Unfortunately it seems that many "lazy" devs do not spend enough time understanding the platform they are developing for in terms of energy footprint. One could also argue that the platform is too flexible and gives dev too much power (of choice) without being aware of the responsibilities they carry.

Personally I am in favor of the first (maximum flexibility) and it is my hope that many users use BBS to report issues regarding alarms and wakelocks to their favorite devs to help them reduce their energy footprint. In that line of thought what worries me is that google seems to think that users (and devs) should not have access to that kind of information (see my rant about google removing the BATTERY_STATS permissions). I'm not pointing my finger but maybe google thinks that too much transparency is not good after all (especially if their own code is in the line of fire).

</OT>
[BetterBatteryStats] :
I just wanted to point it out, because I personally admire oasisfeng's work, and don't like it when it's misinterpreted. I also of course admire your work here as well. BBS and Greenify are the two apps I always make sure are there on any device I get my hands on, even if it's not mine ;)

Yup, oasisfeng, developer of Greenify, is now building this feature into Greenify. He calls it coalescence of wakelocks, or something similiar (very fancy name ;) )

For the rest, I agree with you on every point :), especially the fact that some devs are simply too lazy! (faule Leute gibts überall, auch wo die nicht sein sollen! Lazy people are everywhere, even where they don't belong! :p)

yeah Google kind of dropped the ball on this. One thing is obvious about Google's actions from what I see: They want the equation Android=Google to be true. They started with replacing open sourced with closed source apps, and now they're limiting access to services and parts of the system they deem "not relevant to users". Whether that's a good or a bad thing for Android, we 'll have to see. Let's hope we don't get another Apple on our hands soon :(
[BetterBatteryStats] TA123:
I wonder what has just killed my battery. It was 36% and got completely flat in 10-15min. Could anyone have a look at the dump file?
[BetterBatteryStats] Perseus:
that's a very heavy usage. Very difficult to figure out the bad guys. It will really help if you can post an Idle log preferably overnight.

What I do see is that, you have heavy usage of your Location Service. Can you turn that off ? Facebook has been the worst offender. Can you switch to their Mobile Website instead ? Search for [MENTION=1554594]Karpe[/MENTION]fnhai's Mod on this thread. You will need to apply that.
[BetterBatteryStats] Titchener17:
Hey, not sure if this is too long of a dump to analyze and give pointers or not, but thank yall for all that you do to make people's battery scenarios better in major ways !

Reading the thread , just now saw your k9 suggestion and installed a tbo inverted dual themed version so most of this is with gmail installed, although trying to do the suggested mods. Thank yall again very much and pardon if something is !

https://www.dropbox.com/s/zisunhzgz1bx35l/BetterBatteryStats-2014-06-17_193724414.txt
[BetterBatteryStats] Perseus:
For K9 make sure to set to Pull rather than Push.

You seem to have Signal issues. roughly 11 minutes the phone spent getting a tower lock. If you have

a custom Rom then go to Dialer settings. In there you'd see Lookup providers. Change them all to whitepages where possible. You are on a chatty Wireless device. If possible, please turn off IPV6 on your phone and set a fixed IP for your phone on the wireless. After all this is done, please reboot and then leave the phone idle for about 5 to 6 hours. Grab another log thereafter.
[BetterBatteryStats] ka81:
Hello!

HTC One Dual SIM 802w

fw - ViperRom 1.0.8

since a few days battery life became very short for some reason.

As always before I got a lot of software that synchronizes, updating , etc.. But it never caused any problem to battery life.

So, here's my dump. I hope I made it correctly..

Begging you to help me find the cause.

Thank you anyway!!
[BetterBatteryStats] TA123:
Interestingly the usage was fine until the last 15-20 min, when the battery v=charge just dropped from 36% to zero. I could even finish posting the dump file. The upper part of the screen got quite hot although I was not doing anything heavy, just checking Twitter on FalconPro. Not sure if the overnight usage would help to identify the rogue as it is usually quite standard. All that started after the 4.4.3 upgrade. Not sure what's gone wrong.
[BetterBatteryStats] godlesplay:
still same
[BetterBatteryStats] MegaSharkXDA:
I've read all the comments below warning me from the terrors of denying permissions but I'm definitely seeing an improvement and it's not placebo effect... of course I'll have to live with some limitations (Google Play not updating automatically is definitely not a limitation for me).

I could use K9 but I would prefer to stick with Stock Email client - I'm pretty sure mine is set to Pull, are you sure it is Push only?

I see that Tasker is now the top creator of wakelocks but I'm fine with it. I don't as of today see that many wakelocks from Facebook Messenger.

I still see a lot of deleted wakelocks. I'll create a Tasker profile to reboot the phone automatically after the phone is unplugged if I'm at home and fully charged and let you know.

I'm still worried with Android Services and Android OS at the top of the battery consumption table...
[BetterBatteryStats] Perseus:
The dump is from 4 hours of heavy usage. Difficult to pin down an issue. I see Facebook and its messenger as one of the culprits. Please apply the @Karpfenhai 's Mod I suggested.

Could be your battery is going bad. The heating indicates overloading. Check your Governor settings.

Please Wipe the Data for BBS then reboot.

2 hours of Log is really not much use. Did you apply the Mod I had suggested ?
[BetterBatteryStats] ka81:
hmm.. where to get it? :)
[BetterBatteryStats] Perseus:
Search this thread.
[BetterBatteryStats] MegaSharkXDA:
What Mod?
[BetterBatteryStats] Perseus:
[MENTION=4355376]Karpfenhai[/MENTION] 's Mod search this thread for the details.
[BetterBatteryStats] u81:
Samsung Galaxy Spica- GT-i5700 not sleeping with wifi on.

Hello everyone.

Here are the BBS logs from my Samsung Galaxy Spica GT-i5700. Recently changed the battery i.e. 1500 mah.

But the battery dies within 10 hours with wifi, sync, viber, Sipdroid and messaging on android 2.3.7

All help would be much appreciated.

The phone doesn't enter deep sleep at all with wifi enabled. However, it sleeps just fine with wifi disabled.

As the phone ran very little ram, only a very few apps have been installed so, the culprits have to be a select few.

Eagerly awaiting assistance.

Thanks in anticipation.
[BetterBatteryStats] Perseus:
Please go to Settings > Wireless >Advanced Change the Setting Wireless Always On during Sleep. Set it to never. Also turn off "Scanning Always Available" while you are there. Please turn off Google Location Reporting. This can be access from under Location services or from the Google settings App.

You either have not made BBS as a System App or have not enabled Root Features of the App. Please do so and Grant Root. Reboot afterwards. This will help us know the Alarms that are keeping your phone awake in the next log.

Do please post another Log after leaving the phone Idle overnight.
[BetterBatteryStats] u81:
[MENTION=236863]perseus[/MENTION]- Hello and many thanks for both the prompt and kind response.

I'm no expert, but I'm pretty positive that BBS is granted root permissions. In any case, to be sure I uninstalled the app and then installed a new version and sure enough the root permissions prompt came up to which i granted permission. I also ticked add debug info to logcat.

Then I went into the preferences and installed as a root app. There is said " Battery Stats granted Dump not granted" I didn't know if this was correct or not, so I tried uninstalling it as system app but that failed.

So, could you kindly answer the following for me:

Do you think I've set up BBS correctly?

My wife's phone enters deep sleep with wifi and sync on without any issues- Is there any specific reason why you'd advised me to have the wifi turned off

I eagerly await your kind response before i can start the next discharge cycle for log generation.

Many thanks again.
[BetterBatteryStats] Perseus:
The part where you got the Toast notification is why we do not See Alarms and Network Traffic in your Dump. I am only looking at the BBS Text Log and not at Logcat. The former helps pin down your wakelock issues, the latter does not. Go to Settings > Advanced and turn on the Enable Root features Checkbox. Reboot afterwards.

I do not know the case with your wife's phone. But a lot depends on usage pattern, wireless connection and such. In your case I see Google Play Service is trying to Call Mothership (Google Server) for reasons unknown. This is using your Wireless which is on. The Alarm and Network Data would have given a clue.

If Wireless stays off, there's a good chance the phone will sleep like a baby. We can always change it to always when we identify the issue. Please apply the other suggestion I had mentioned in the prior post then reboot and post a new Idle Log.
[BetterBatteryStats] TA123:
Not sure if I can change the governor on a stock kernel. Looking at the graph I've got a feeling that it's something to do with WiFi/3G as it happens while I'm on the train and you can see that the 3G connection is bad while WiFi was very active (see attached). Don't know what I can do about it though.
[BetterBatteryStats] Perseus:
Can you post me an Idle Log from Overnight ? It can also be from the period when you are on train and have bad signal. Just make sure to reboot beforehand and turn off Wireless when you don't have Wireless network.
[BetterBatteryStats] chamonix:
looking at the feedback the latest beta seems stable and I would start merging and going into RC mode. Does anyone have objections?