yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] IronTechmonkey:
Tested and not reproducing the error under native SU or SuperSU.

CM12.1 MotoE/2ndGen/3G/US (Otus) 10/8/15 CM12.1 nightly clean flashed, Catlog and TiBU flashed after ROM flash/reboot, Developer settings - enable root access, Native CM SU = BBS working fine Stats and dump granted permissions.

Uninstalled BBS, flashed SuperSU2.4.6, reinstalled BBS. BBS working fine Stats and dump granted permissions.

One note about the second test: After installing SuperSU and while installing BBS (first pass) I got a prompt asking if I wanted to use the native google security invoked by but not specifically referring to the BBS installation. I tapped cancel/ignore and proceeded with the BBS installation. This repeated when installing BBS again to complete the installation. Typically I disable such google security as soon as I've flashed the ROM and don't know if this was typical behavior. That this happened on the second test and not the first test may be due to the fact that by that point the phone had been on-line.

[MENTION=2781850]adm1jtg[/MENTION] and [MENTION=4510992]boshuter[/MENTION]; As general and specific advice: Log it. Post log. Provide specific details of ROM/SU, answer chamonix's question "Does bbs get the required permissions granted? you can check this from the advanced settings under system app".
[BetterBatteryStats] code010101:
hi chamonix, do you think something could be done to increase the readability of the labels in the new widget?

for example by putting a space between hours, minutes and seconds: 11h34m → 11h 34m

and/or by showing the hour in bold: 11h34m → 11h34m

in addition, when there is enough space (e.g 2x2 or 2x3), the labels could be more spaced vertically,

as they roughly occupy just half the space of the pie
[BetterBatteryStats] Lownita:
Any ideas what's causing my battery drain while screen off in Android M lately? Before, I had 0.2% drain per hour which was excellent, but now I am almost back to L conditions. Dumpfile: https://www.dropbox.com/s/pvk01yybmdvwapx/BetterBatteryStats-2015-10-09_110651322.txt?dl=0
[BetterBatteryStats] chamonix:
Final release is up (same as RC6) and staged rollout is starting on google play. Thank you all for the intensive testing and support in making a better BBS!
[BetterBatteryStats] chamonix:
As you have been listining to music and using your phone that reading is not really representative. Nonetheless I see some wifi broadcast/multicast related wakeups (kernel wakelocks).
[BetterBatteryStats] Lownita:
Alright, I will do another one tonight. Is there anything I could do about the wifi wakelock?
[BetterBatteryStats] chamonix:
Yes. For further reference please see the FAQ in post #3
[BetterBatteryStats] LironImaN:
V2.1 RC6, Cm12.1 5.1.1

Why is it like this? Maybe because I use RTL language?

Can you please fix this?
[BetterBatteryStats] boshuter:
Well I feel pretty stupid, it turns out that I didn't pay attention when I downloaded the app, I just assumed the newest was at the top:o. I got time to try to get it working yesterday and went in and uninstalled the app and the .zip flash, then came back to this thread to re-download the app when I discovered my mistake, The new version installed correctly and is working perfectly.
[BetterBatteryStats] mag01:
Late, but CZ translation of the changelog done.
[BetterBatteryStats] IronTechmonkey:
Well then...you owe me a few hours...the payment of which can be in the form of testing BBS:). But seriously: I'm glad to test BBS which has been one of a few cornerstones that complete Android.
[BetterBatteryStats] boshuter:
I'll be more than happy to help with testing, I'm running it on my rooted S5 with custom rom and will be installing it on the wife's bone stock Note 3. I don't mind spending a lot of time testing/trying things, so if anyone needs anything in particular done, just let me know. :good:
[BetterBatteryStats] chamonix:
It's easy to participate and the development cycle of BBS works like this:

- I tend to do 2-3 release cycles per year

- the cycle starts with beta versions that are available only on xda (second post)

- once the feature-set is complete we move to Release Cadidates (RCs). In RCs I only fix bugs and those are anounced on twitter

- changelogs are posted in post #2

- you can file bugs either in this thread or by opening an issue on github (ultimately all issues are in github and you can discuss them and see progress there)

- the final version (the latest cycle ended today) is posted in this thread and uploaded to google play

