yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] BoxyBox:
When I attempt this and try to paste in /priv-app the process fails with ES File Explorer. It says not enough space? Any ideas?

Using adb to mount system and push the file also results in lack of space error.
[BetterBatteryStats] chamonix:
looks like your system partition is full
[BetterBatteryStats] chamonix:
bbs uses a service to detect certain events as there is no event receiver for all. That has not changed sine at least 1 1/2 years
[BetterBatteryStats] chamonix:
and it seems that the xda app is broken as "quote" does not copy the text. Sorry for that
[BetterBatteryStats] skivnit:
New tapatalk seems broken indeed

Sent from my SM-G925F
[BetterBatteryStats] drezz2:
its that for me?

ok i dont know but I installed version 2.0 to see it again and then the 2.1 and I noticed these differences, in one case appears as a service cache that disappears when you close the app and the other remains in the memory (perhaps I did not leave enough time for disappear?)

thanks
[BetterBatteryStats] drezz2:
i try again.. and.. in 2.1

process in memory betterbatterystats 3.6mb ram

services in memory eventwatcherservice

in 2.0 this did not happen

so i dont now if its normal

anyone can try it?
[BetterBatteryStats] paul c:
Noticed the new version is released - and also noticed I was continuing to use the xda version, after who knows how many years of use.

Put that right :) Thanks [MENTION=1330150]chamonix[/MENTION] for your continued efforts :good:
[BetterBatteryStats] cangcan:
wew luckily i just reflashed my devices and wondering if there's any update on BBS.. thank you [MENTION=1330150]chamonix[/MENTION]
[BetterBatteryStats] Luke2508:
Hi [MENTION=1330150]chamonix[/MENTION],

I have seen that in the latest versions you have noted "Widget tuning". I have only just started using the widget, so I am not sure of what was changed. However, some suggestions that I have, just small visual tweaks would be to allow the opacity of the background to go to 0, if possible. And the ability to hide the little refresh button in the top right of the widget.

I am not experienced at all in widget development so I am not sure of how feasible these tweaks would be. But I'd like to see them in a release if possible.

Thank you for your amazing work, been using BBS for around 3 years now :D
[BetterBatteryStats] nick_white:
After updating today, I noticed that a service is now running all the time: EventWatcherService. I don't have Watchdog & Active Monitoring enabled. I don't want unnecessary services running in the background. Please add an option to disable it. Thanks.
[BetterBatteryStats] drezz2:
thats its i say in #29662

dont know if its a mistake or not
[BetterBatteryStats] Luke2508:
Just took the time to look into this properly, and once I found the config file in data\data simply changing the new widget opacity value from 10 to 0, saving then refreshing the widget worked perfectly! This widget is now perfect :D
[BetterBatteryStats] rfilipoiu:
Hi, is there a trick to install and/or a version working on 5.1.1 ?

Thank you
[BetterBatteryStats] Luke2508:
The latest in the OP should work, it just needs to be installed as a system app after you install it. If it disappears after installing as a system app. Just install the apk again and it should work :)
[BetterBatteryStats] rfilipoiu:
Already done but after a while (a.k.a. a reboot or something) the app itself proposes to be uninstalled and stops doing anything else :)
[BetterBatteryStats] IronTechmonkey:
Yes, there is a trick, or rather a particular work flow that may be required and is mentioned prominently at many points in this thread.

- Make sure you are starting fresh by flashing the zip file that removes BBS system app via recovery (this step is not generally required but is advisable once you've had issues with the BBS installation)

- Install BBS from APK

- Open BBS and Install as system app

- Reboot device

- Install BBS from the same APK as before
[BetterBatteryStats] rfilipoiu:
Does this also solve the widget Aw issue?

Btw: where do I get the zip that removes BBS in recovery?

Tapatalk
[BetterBatteryStats] JoeBear1975:
https://www.dropbox.com/s/igmdkrxr2d8rk90/REMOVE_BetterBatteryStats_SystemApp_CWM_1.1.0.0.zip?dl=0

Sent From A N910P With One Bad Ass Emotion On Taptalk
[BetterBatteryStats] rfilipoiu:
Done by the book. However, after restart, always get this. If somebody had the same problem and has solved it, please advise.

Tapatalk
[BetterBatteryStats] thedoctor.gz:
Update the app in Google play store

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] IronTechmonkey:
Check your workflow. What happens when you install the apk again after you see that error?
[BetterBatteryStats] GeraldRudi:
is possible to log the doze steps? (Doze - In depth)

