yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] finistere:
Not quite. The version in the Playstore is 2.0.x.

If you want to install the 2.1b from the first post, download the apk, install it, open the app, install as system app, reboot. After the reboot install the apk again (!), open the app, grant root as necessary, be happy. :)

Cheers
[BetterBatteryStats] gregferns:
THanks i didnt know xda version was upgraded....
[BetterBatteryStats] maxed4901:
[MENTION=1330150]chamonix[/MENTION] what an amazing app.. Late in.. I read about previously also but didn't install untill now. M on cm12s build 213 (latest) rooted SuperSu2.46 twrp latest for bacon. Boeffla kernel 3 beta. .

After install, it asked me install system or recovery method n chose system method. Installed and rebooted. Granted SU. Selinux is on strict mode in boeffla kernel.. Work great. I get a small motif which says "fall back since boot" which m hoping is normal.. Looking forward to some troubleshooting. And thank you for pitting up an official xda app version.
[BetterBatteryStats] zetret:
You're wrong. CAPS DON'T HELP.

---------- Post added at 03:03 AM ---------- Previous post was at 03:02 AM ----------

Yes, installing the second time strangely worked.
[BetterBatteryStats] maxed4901:
[MENTION=6872511]zetret[/MENTION] - what caps dont work??????
[BetterBatteryStats] zetret:
That was targeted at gregferns, who provided the wrong answer and used caps to show that he is more intelligent than me. It was done using the "Quick Reply" option, which non-intuitively does not include the name of the person to whom I was targeting the reply.
[BetterBatteryStats] maxed4901:
true

agree withyou. kind of makes the thread longer also.. if we include text then it shows the whole of writing and takes lot of space.. specially some writers turned users:laugh:!
[BetterBatteryStats] gregferns:
Actually there was no intention of showing that i'm more intelligent than anybody.....

That's the method i use and that method also has been mentioned in this thread....

My only error was that i didnt know the OP was updated with BETA apks,,, and i am still using the flashable recovery zip (as it helps while flashing roms) and then i just go and update from the play store and install it again and it works fine...
[BetterBatteryStats] garthybarthy:
Thanks for the great app, glad I discovered the updated version as I have problems with my order on the play store version.
[BetterBatteryStats] pongup:
how to uninstall BBS when it was installed as system apps

I cannot uninstall BBS. My phone is KK4.4 rooted. When I installed it it asked me to install as a system app, which I did. But now I cannot find a way to uninstall it. Typical uninstall is not allowed because it is a system app. I used SystemAppRemover but it also failed to remove it. Please suggest.
[BetterBatteryStats] FernBch:
In settings>Advanced tap system app. In the next screen is an option to uninstall system app.
[BetterBatteryStats] skivnit:
Keep having gpsd wakelocks even I have location off and no app is requesting location access

Seems like gpsd is related to ril, it gets activated when a phone call is made, no idea what trigged it in the first place. Never had it

Sent from my SM-G925F
[BetterBatteryStats] Anupam987:
Is it Really work?
[BetterBatteryStats] Joy Bangla:
is there a way to keep "unplugged" values after a reboot?
[BetterBatteryStats] Dan33185:
What's going on here? 9% an hour seems really excessive.
[BetterBatteryStats] mdamaged:
You appear to be actively using the device. Please charge thew device, and let it sit idle for 3-4 hours, then repost a dump.
[BetterBatteryStats] NickosD:
Tried installing as system app, and using the zip. Both cases won't work. I still get the screen to do something of the above. How to make it work?

Sent from my bacon!!!!!
[BetterBatteryStats] FernBch:
Try this:

Install app

Use a file explorer such as Root Explorer and set /system to R/W. Then use the home key, Do Not Exit the file explorer app as /system will reset to R/O.

Then try to install as /system app.

Reboot

After reboot if you see a screen saying anything about the "companion app", install BBS a second time.
[BetterBatteryStats] Dan33185:
1.0% now...still would like to make sure there isn't anything I should change though.
[BetterBatteryStats] Hoomey:
Do I have to try it the .zip way or could I just do the R/W thing and install it on top (first install as system app try did not work) or first uninstall, reinstall, set to R/W and then try as system app again ?
[BetterBatteryStats] FernBch:
No need for the zip. I use Root Explorer (personal preference) and just followed those steps. For some reason some apps wouldn't install to /system because it is read only. Changing it to read/write would allow it to install. I just installed the APK by the usual method both times and it worked fine. It did take a couple tries to figure out that I had to change /system to R/W and not close Root Explorer (just hit the home key) so /system would stay set as R/W while I was installing as a system app.