So to get your hands dirty start with reading the first posts to learn how to report bugs and sit tight for the next round, or simply use the most current version (2.1) and report any problems you found. If you visit this thread often you will notice that there is a vibrant community of helpers and testers here on xda, helping and impacting the development but most importantly supporting users who need help understanding BBS and the results it produces.
[BetterBatteryStats] chamonix:
This is possibly (can not test) an RTL issue and I have added issue #731 to have a closer look at it. Could you possibly confirm that the issue is related by switching to a LTR language?
[BetterBatteryStats] miladmaz12:
Is v2.1.0.0 going to be released on the google play store?
[BetterBatteryStats] :
It's in #29529
[BetterBatteryStats] smeker21:
I'm on Huawei G6-L11 with rooted b370 ROM so it's KitKat 4.4.2

I can't get any kernel wakelock readings.

It just says "File could not be read".

I've tried installing it as normal and as system app but it's always the same. Root features are on.

Tried searching this topic for an answer but couldn't find it.

Thanks for any help on this.
[BetterBatteryStats] LironImaN:
It is related to RTL language.

I switched the language to English and it was fine.

I hope you can fix it. ;)
[BetterBatteryStats] scifan:
Do you have to have root for this to provide meaningful information when hunting battery drain issues?
[BetterBatteryStats] cdzo72:
Could you be bothered to do a little reading?
[BetterBatteryStats] scifan:
I saw that wakelock information required root... I wasn't sure if that would make this pointless to use.

Some threads and forums assist people who ask for help rather than just belittling them.

Thanks
[BetterBatteryStats] vldesco:
[MENTION=1330150]chamonix[/MENTION], sorry for the very late spanish update. pull request #732 sent.
[BetterBatteryStats] IronTechmonkey:
Well I would not have called that belittling in spite of the sarcasm though, Id have found a more charming way to be snarky :). BTW, that was soft compared to the reactions you might get at other threads and forums in similar situation, as it is generally expected, some would say required, that the OP would be read and the issue searched for before the question gets asked. In this case either action would have provided an answer.

That said, you can get some utility out of BBS without root but one of the most commonly sought stats is the partial wakelock and if you cant get at that you do loose out on functionality. During a brief period where I was using a ROM that had trouble with BBS I used a combination of Wakelock Detector and Fulmine Battery indicator to chase power consumption issues but would always prefer BBS with root wherever possible.
[BetterBatteryStats] scifan:
Thank you!
[BetterBatteryStats] guhvanoh:
There is a thanks button. Please use that instead.
[BetterBatteryStats] IronTechmonkey:
The space used by that thank you, which was part of a dialog, is only 2/3 of the space used by your nag about it, which did not add to the dialog ;). Plus, I'd have made that point in an on topic reply or PM. BTW, feel free to tag the thanks button on behalf of and by way of example for scifan. Help is help whether it was given to you or someone else :).

Veering back on topic. I've tested BBS 2.1.0.0 in another CM nightly (which contains a power management and battery charging tweak for my device) and it is looking good. Now I'm going to see what happened when I try to install BBS on an android virtual machine. Could be interesting.
[BetterBatteryStats] banciii:
Hello!

May I ask how should it be installed properly from Play Store (on a Nexus 5 with the latest official CM 12.1 nightly)?

A few months ago, I used it a many times and I was able to install it fine. But now I am a little bit confused.

First (few) confusion(s), Play Store shows me the new, materialised app icon, but with version number 2.0.0.0, but with 9th of October update date. And after I download it, in my app drawer I see the old app icon. o.O Err, alright, I open it. Now it asks me to install it as a system app, just as usual. (SELinux: Permissive) Alright, I install it, then reboot. After reboot, I open the app and it shows me that BATTERY_STATS Granted, DUMP Granted - This is a companion app to BBS. o.O And Play Store notifies me about there is a new update for BBS. (Unchanged version number in details and changelog: 2.0.0.0.) o.O Oookay, I update it. I open the app, looks fine. (Despite the fact that it shows me a 250%/hr consuption from the last 1.5 minute.) Just to be sure, I make another reboot. That's it for now. Am I missing something? 2.1 won't be available in the Play Store, it will remain as an XDA exclusive version? :$

Best regards,

Zalan

---------- Post added at 02:26 PM ---------- Previous post was at 02:25 PM ----------

Hello!

May I ask how should it be installed properly from Play Store (on a Nexus 5 with the latest official CM 12.1 nightly)?

A few months ago, I used it a many times and I was able to install it fine. But now I am a little bit confused.