*IDLE_PENDING

*SENSING

*IDLE

*IDLE_MAINTENANCE

to find out when and how doze exactly works (with different settings)
[BetterBatteryStats] rfilipoiu:
after 3 installations in the row the BBS remains in place after restart. many thanks.
[BetterBatteryStats] chamonix:
The answer is: yes it's possible. I will experiment a bit but need more feedback on you ideas about the workflow (I would never tweak on such params)
[BetterBatteryStats] drezz2:
Hi [MENTION=1330150]chamonix[/MENTION] , i have the language menu in spanish, but the main screen is all in english

but i see that exists a translate

https://github.com/asksven/BetterBa.../BetterBatteryStats/res/values-es/strings.xml

no translation the main screen?

edit:

add a screenshot

p.d:

there is a small mistake in Spanish translation, if you want to correct..

<string name="label_custom_ref">Asiganr Ref. personalizada</string>

right is <string name="label_custom_ref">Asignar Ref. personalizada</string>
[BetterBatteryStats] Celestial Fury:
What is the difference between WiFi On and WiFi running?

WiFi On - WiFi toggle on the device is set to ON?

WiFi running - WiFi is connected to a network?

If so, then it's not working as although the WiFi toggle was ALWAYS ON the phone was disconnected from several networks for extended periods throughout the day but WiFi On and WiFi running showed the exact same time right down to the seconds.

What's with all the () empty brackets in the dumpfile? Since x h x m x s should be placed under Other Usage for easier comparing with Deep Sleep and Awake time.

No Data Connection - seems to be the complete opposite of WiFi On/WiFi running. It should follow the same parallel design. I need to know how long data has been ON (if any) instead of off.

No or Unknown signal - Is this referring to the radio signal? Most of the time the time is just as long as the "Since" stats but android battery stats shows signal is available.

Active since: 1 m

Last activity: 1 m

This isn't clear. Active since when and until when? Since the start of the monitoring until the dump was written? Since 1 m before the dump was written until the dump was written? Last activity was 1 m before the dump was written. If so, then when would it have been active - 2 m before the dump was written until 1 m before the dump was written?

Since 7 h 8 m 51 s

Active since: 7 h 49 m 41 s

Last activity: 5 h 10 m

This service has been active since longer than the start of the gathering of the stats?
[BetterBatteryStats] GeraldRudi:
With the app Doze Settings Editor (Android Marshmallow Only) you can edit the default doze settings. So it would be interesting when doze works and wake up for maintenace or from an alarm (grafics) and how long the phone is in doze mode (list) compared with deep sleep (is there a difference?)

Second question: is it possible to make the grafics more interaktive like the old mobile data diagramm?

... for both, the lists and the diagramms.

E.g. grapic page: you can zoom in the main (akku) diagramm for all other diagramms with the vertical sliders

E.g. list pages: (same as on the pic) you can zoom in the akku diagramm with the vertical sliders as addition to choose from boot, unplug, ...

So you get only the wakeups (times and counts) and so on from that choosen time (at night, ...)

For questions pls pm
[BetterBatteryStats] JazzMozz:
I have a Nexus 5, bought it in December 2013. Since a couple of months I experience the following behaviour: when I have charged my phone to 100% and disconnect it from the charger, the phone immediately starts to drain like a mad man. I will lose roughly about 20% in about 60 minutes. When the battery level reaches about 80% the drain starts to normalise to roughly 2-3% per hour. I have checked BBS and GSAM, but cannot find any relevant information that could reveal what is draining my battery. Yesterday BBS even told me that during those first 20% of drain, my phone was in Deep Sleep for 95,7% of the time. Partial wakelocks all showed levels of 0-1%. Same for kernel wakelocks. Alarms: com.google.android.gms was 53%, the rest was nothing unusual. I run a Tasker profile that makes the phone do a reboot once the battery leval has reached 100% so the drain starts immediately after a fresh reboot.

As I could not find no culprit and my phone was in Deep Sleep for nearly the whole first hour after full charge, I'm beginning to wonder whether the quality of my battery is slowly deteriorating. Do you have any clues of what is going on here and where to look for more information to determine what's eating my battery?