Hope this makes sense.
[BetterBatteryStats] mdamaged:
Nope, all looks good, enjoy your device.

When you use apps and service actively battery drain will increase, this is dependent on app usage, the types of user apps installed, and services used by said apps. If you want a lower battery drain, then uninstall or freeze apps, you can look into a kernel which has the ability to throttle down with a governor combined with a per app profile for cpu speed, all that is outside the scope of this thread though.
[BetterBatteryStats] Lownita:
Google play services app is eating my battery, especially the alarm wakeup locator (as listed when clicking on play services under "alarms"). I thought facebook apps were causing this, but it is still present with them being frozen. Also disabled google location history from the OS settings, but without success. Is there anything I can do?
[BetterBatteryStats] mdamaged:
Yes, post a dump as outlined in the OP.
[BetterBatteryStats] haris1976:
is there any conflict if i instal bbs with wakelock detector ?
[BetterBatteryStats] aidy.lucas:
No its fine I have both installed on my Xperia...

D2303,18.3.1.C.1.15 kk, deodexed, debloated, rooted, philz touch recovery, bravia engine 2+x-reality+z3 super vivid, viper audio, xposed mods.
[BetterBatteryStats] Lownita:
Sure, here is last night's dump file: https://www.dropbox.com/s/b3v4qv0jb5y8gww/BetterBatteryStats-2015-08-21_102147698.txt?dl=0
[BetterBatteryStats] mdamaged:
Disable wifi and do another charge/idle cycle and do a new dump, it looks like connection/wifi chatter...the location thing could be whatsapp too.
[BetterBatteryStats] jacknicholson:
Like a few others here, I've been experiencing difficulty installing BBS as a system app (in my case, after updating my Nexus 5 to LMY48I). While I believe I've a handle on the issue, in the process of trying to get things sorted (repeatedly uninstalling/reinstalling the app), I've inadvertantly ended up with several copies of BBS in my /data/app folder, even after uninstalling. As I plan to reinstall BBS from scratch, could either chamonix or anyone chime in if it'd be safe to manually delete the excess folders (eg. "/data/app/com.asksven.betterbatterystats_xdaedition-2/", "com.asksven.betterbatterystats_xdaedition-3/", etc) from my /data/app folder?

Thanks all.
[BetterBatteryStats] FernBch:
Feel free to delete all instances of BBS. If you like, as an added step, go to settings>apps and look and see if there are any listings for BBS and clear data before uninstalling/deleting them. You can also look in /system/priv-app and delete any you find there as well.
[BetterBatteryStats] jacknicholson:
Thanks for your reply. That's exactly what I ended up doing a little while ago. I've since reinstalled BBS (using your Root Explorer R/W method, by the way -- thanks!), but in the process, had to install the app a second time (after setting it as a system app). Of course, I've now got two seperate BBS folders in /data/app once again :). As everything is currently in working order, would you suggest I just let things be, or should it be safe to delete one of them (presumably the first one, while leaving the most recent copy intact)?
[BetterBatteryStats] FernBch:
I wouldn't bother. I did the same thing (deleted both and reinstalled) and after reinstalling again I have two entries in data/app. All seems to be working as it should so I am leaving it as is.
[BetterBatteryStats] FernBch:
You made me think about this a little as I have two entries in data/app, too. I deleted both and rebooted. I then installed BBS again and rebooted. Afterwards I now only have one entry in data/app.
[BetterBatteryStats] axxel6307:
Just bought this app and am liking it. Thank you for your work and for those here supporting this thread.

Before I decide whether I need to dump stats here to be looked at, I wanted a better understanding of what is normal wake locks.

First of all, what is a "good" amount of wakelock per say 8hrs of unplugged time?

Where is there a guide on interpreting the data? For example, are the alarm, network, and process values all included in the kernel and partial wakelock screens?

Also, what's the difference between power manager service display and power manager service wakelocks?

Thanks
[BetterBatteryStats] FernBch:
There's a lot of info in the first couple of posts. There is also this thread, although it may be a little dated.

http://xdaforums.com/showthread.php?t=2171461

Powermanagerservice display is the screen and how much it is on, I think. Not sure about powermanagerservice.wakelocks other than it is detecting some type of item that is keeping the device "awake".