First (few) confusion(s), Play Store shows me the new, materialised app icon, but with version number 2.0.0.0, but with 9th of October update date. And after I download it, in my app drawer I see the old app icon. o.O Err, alright, I open it. Now it asks me to install it as a system app, just as usual. (SELinux: Permissive) Alright, I install it, then reboot. After reboot, I open the app and it shows me that BATTERY_STATS Granted, DUMP Granted - This is a companion app to BBS. o.O And Play Store notifies me about there is a new update for BBS. (Unchanged version number in details and changelog: 2.0.0.0.) o.O Oookay, I update it. I open the app, looks fine. (Despite the fact that it shows me a 250%/hr consuption from the last 1.5 minute.) Just to be sure, I make another reboot. That's it for now. Am I missing something? 2.1 won't be available in the Play Store, it will remain as an XDA exclusive version? :$

Best regards,

Zalan
[BetterBatteryStats] shaggyskunk:
Yeah I've purchased the Donate version of BBS - But I always use the XDA versions - The way that I install BBS after a Factory Reset etc - I copy the apk to System Priv-App and fix Permissions - Reboot - Grant SU permissions and done ?

BUT - I believe that chamonix preference is not to install using my method....

Sent From my SM-N910W8 Running SlimRemix V5.1
[BetterBatteryStats] :
The same way I'm installing the BBS apk for months now :) it's working great 'til today
[BetterBatteryStats] nmlssit:
What Is this "Various" that Is killing my battery? It doubles the consumption of the display with full brightness!
[BetterBatteryStats] IronTechmonkey:
While using an android virtual machine to test something else non hardware specific, for a larf I installed newest BBS 2.1.0 post RC. Installation went fine (install system app reboot, reinstall) , and BBS gets proper permissions although, as a VM the device is perceived as charging so there is no need for the stats. Still, it serves to show no issues with the instalaltion in KK 4.4.2 with super SU in a quirky droid VM. Details of OS in spoiler.
[BetterBatteryStats] d8389:
Patched version for Samsung Lollypop TW

Problem:

SELinux on Samsung firmwares blocks dumpsys execution when running command as root.

Solution:

Run dumpsys as regular user (seems to producing correct results.

Installation:

Since a can't sign patched file with original signature, you should completely uninstall original version and remove system apk from /sysem/priv-app. Copy attached file into /sysm/priv-app. Set permissions 644. Reboot.

Apply only on Samsung TW 5.x ROM's with SELinux - Enforced. No wake locks, no additional Alarm information etc. with offiicial BBS
[BetterBatteryStats] gazorby:
Hi,

I have an annoying problem with BBS : i can't see any partial wakelock, the app show "No data has been collected yet"...:crying:

I've a Nexus 5 with cataclysm 6.0 Marhsmallow rom, kernel (blue spark r30) and SELinux set to permissive mode.

Also, I've actived watchdog option but it doesn't do anything...

i can't attach logcat for now, sorry :crying:
[BetterBatteryStats] m0han:
the apk i now have in /system/priv-app is only 93,465 bytes, whereas the apk from xda is 3,297,813 bytes. so, should the latter be copied to /system/priv-app, renamed as 'com.asksven.betterbatterystats._xdaedition.apk', permissions set as rw- r-- r--, owner & group set as root and the device rebooted, when i next reset the device or flash a new rom? guys, please clarify. thanks.
[BetterBatteryStats] :
Yep, that's the way I'm using
[BetterBatteryStats] m0han:
any idea about the difference in size of the apks?
[BetterBatteryStats] chamonix:
The situation you have is due to the fact how the Play Store handles new versions: there is only one description record, for multiple APKs.

On friday I have uploaded the new APK, started the staged rollout and updated the description with the new changelog and assets.

Now as the rollout is staged (currently for 10% of the users) you may see the new records with the new assets even if the new APK is not available for you to download as per the selection mechanisms for staged rollouts. This is unfortunate as you can imagine that I get this question a lot by mail but there is nothing I can do about it. Exceet the staged rollout to increase in count during this week so that the APK will finally reach you.
[BetterBatteryStats] It_ler:
I still have the issue that the responsive widget shows the Awake time in the graph (red segment of the circle) correctly, but the Aw time is displayed as "0s":

Am I the only one with this issue?

Signature:

Device:

SGS5 (SM-G900F)

ROM:

AllianceROM v9.1

Kernel:

Stock XXU1BOE6 kernel

Recovery:

TWRP recovery by Ktoonsez

Modem:

XXU1POG1
[BetterBatteryStats] IronTechmonkey:
Good catch. I'd have not noticed because in my case the value is incorrect but not 0 and is variable. At the time of this screen grab 20m 7s awake was being reported by main app and other widget but, responsive widget it showed a value of 8 m and some seconds.... and counted down as I kept refreshing it until I grabbed the picture

Then after leaving the screen off for 2 minutes with a wifi sync app (MyPhoneExplorer) keeping a wakelock, both the correct value in the other widget and the incorrect value in the responsive widget added those 2 minutes as expected. I wonder if this is an issue that ocurrs only when the widget is first placed. Will leave them both in place and try a reboot to see what happens.

[EDIT] Post reboot. I see what you see - 0 for awake in the responsive widget. Tx again.

[MENTION=1330150]chamonix[/MENTION] I know you have bigger fish to fry but if you need testing results and logs for this widget stuff just say so.
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION],