I'm running stock Android 4.4.4, rooted with Xposed framework and Franco kernel
[BetterBatteryStats] nokiagye:
Be careful some battery's for the nexus 5 have problem with the temperature sensor!!
[BetterBatteryStats] JazzMozz:
There seems nothing wrong with the sensor or the temperature for that matter. It's the draining that bothers me.
[BetterBatteryStats] chamonix:
can you give more details on the wakeups/alarms? Ideally a dumpfile.
[BetterBatteryStats] itandy:
I found that the "To" reference of BBS in my device is always empty so there's no stats displayed at all. The only way to fix it is to clear data for the app. Then it will work until the next reboot or recharge, the "To" reference will be empty again.

My device is Xperia ZR running stock 5.1.1 firmware. BBS is the latest 2.1 version and is already installed as a system app.
[BetterBatteryStats] hurda:
Hi, I'd like to report a minor cosmetic issue.

In the Settings-menu, the screen cannot be scrolled up completely, resulting in the "Advanced"-button to be cut off:

imgur.com/VB5f0c1.png

Samsung Galaxy S2 i9100 (480px*800px), CM 11.0 M12, BBS 2.1
[BetterBatteryStats] JazzMozz:
Here you go. View attachment BetterBatteryStats-2015-11-02_124815506.txt

I have to say that the drainage was less than the past few days and I also noticed that the phone has not been in deep sleep for that long (about 80%). But maybe if you could have a look at it, you might find something useful. Anyway, thanks for taking the time to look into this.
[BetterBatteryStats] sachin.soman:
BBS is not showing detailed Alarms in M Build, I never had this issue in L. i have seen this in lots of M dumps due to this debugging Alarms is a pain. Yes i have checked all the solutions for this in this thread none works in M

http://xdaforums.com/showpost.php?p=63526471&postcount=4721
[BetterBatteryStats] ts_mpls:
Wow thanks, that was awesome to scroll through on a mobile device! Please read the OP where it specifically says to post dumps as attachments!
[BetterBatteryStats] saurav_agarwalla:
I am sorry about that but I don't have any option to add attachments while posting on this thread. I don't know if that is because I am a new user.
[BetterBatteryStats] tomkins0752:
I've been coming here for years to get the latest version of this app whenever I have battery issues.

I finally spent the $2 and change in the Play Store and got it.

Great work.
[BetterBatteryStats] guhvanoh:
I believe there are spoiler tags you can hide the dump behind. You should use those in the future.
[BetterBatteryStats] JazzMozz:
I now have a perfect example in the form of a logcat. Please find it here: View attachment BetterBatteryStats-2015-11-04_105147705.txt Could somebody please have a look at it and assess what's causing my battery to drain so quickly, even it has been in Deep Sleep for over 95% of the time? Thanks a million!
[BetterBatteryStats] Glpcha:
I would put my money on the battery. Logcat seems ok to me.
[BetterBatteryStats] cid3nt:
BBS couldn't read kernel wakelocks

hello, i have a rooted HTC Desire 610 and i can't view my kernel wakelocks, i tried Better Battery Stats and Wakelock Detector both say: file couldn't be read. how can i solve?

i'm from Italy forgive my english
[BetterBatteryStats] Perseus:
Have you installed the app as per the process in OP ? Also have you granted root permission to BBS ?
[BetterBatteryStats] irvy:
I would also be most interested in seeing how Doze works. There are already 2 apps, NapTime and Doze Settings Editor which allow you to change the settings, however I would defer to Chamonix and hold off until you have a proper look at it. Thank you in advance. A bar graph showing all the timeouts and alarms would be super.
[BetterBatteryStats] lakshmish:
Did anyone found the solution to this problem? Tried the patched version of BBS posted in this thread and also used few other versions of BBS but still getting the same problem. Going by some of the posts in this thread its related to dumpsys not giving full info. Can we expect this to be resolved in the next version of BBS?
[BetterBatteryStats] chamonix:
do you have any battery saving tool that may prevent bbs to do its job of saving the references upon certain event? If yes make sure to whitelist bbs
[BetterBatteryStats] chamonix:
this is a known cm issue
[BetterBatteryStats] chamonix:
I wouldn't recommend using any 'other' unsupported version of BBS, this is at your own risk.