Hope it helps.
[BetterBatteryStats] chamonix:
Sure, delete and reboot
[BetterBatteryStats] axxel6307:
Thanks, am learning alot. However, i still can't wrap my head around the numbers. For example, since power manager service wakelock is a sum of partial wakelocks, how come when i add up all the time in partial wakelocks, it does not equal power services manager wakelock time?
[BetterBatteryStats] bradputt:
anyone on android M 6.0 with working BBS?

mine says "no stats have been collected yet" on partial wakelocks.
[BetterBatteryStats] Dr Grato:
i uninstall this app cause i want to re install as it was not running properly. anyhow, it cause my phone bootloop. :/ any advice?
[BetterBatteryStats] Rinoceros:
You need to give (a lot more) information!

Tried to wipe Cache and Dalvik cache in recovery?
[BetterBatteryStats] Dr Grato:
i dont know to give what information. it just i uninstall after i installed as system weeks ago. then today i realized that it not working properly then i want to uninstall. then i uninstall, then i reboot, all apps gone. then i soft reboot, it become bootloop. im cant wait so i clean wipe and flash my rom again. so i think problem solve. :P
[BetterBatteryStats] axxel6307:
I'm going to attach my dump file and some screenshots and hoping you guys can take a look. Seems like I have a lot of network wakelocks, but I am unsure. So I charged it to 100% and removed it from the charger and let it sit 4 hours untouched and then emailed the dumpfiles and took some screenshots. Here it is.
[BetterBatteryStats] themonyo666:
hi.. i have no idea about this app? what is the use of this better battery stats?

any guides or tweaks for this? tnx :)
[BetterBatteryStats] mdamaged:
The Op, this thread, and here:

https://asksven.github.io/BetterBatteryStats-Knowledge-Base/
[BetterBatteryStats] NerdySpam:
I instal BBS on Samsung Galaxy Nexus and works fine, but wen i open Summoners War game i get this error: "An unauthorized program has been detected. Please exit all programs and try again.(101)‏" and game close.

I unnistal BBs and game works fine again, any way to fix this :(
[BetterBatteryStats] mdamaged:
Contact the author or Summoners War game and let them know BBS is not a harmful app and to whitelist it.

Of course a quick google shows they DGAF, so IMHO, don't play their game, or don't use BBS.
[BetterBatteryStats] NerdySpam:
Well i did the search also, and seems they revert the "patch" about rooted fhones, i have root and custom ROM and never have any problem, anyway i il go try contact tham to put BBs on whitelist.

Thx.
[BetterBatteryStats] koko115:
Hi. I have problem with BBS wersion from play store. Problem is in no showing statistics on every variant. I try install to system, all ok, but no statistics, BBS always prompt to refresh..

2 weaks ago works very good. Now install and not showing stat. I dont change rom etc...

Galaxy s6. How fixit ?
[BetterBatteryStats] trawel:
I've got a problem. I'm running latest Chroma ROM on nexus 5. When I try to install, everything seems fine, but after reboot, app doesn't work, I have a message "This is a companion app to BetterBatteryStats. It will be copied to /system and stay there to grant permissions that can only be granted to system apps. This app has no functionality at all." And there is uninstall button. Tried both install using apk file and install zip in twrp. Of course there is bettery_stats granted and dump granted but app doesn't work.

Anyone knows why? Any solution to that problem? (Tried newest beta from xda)
[BetterBatteryStats] parkson:
Reinstall apk after first install/reboot and all works
[BetterBatteryStats] vergilbt:
Got same result with official app from store...

Try "beta" version 2.1.0 from opener... Is working fine for me.
[BetterBatteryStats] The_Wolf91:
Hi guys, I'm having an huge amount of battery drain and it's driving me crazy. I'm on SlimRom (collective builders) on Nexus 5 which has already merged in its repo the "SystemUpdateService: enable service but lock its receivers" commits which should fix Google Play Services battery drain (but unfortunately it is the first in the wakelocks "*sync*/com.google.android.gms.photos.iu.EsGoogleIuProvider/com.google/d7ef79e9cfd4d6f738ebd9a1e50454a1@gmail.com (Servizi Google): 1 h 5 m 37 s Count:158 16,3%").

Here's the dump.
[BetterBatteryStats] diminou91:
Hello everyone!

I was wondering if someone was kind enough to take a look at my BBS dump ? Maybe to have an idea and some tips :)

Many thanks to whom wants to help me!
[BetterBatteryStats] mdamaged:
Yes, it's fine, nothing is wrong there, could not get better short of shutting it off. Enjoy your device.
[BetterBatteryStats] axxel6307:
Bump. Thoughts please on my stats?
[BetterBatteryStats] mdamaged:
The dump looks fine, though it might be your battery isn't in perfect condition anymore.
[BetterBatteryStats] axxel6307:
Serious? Phone is only 5 months old. Thank you.