facing some problems with my new LG G4 - it`s the same situation with KWLs missing, as it was with LG G3, before you parced something. Is it possible to resolve this? These are the logs attached, if it can help.

View attachment 4.RAR

And another thing - I cannot enter App ops from the app, maybe there`s not related with BBS, because I cannot enter it with other app, that worked for Lg G3 (App ops starter) either.
[BetterBatteryStats] banciii:
Oh, I see. Thank you very much for your detailed explanation. Btw. the new 2.1 version is running in the background all the time now and shows the SU # sign very often. Is it normal? I know it's just 5-6MB RAM usage, I'm just used to less background processes. But if it will remain in this shape, I can deal with it ofc. :p
[BetterBatteryStats] Nick_101d:
Since few days my rooted p70 A is draining battery soo much. The power manager shows 40% hardware battery consumption by signal then the WiFi and then the CPU. It never happened before I installed busybox and I even tried recalibrating the battery but hardly any difference. Can anyone please help me out here? I'm new to xda
[BetterBatteryStats] mondohow:
Read Post#1. Specifically the part If you need help http://xdaforums.com/showpost.php?p=15869868&postcount=1

Also read Post#3 - How-to and FAQ http://xdaforums.com/showpost.php?p=15869904&postcount=3

Once done post your dumpfile/log file here and someone will take a look and let you know.
[BetterBatteryStats] chamonix:
I will look into a new specific parser: #733

About AppOps: this is afaik specific to whether the intent is still available on your device
[BetterBatteryStats] chamonix:
BBS has always run as a service in order to catch the events to create the references. THe fact that SU keeps asking for SU-rights depends on the implementation and of the settings that you have chosen. Granting BBS permanent SU rights should solve the problem, or the SU tool/version that you are using has an issue.
[BetterBatteryStats] IronTechmonkey:
That native SU # will be visible continuously if you have any app with root access which runs a service (BBS, LMT Pie, many others). under those circumstances the indicator became so meaningless that CM recently added an option to disable it, although I've opted for SuperSU.
[BetterBatteryStats] Wh1t3Rose:
[MENTION=1330150]chamonix[/MENTION] I'm have Nexus 5 on Android Marshmallow. I've noticed that when my device is in deep sleep BBS and GSAM both quit tracking stats. I believe this is due to the new Doze feature. Any suggestions
[BetterBatteryStats] chamonix:
What do you mean by quit tracking? Do you get wrong results or an error. Please also provide a logcat + dumpfile
[BetterBatteryStats] chamonix:
As bbs keeps a root shell open to avoid repeated expensive operations this makes sense and is consistent to the implementation. Personally I prefer Supersu too
[BetterBatteryStats] Wh1t3Rose:
I mean if I do a fresh boot of my phone so stats are cleared and then I use my phone for about 5 minutes or so and then put it to sleep, it'll only have 5 minutes with of stats until I turn my screen back on.

In other words it thinks my phone has only been on for 5 minutes even though it's been in deep sleep for several hours. GSAM also does this as well.

I'll get you a log in about an hour or so.
[BetterBatteryStats] chamonix:
I tested that on my N5 with Marshmallow+root+elemental and can not confirm:

1. boot, wait a while, open BBS -> Since 23s

2. turn phone off for a while, turn back on, refresh: Since 5 min, all values are shown

Can you confirm what setup (su, kernel, ROM) you have and also check if you have any powersaver app active that may prevent BBS o do its job?
[BetterBatteryStats] Wh1t3Rose:
Supersu 2.52. Catacylsm Oct 7th build. Stock Catacylsm kernel. I have no powersaver apps, app cleaners, or anything of the like. Very stock and minimalistic setup.
[BetterBatteryStats] IronTechmonkey:
For what it worth, in CM12.1 recent official nightly I updated from SuperSU 2.46 to 2.52 via TWRP 2.8.7 and BBS is properly showing stats. There has been a recent minor issue with some stats in widgets but I'm assuming you are getting your stats from the main BBS app for this.
[BetterBatteryStats] walda:
Hi.

Any idea why I can't install on

http://xdaforums.com/galaxy-s6/development/rom-xtrestolite-deodexed-mod-edition-1-0-t3094423

?

Never had problems but with new version of the rom I cannot install as system app. It fails.

I was on 2.0 and 2.1 isn't working also.

Thanks

Edit:

Did it now via Recovery.

... tap@talked
[BetterBatteryStats] Nick_101d:
Here is the log

file:///storage/sdcard0/BetterBatteryStats-2015-10-14_094836695.txt
[BetterBatteryStats] mdamaged:
You realize that noone but you can access that log file, as it's a local path.
[BetterBatteryStats] Nick_101d:
Here is the link

/jumpshare.com/v/ZHTd8hkWamPAEq0b64do

Remove /
[BetterBatteryStats] Lownita:
What is causing the net_scheduler wakelock? I am seeing this the first time since being on marshmallow.
[BetterBatteryStats] Primokorn:
Reported in M preview: https://code.google.com/p/android-developer-preview/issues/detail?id=2468

Probably due to bad signal.
[BetterBatteryStats] mmm286:
Hi

Recently I bought a Xperia z5 compact and I see a lot of time used in battery statistics with the text radio mobile. I check wakelocks and I see these:

http://imgur.com/0AoP9WK

Is normal? There is some way to prevent these?

Many thanks

---------- Post added at 05:24 PM ---------- Previous post was at 05:23 PM ----------
[BetterBatteryStats] lakshmish:
Hi I've been using this software from last one week and its been great at finding out my battery drainers. But the only problem I am facing is that I am not getting full info when I click on alarms. I only get no of wakeups but not the 'intent' info. I have tried enabling 'alarms using API' but still I can only see no of wakeups. Please help.
[BetterBatteryStats] IronTechmonkey:
Have you reviewed the original post (OP) in this thread? If not, or if only quickly, it would be a good idea (in fact it is a rule) to read it. It may contain your answers:). That said, some troubleshooting questions for your scenario come to mind: What version of android? what stock version or custom ROM?, is it rooted?, is it rooted by SupeSU? Was Better Battery Stats properly installed as a system app? I suggest that you line up the answers to those questions and review the original post and search the thread, focusing on details about root and about the proper way to install Better Battery Stats. If the questions don't make sense you might want to do some research on the applicable topics in general.
[BetterBatteryStats] lakshmish:
Sorry I should've posted those details earlier itself.

1. My phone is a Lenovo k3 note

2. I am using aosp 5.1 lollipop based custom rom called Androium 2 which is rooted with SuperSU

3. I have already installed Better Battery Stats as a system app.

I do admit that apart from first couple of pages and last few pages I haven't spent considerable time going through this vast thread which I will do now and get back. Thanks.
[BetterBatteryStats] FernBch:
Can we make feature suggestions?

If so can the ability for the system app to survive ROM flashes be implemented?
[BetterBatteryStats] ManUtd07:
What do you mean they don't play nice? I'm on MIUI and a lot of times when I open BBS nothing shows up. Not complaining, just wondering if that's an issue that's known.
[BetterBatteryStats] Tommmii:
What you describe is a known issue, and our Dev is aware of it. Unfortunately the root of the issue is not at his end but at the MIUI end.
[BetterBatteryStats] manekineko:
Is there an app that can keep an eye on partial wakelocks, and notify me if an app has been holding one for more than 5 minutes with the screen off?

If not, then this seems like it could be a great feature addition in the future.
[BetterBatteryStats] jeremysherriff:
Seems to me this would actually case wakelocks?