Now the 'simplified' version of the alarms is caused by BBS falling back to the API instead of parsing 'dumpsys alarms', because the latter is not accessible. Now if you have a samsung/knox device then this is unfortunately normal as samsung has broken a few things. I can not afford to buy devices for all borked versions of android but if someone has a Samsung knox device to much of a broken version that is functional for me to test I would be happy to work around samsung poor work
[BetterBatteryStats] itandy:
I just added BBS to Stamina mode exception list and removed it from Greenify. Will see if it helps. Thanks!
[BetterBatteryStats] lakshmish:
The thing is i am not using a samsung phone. I am using Lenovo K3 Note with a lollipop 5.1.1 custom rom. I have a feeling that it might have stopped working when i started using custom rom and it didn't seem to have any problem while using stock rom.
[BetterBatteryStats] chamonix:
Ok, then let's look at things in details. First, make sure that you have the most up-to-date version of BBS with its system app from this thread. Once done go to advanced settings and enable debug logging. Finally access the alarms and save a dumpfile+logcat. You can upload the result here for me to look into what prevents bbs from accessing the alarms using dumpsys, choosing api mode instead. I also would recommend that you post the result of 'dumpsys alarms' run from a su shell to validate that dumpsys is accessible (potentially you may have a restrictive selinux setting preventing that)
[BetterBatteryStats] itandy:
Removing BBS from Greenify fixed my problem. Thanks! Just one more quick question. I remember BBS doesn't has to be service in the past unless active monitoring is enabled. So this behavior is now changed?
[BetterBatteryStats] chamonix:
The active monitoring is not the only reason for the service: there are certain event handlers for events like screen on/off, plugged/unplugged etc that can not be associated a handler via the manifest (but certain other can). For these handlers to be triggered when the events occur there need to be a service holding a reference to the registration and this is what the service of BBS does. Killing the service results in a subset of events not to be processed, ie in references not getting created.
[BetterBatteryStats] albi97x:
Why i nave this message i tried to install it with the zip but the message is the same

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Nimueh:
That has literally been covered and explained 100s of times in this thread.

Reboot, install BBS again, done.
[BetterBatteryStats] albi97x:
It didn't work

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Nimueh:
It always works, at least on LP ... no idea about M.

Install BBS, open it, "Install as system app"

Reboot

Install BBS again

Done
[BetterBatteryStats] albi97x:
How can I install it again?

After the first time I have only the uninstall button

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Nimueh:
Tried checking the 1st page for the download link? I use the XDA version, but since the app isn't actually installed after the reboot it should let you install from the Playstore too.
[BetterBatteryStats] albi97x:
This is what I've done

1) install the xda version apk

2) open the app and tap install as system

3) reboot

After I have the message that I've posted

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Nimueh:
After the reboot you need to install it AGAIN ...
[BetterBatteryStats] albi97x:
For "it" You mean the apk?

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Nimueh:
Yes of course - install the BBS apk again :rolleyes:
[BetterBatteryStats] albi97x:
Thanks now it's working

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Nimueh:
I've been telling you the same thing in FIVE posts spreading over 1 whole page now, especially http://xdaforums.com/showpost.php?p=63726163&postcount=29714

/me shakes head and wanders off ... :rolleyes:
[BetterBatteryStats] albi97x:
I'm sorry but i didn't understand if with install BBS again you were meaning apk or system app

Inviato dal mio A0001 utilizzando Tapatalk
[BetterBatteryStats] Blade2014:
Install apk

Set as system app

Reboot

Install apk again

Done.
[BetterBatteryStats] albi97x:
Since I have installed the app Google Apps don't work why?
[BetterBatteryStats] Perseus:
BBS has nothing doing whatsoever with Google Apps. If Google apps don't work, you will have to look elsewhere for the problem.
[BetterBatteryStats] IronTechmonkey:
This is documented repeatedly in the original post and in the thread but to expand on the quick steps recently suggested.

1) Download and install the newest version's APK from original post in this thread.

2) Open BBS and click button to install as system app.

3) Reboot

4) Once again, install newest version APK that you downloaded earlier.
[BetterBatteryStats] demster:
Dear xda people,

I'm currently running CM12.1 (BlissPop) on my LG G3 and I notice an enormous battery drain, usually overnight when not touching my phone. So I installed the xPosed module Amplify to block common wakelocks. It blocks a whole lot of wakelocks, but does not prevent the phone draining like 50% overnight (from ~60% to 8%).

I decided to install BBS, but I don't know what happens. When I look at the graphs it just shows a steady decline in battery percentage overnight, where there are almost no wakelocks and screen and wifi are off. Attached is a BBS dump and I hope someone can help me find the culprit that drains my battery.

Battery life on modified stock roms is perfect (can sometimes even reach two days).
[BetterBatteryStats] Primokorn:
First off, this is not a dump file as explained in OP.

You have a poor signal (84.5%) and massive alarms:

Reduce them with Amplify but there's something wrong with your setup. Try sending a new dump file (check the steps to follow in OP).
[BetterBatteryStats] TNSMANI:
[MENTION=845342]demster[/MENTION]

You have massive WAKELOCKS. Are you running Amplify free version or donate version? Free version is not sufficient for control. Go through the Amplify thread and find out what are the wakelocks you can control and implement them.

As stated in the above post, you also have a mobile signal issue. Post a proper dump.
[BetterBatteryStats] demster:
Poor signal was due to just being in a poor signal town. I use amplify donate version and already blocked some common wakelocks and alarms. I will post a proper dump asap.

Thanks for helping me!
[BetterBatteryStats] demster:
Here is my new BBS dump according to specifications.
[BetterBatteryStats] StevenMashima:
wakelock

anyone know about "msm_camera"? search on google and got nothing

WOOT my first post :D
[BetterBatteryStats] HulkSmashBurgers:
What could cause "No or unknown signal" to always show close to 100% for me? For today it said 97%. My signal is often poor, but not that bad. signal graph in GSam shows I've had medium signal for most of the day.
[BetterBatteryStats] Primokorn:
► Disable doze

► Increase the limit in Amplify. Allow every 3600 seconds instead of 720 for instance

► Use Greenify

► Reduce the time frame of cLock

► Reduce the sync process of Gmail

► With Privacy Guard (or something else), disable Wake up and Keep awake for Google Play Store and Google Play Services.
[BetterBatteryStats] demster:
Thanks for your input! Now I need to interpret it... Which processes do I need to put to 3600 seconds? This thread gives some options and I have limited the ones I could find.

With Greenify I have to reduce cLock and Gmail?

Privacy guard is awesome and I applied the suggested settings.
[BetterBatteryStats] Primokorn:
Yep use the above guide and this one. You have to carry out tests to find the best setup. Everything is explained in one of the guides.

Use Greenify to hibernate apps when your screen is turned off. Be careful with the apps you choose. Do not select Gmail if you want to keep sync. Try similar apps that are less battery consuming ;) (e.g. K9 Mail instead of Gmail)

Turn off Ambient Display and post a new dump please.
[BetterBatteryStats] TNSMANI:
AFAIK, your mobile signal is always shown as No or Unknown Signal. For me it is always at 100%. Anything less, you should worry because it shows that your signal had an issue.
[BetterBatteryStats] HulkSmashBurgers:
Ah. I'd forgotten that some things in BBS are worded that way. I took it to mean BBS thought I had a bad signal 100% of the time. I considered the opposite, but mine is rarely less than 100%, and I always figured that had to be inaccurate (too good) since I do get bad signal often and see my signal cut out occasionally.
[BetterBatteryStats] chamonix:
unknown and 'bad signal' are also reported by the cellular modem when it is not connected to data; this means also, when connected to wifi
[BetterBatteryStats] GorJessSpazzer:
Holy cow I got bootloop just because i uninstalled this app, I'm running stock deodex ROM 5.0.2 in galaxy grand prime I don't want to install it again because of that. I had it on my tablet too and I try to uninstall it and I didn't have bootloop its touchwiz too but 4.4.2, anyone have an idea of what could've happen?
[BetterBatteryStats] Nimueh:
That's like saying "It started raining when I was taking a shower, I'll never take a shower again because of it!"

Uninstalling BBS can't and won't cause a bootloop, it must've had another reason.
[BetterBatteryStats] GorJessSpazzer:
Why would i lie about that? I saw a comment before that someone got bootloop with touchwiz L too but not answer and that's why i'm asking, i even didn't have a backup and i always make one when i do some modification to my phone so it can't be another reason, and please there's no need to be rude if you don't have a real answer
[BetterBatteryStats] Nimueh:
I didn't say you lied, I'm saying you must've missed something else. Bootloop would imply that BBS is changing system files needed for booting and that's just not the case.

And where was I being rude? Just because a reply isn't what you want to hear that doesn't make it rude.
[BetterBatteryStats] GorJessSpazzer:
What it is something else? Cause i don't remember doing more than playing a game and replying messages before that, i woudn't be asking here if i was doing something else that has anything to do with this app. Yes maybe i didn't want to hear some sarcasm but anyway i'll leave it