---------- Post added at 03:18 AM ---------- Previous post was at 03:04 AM ----------

For my future troubleshooting reference, what exactly made you think this? The battery voltage drop? If so, is there a normal range %/hr for that?
[BetterBatteryStats] JoeBear1975:
Thx

Sent From My Emotional N910P
[BetterBatteryStats] mdamaged:
Well, to be fair, it could also be a calibration thing too, maybe do the same charge/4hr discharge and see if it differs. That being said, it would not be the first time a new phone had an old or defective battery, I mean to you it's 5 months old, but how long has it been sitting on a factory pallet or shelf before you bought it?

.7% is pretty decent, but being that I did not see excessive usage, wake times, etc, I have seen lower with the same hardware, i.e. .3-.4. Again it could be a calibration thing too.
[BetterBatteryStats] Hedied4me:
Hello, Im getting these two partial wakelocks, checkin handoff and event log handoff. My phone wont sleep because of them. In the past I have used 3c toolbox to keep them in check and it works perfect, however that app causes far too much battery drain for me. Has anybody else had issues with those wakelocks and what did you do? Weird thing is my phone wont sleep but there is less battery loss than from 3c toolbox being installed.

Sent from my Virgin Mobile HTC Desire 601 zaraCL cdma
[BetterBatteryStats] gaich:
I have eliminated them. But the price is - Google`s push service doesn`t work. I don`t need it. The settings I have made let me use Play Store, Wear, search, GPS and sync - that`s enough for me. I don`t use Gmail, Hangouts. Facebook and Whatsapp - these apps will not work properly with my settings because GCM service is turned off. Used My Android tools to turn off components in Google Play Services and Google Services framework.

Services:

Receivers:

Activities:

Providers:

And I turned off all permissions for Google Play Services and Google Services framework in app ops:
[BetterBatteryStats] JoeBear1975:
Thank u for sending me to this link my friend. Before this, I was lucky to get 4 maybe 5 hours, but check these pics out…
[BetterBatteryStats] whiper:
High awake time - pwrsrc wakelock?

I've got a big problem. My Chuwi Vi8 has sometimes a high battery drain. But i don't know why.

There are no massive alarms / wakelocks

I only see:

awake time about 35%, but display on only 5%, rest is deep sleep.

12% pwrsrc_wakelock - what is this?

nothing other is significant, all around 1%.

Any Ideas? I don't understand what's the cause of pwrsrc_wakelock. Sometimes it drains battery, sometimes not.
[BetterBatteryStats] Orphee:
Hello, could you help me on this ?

Thank you
[BetterBatteryStats] Pawnty:
Is it possible to keep the Battery Stats continuing through a reboot? Kind of find it annoying that if I have to restart my phone for some reason during the day that the battery stats are erased and starts over. Like, after rebooting the only option I have is to view stats from boot. I'd think that viewing stats since last unplug would be possible through a reboot.
[BetterBatteryStats] nctrns:
Could anyone help me with this? I'm on HTC One M7 running Carbon ROM (CM based). Battery usage graph in settings suggests that it's basically woken up every minute.
[BetterBatteryStats] tommymsw:
Hey all. Not really sure how to read these results? My phone has been sitting for 4 hours (screen off) and lost 70% battery in 4 hours. Seems like the wifi was on the entire time? But looking at these screenshots, does this mean "Battery Doctor" is to blame? Should I uninstall it? Seems to be a HUGELY popular app!

Would somebody be kind enough to give these a quick look? Thanks. :)
[BetterBatteryStats] chamonix:
this is a feature that has been requested a long time ago but it's implementation is really complex. The two main problems are:

- the even of the phone being powered of can not be detected easily by an app, making it impossible to save state

- at reboot all internal counters are being reset so having no information at shutdown time makes it really tricky to link counters from before reboot with the ones since reboot

I am thinking about that issues from time to time but the mentioned complexities are preventing me from trying some ideas and iterate.
[BetterBatteryStats] Rinoceros:
It might be possible if BBS is writing its cache and journals to the SD-card (internal or external) instead of storing it in memory.

At least, this is how 3C Toolbox is doing it (free version and Pro version)

But I don't know (and I am the n00b here!) if this can be implemented in BBS.
[BetterBatteryStats] mdamaged:
We're going to need you to make the screenshots even bigger, and post many more of them.
[BetterBatteryStats] tommymsw:
Right? But it's not my fault. I just pushed the "add image" button for this forum. No idea what else I can do to attach an image other than that. But thanks for answering my question at least!!! ;)

Also, I figured I would delete them after. I know it's annoying.
[BetterBatteryStats] chamonix:
that's not the problem, bbs serializes the data. But as BBS is not doing anything actively, like polling the stats every x minutes the last stat is always one of 'boot', 'unplugged', 'screen on', 'screen off', 'custom' and there is no event triggered at shutdown / reboot to store that end-state.
[BetterBatteryStats] GirishSharma:
I am using OPO and running custom rom of cm-12.1-20150817-UNOFFICIAL-Sultan-bacon.zip lollipop 5.1.1.

To use the app, first I downloaded and installed BetterBatteryStats_xdaedition_2.1.0.0_B5.apk. When I ran the app, I got something this app has no functionality betterbatterystats, install as system app. I clicked on install app button, but nothing happened. Then I flashed REMOVE_BetterBatteryStats_SystemApp_CWM_1.1.0.0.zip and flashed BetterBatteryStats_SystemApp_xdaedition_CWM_1.1.1.0.zip - [Click for QR Code] (775.8 KB, 21437 views). This time a different look was there and install as system app button, so I again clicked on it, but again nothing happened. So, I removed it by ROM Toolbox app and restarted the device. This time I saw again the app icon, I clicked so this is my first screen and when I clicks on back button I see the second screen, so kindly tell me what is this all mystery! Am I using the correct app or something need to configure.
[BetterBatteryStats] mdamaged:
If you read the OP, you would have known to post a proper (read the OP on what a proper dump is) bbs dump as an attachment, which is a text file (or use pastebin, or paste it in the post USING hide tags), screenshots are mostly useless, this is why your question went unanswered.
[BetterBatteryStats] rpr69:
I don't see a problem? .7% drain per hour is enviable, most people are happy with 1% per hour.
[BetterBatteryStats] phillibl:
Ya it is a touch confusing at first.

Install the apk, open app, click install as system, restart phone, install apk again, open app.

Any other questions just let me know.
[BetterBatteryStats] tommymsw:
Sorry, I just assumed because I saw other screenshots and I also assumed that the app works by the user looking at those screens to solve their problem. Didn't realize the screen views are useless and you have to dump the data to a file in order to determine what is going on. Not sure the use of the screens then... Guess I just assumed they were there to give you information about your battery use. weird...

I don't have the technical knowhow to dump data from an app and then read that data. I was looking for an app that would just tell me what process or apps are using the battery or stopping my device from sleeping (by just looking at the app). Wish I had known that before I bought it :(
[BetterBatteryStats] mdamaged:
You were just seeing the result of other users ignoring the OP. There is a share button in the app which allows you to dump the file, it's hardly complicated.
[BetterBatteryStats] GirishSharma:
@ phillibl,

Thanks for your reply and yes it is now working. The only thing is there are two icons in the app drawer. When I clicks on the first one, there is no action and when I clicks on second one, then app is working. I shall try to learn the app's stats that what is their meaning and what should their "good" or "bad" values.

Thanks once again for your helpful reply.

---------- Post added at 05:09 AM ---------- Previous post was at 05:01 AM ----------

In my phone when I puts the battery in power save mode (setting--battery--battery mode--Power save) between 11.00 PM to 6.00 AM, I sees only 2-3% battery consumption. I am using rooted OnePlus One and custom rom of cm-12.1-20150817-UNOFFICIAL-Sultan-bacon.zip lollipop 5.1.1. I don't know what should be "optimal" consumption in the day time, but I think 2-3% consumption for 7 hours is good right ?
[BetterBatteryStats] mdamaged:
Your dump it looks fine wrt battery use, you should probably not use that wakelock blocker, it may be playing tug of war with the system (i.e. you block a WL, another process wakes that WL and your blocker immediately blocks it causing the first app to try and wake it again, which makes you blocker kill it again, which makes the first app wake it again, ad nauseum.), but this thread and app is mainly about saving battery, not about killing every single wakelock, which your system needs.

Please read this too: http://xdaforums.com/showthread.php?p=61279606#post61279606
[BetterBatteryStats] Nimueh:
I didn't start using that wakelock blocker until I had the PWL, but thanks ;)

Guess I'll go back to my regular rom that doesn't have those wakelocks ... I'm not convinced they're needed because if they were then every custom rom would have them :)

Thanks for replying though :good: