yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] mdamaged:
To clarify, that option is for when you have the "Enable BATTERY_STATS" xposed module installed and have no need for BBS to install itself in /system/priv-app.
[BetterBatteryStats] HaTrED_:
I think I've got it! I'm using that module and I've bbs as system app so I'm duplicating things right?
[BetterBatteryStats] mdamaged:
Correct.
[BetterBatteryStats] chamonix:
As the sub-title of that settings says: for XPosed Module users
[BetterBatteryStats] chamonix:
RC4 is up on the beta channel on google play. If anyone is interested in testing the update process please PM me your account details.
[BetterBatteryStats] chamonix:
Your phone seems to have problems detecting the unplug event. Have you installed BBS on the sdcard or are you using any battery saving app that could prevent BBS from receiving the unplug event?

If that is not the case could you carefully clean the USB port and cry with another cable/charger?
[BetterBatteryStats] godlesplay:
BBS is installed as system app in system/priv-app, I'm not using any battery saving apps, I don't have another cable/charger to test, now I installed RC4 and will try with this version
[BetterBatteryStats] It_ler:
First time running v1.16 (RC4):

I really like the new pie gauge in all stats/views ... but prefer the old bars in Other view.

Perfect for me would be an option to set bars in Other and pie gauge in all other views.

Just an idea ... [emoji5]
[BetterBatteryStats] HaTrED_:
I'm "xposed"!!
[BetterBatteryStats] greyhd:
The option is under settings and check bars instead of pie option.
[BetterBatteryStats] It_ler:
I know ... but it changes the pie gauge to bars in all views.

I prefer the bars only in "Other" view. And want to keep pie gauge as default (for all the other stats).
[BetterBatteryStats] chamonix:
imho that would be a very inconsistent UI but I'll consider it. Won't be a priority thought
[BetterBatteryStats] chamonix:
Ok it needs to be more precise. Xposed isn't enough, batterystats module is of course required
[BetterBatteryStats] sofia-captivate:
Here is my battery with 10-12% left can someome check? i disabled alot of stuff i still dont get why my battery sucks.

[MENTION=3639717]Perseus71[/MENTION] [MENTION=4229457]It_ler[/MENTION]
[BetterBatteryStats] It_ler:
Please provide an IDLE dump.

In (heavy) usage, the battery loss will be higher, and we can't identify the "unwanted" drainers.

And again ... please try with wifi turned off.

---------- Post added at 08:42 AM ---------- Previous post was at 08:40 AM ----------

That's fine ... thanks.

No real issue for sure.

I have set pie gauge as default and try to get used to it also in "Other" view.

But as soon as you implement the option to change it back to bars just in "Other", I will test and use it ;)
[BetterBatteryStats] TA123:
Please see attached. I know that I have WiFi and location services on, but I think that the consumption is still too high.
[BetterBatteryStats] Perseus:
The 2.5 % is predictable given Location Service and WiFi was On.You could remove Facebook if you wish improvement.
[BetterBatteryStats] chamonix:
I'd be more than happy to hear from the gplay beta testers how the upgrade process went. It seems that RC4 is a pretty good candidate and if I hear nothing negative the staged roll-out will begin at the end of this week.

Please free to PM me if you want to be part of the gplay beta test.
[BetterBatteryStats] retired_mnbooze:
RC3 had been solid for me after the "play services / Google search issues". I'll move to RC4 today, but figured it was an L update...
[BetterBatteryStats] tuniel:
Extension

[MENTION=1330150]chamonix[/MENTION]

i have an issue with BBS extension and Chronus..

starting from 1.16.xx, Chronus can't handle BBS extensions. i asked Chronus dev and he told me that it supports dashclock API 2.0, but somehow doesn't handle BBS extension.

Did you do something special with the extensions? Chronus dev was wondering whether you locked down something on your side.. i don't know about it, that's why i'm checking with you

another thing. i don't seem to be able to select any settings for the extension in neither 1.15 nor 1.16. i tried to search the thread and i found a post mentioning it should have been fixed in a beta version of 1.16, but still i can't do that :(

gonna try out DashClock to see how it works.

EDIT: i tried DashClock: it handles the extension, showing data, while i still can't change settings of it.

would you like a logcat?

thanks
[BetterBatteryStats] TA123:
Do you think that the lost on a train is ok? I lost around 10% in 1 hour without even using the phone.
[BetterBatteryStats] Karpfenhai:
Can be considered as normal, switch to 2g and/or turn off data while traveling, should make a big difference then.

Regards
[BetterBatteryStats] Perseus:
That was Location Service, G+ and Android Backup. All predictable. You might have had dead zones along the route that would add more drain searching for signal.

Please apply [MENTION=4355376]Karpfenhai[/MENTION] 's mod. I have given steps in the last 1 or 2 pages.
[BetterBatteryStats] chamonix:
I really don't know what to say. BBS inplements the Dasclock API without any hacks and it is pretty plain and simple:

- a dialog for settings

- a service

<service
android:name="com.asksven.betterbatterystats.services.BbsDashClockExtension"
android:icon="@drawable/icon_notext"
android:label="BetterBatteryStats"
android:permission="com.google.android.apps.dashclock.permission.READ_EXTENSION_DATA" >
<intent-filter>
<action android:name="com.google.android.apps.dashclock.Extension" />
</intent-filter>

<meta-data
android:name="protocolVersion"
android:value="1" />
<meta-data
android:name="description"
android:value="Show info about awake times and drain per hour" />
<meta-data
android:name="settingsActivity"
android:value=".DashClockSettingsActivity" />
</service>

In dashclock everything is fine and the only change from 1.15 to 1.16 was the switch to the new 2.0 API JAR. The source is on github so if the chronus dev wants to have a look it's all there: https://github.com/asksven/BetterBatteryStats

Regarding your problem accessing the settings from dashclock: no problem here accessing them from the gear icon
[BetterBatteryStats] henry8668:
My backup most of time works fine, but sometimes it just die quickly. Attached is one example that it used 7.2%/h. Could anyone help to check which process/program is draining the battery? I can freeze it in titanium backup.

Thanks.
[BetterBatteryStats] guido_glx:
Same here :(
[BetterBatteryStats] Perseus:
Nothing to pin point except maybe your WiFi. Maybe its your Rom has behind the scene drains or a dying battery.
[BetterBatteryStats] henry8668:
the confusing thing to me is that the exactly same setting most of time last for couple days(stand-by), but sometimes it just died less than one day.

and the phone is about 2 months old.
[BetterBatteryStats] apfelstyle:
For me partitial wakelocks, kernel wakelocks and alarms are not working (I'm on rc4)

Nexus 5, android l preview, root

Sometimes it says "Batteryinfo Service could not be contacted"
[BetterBatteryStats] sofia-captivate:
idle with wifi off and data on only. Can you check please? i think i might have to return this phone [MENTION=4229457]It_ler[/MENTION] [MENTION=3639717]Perseus71[/MENTION] Thannks
[BetterBatteryStats] chamonix:
is bbs installed as a system app? if yes please provide a logcat and a dumpfile.
[BetterBatteryStats] chamonix:
It doesn't work does help me.....

what prevents you from changing the settings? please describe the flow, what you expect and what goes wrong. A logcat would help.

Please help me to help you
[BetterBatteryStats] guido_glx:
Great! Here we go...

When I go into DashClock extensions, each one has a 3 dot menu for settings

If I tap on settings for BBS, nothing happens.

I have a logcat saved, but tapatalk won't let me attach it here.

I can upload it somewhere else if you think it can be useful.
[BetterBatteryStats] chamonix:
that would be helpful indeed. I follow the same workflow except I get the settings on my n5 with 4.4.4.
[BetterBatteryStats] It_ler:
Hey ... much better IMO :good:

Battery loss of about 0.6%/h ... while wifi off. And deepsleep ratio of about 97.6% ... that's nice.

So it really seems to be your wifi draining the battery ... as Perseus71 already assumed.

I can see only one "unwanted" drainer in wakelocks: Battery Doctor.

Time to get rid of it?!

(And Instagram is still using your internet connection.)

I recommend Better Wifi On/Off app from Play store (same dev as BBS ... thanks Sven !).

This can manage your wifi state based on rules you can configure. E.g. turn off wifi when screen off/not connected/etc.
[BetterBatteryStats] PeQuEsan:
I just wanted to report my observations:

- Using Xposed module (1.2) + root features enabled: "alarm" section shows root required, and "other" section is empty (no error message). All other things are working just right.

- BBS as system app + root features enabled: all is working as expected.

N5 with 4.4.4 stock + rooted + BBS 1.16 RC4

bye!

PD: I would love to use Xposed module if possible...
[BetterBatteryStats] apfelstyle:
Yes it is installed as a system app.

The error message does no longer appear, but the partitial wakelocks and kernel wakelocks are still not showing up.

Logcat+dump file:

https://docs.google.com/file/d/0B8W2Djw1KHN4TFFfdkVRV1ZWRWs/edit?usp=docslist_api

https://docs.google.com/file/d/0B8W2Djw1KHN4UWZPSERLY1o3SkE/edit?usp=docslist_api
[BetterBatteryStats] chamonix:
please provide a logcat
[BetterBatteryStats] PeQuEsan:
Sorry. Attached. Captured with catlog, debug messages option ticked inside BBS. Working with Xposed module.

There's some exceptions that may help you understand the problem.
[BetterBatteryStats] ccoager:
Not sure what I did to break this. The last thing I remember was disabling the Sync service and now I have a 100% awake with SystemUpdateService wakelock keeping my phone awake. I've since re-enabled the Sync service and rebooted but it did not fix the problem. Anyone know how to fix this wakelock?
[BetterBatteryStats] GabrielSousa:
"install as system app"

dont work for me ?

whats the workaround ?
[BetterBatteryStats] DvTonder:
Ahh, the problem is that you are using the v2 api jar but have not updated the manifest with the v2 service description - what you pasted above still indicates protocolVersion 1 and does not contain the WORLD_READABLE attribute (and have it set to true).

A a result, the BBS Extension it will not work in any Extensions compatible app that is not DashClock itself.

The correct manifest definition should look like this:

<service
android:name="com.asksven.betterbatterystats.services.BbsDashClockExtension"
android:icon="@drawable/icon_notext"
android:label="BetterBatteryStats"
android:permission="com.google.android.apps.dashclock.permission.READ_EXTENSION_DATA" >
<intent-filter>
<action android:name="com.google.android.apps.dashclock.Extension" />
</intent-filter>

<meta-data
android:name="protocolVersion"
android:value="2" />
<meta-data
android:name="worldReadable"
android:value="true" />
<meta-data
android:name="description"
android:value="Show info about awake times and drain per hour" />
<meta-data
android:name="settingsActivity"
android:value=".DashClockSettingsActivity" />
</service>
[BetterBatteryStats] chamonix:
the question would rather be: have you been freezing/Disabling any Google related services?
[BetterBatteryStats] tuniel:
I was sure that you guys would have sorted the issue out! Thanks
[BetterBatteryStats] chamonix:
#476

#476
[BetterBatteryStats] ccoager:
I have no apps frozen. I have Google location reporting off and Google Now off. I have tweaked Google Play Services and Google Services Framework with System Tuner but that wasn't a recent change.
[BetterBatteryStats] guido_glx:
Logcat https://drive.google.com/file/d/0By0tknKFRN47SDdQNGtGTm94NEtlNFdVZ2N1TERaOGZob1pV

And dumpfile just in case https://drive.google.com/file/d/0By0tknKFRN47bjhMWDg1bGFvMGFQTGVXWFNYb21BT3hMc2M4

Let me know if you need anything else :good:
[BetterBatteryStats] skivnit:
Up please
[BetterBatteryStats] floepie:
On the last several releases, now currently at 1.16RC4, the partial wakelocks total exceeds that of the PowerManagerService.Wakelocks in terms of absolute time. Historically, these two were rougly equivalent, if not spot on. Running Stock 4.4.4 on Nexus 5 as a system app.
[BetterBatteryStats] GabrielSousa:
I/SystemAppInstaller(20583): Checking if com.asksven.betterbatterystats_xdaedition.apk is a system app

I/SystemAppInstaller(20583): Command returned ls: /system/priv-app/com.asksven.betterbatterystats_xdaedition.apk: No such file or directory

I/SystemAppInstaller(20583): Checking if system is mounted rw

I/SystemAppInstaller(20583): Mount status: type

I/SystemAppInstaller(20583): Remount system rw

I/SystemAppInstaller(20583): Checking if system is mounted rw

I/SystemAppInstaller(20583): Mount status: type

I/SystemAppInstaller(20583): Checking if system is mounted rw

I/SystemAppInstaller(20583): Mount status: type

I/SystemAppInstaller(20583): Status: An error occured mounting system rw. Aborted

I/SystemAppInstaller(20583): Checking if com.asksven.betterbatterystats_xdaedition.apk is a system app

I/SystemAppInstaller(20583): Command returned ls: /system/priv-app/com.asksven.betterbatterystats_xdaedition.apk: No such file or directory

E/BetteryInfoTest.MainActivity(20583): History: An error occured mounting system rw. Aborted

I/SystemAppInstaller(20583): Checking if com.asksven.betterbatterystats_xdaedition.apk is a system app

I/SystemAppInstaller(20583): Command returned ls: /system/priv-app/com.asksven.betterbatterystats_xdaedition.apk: No such file or directory

I/Choreographer(20583): Skipped 66 frames! The application may be doing too much work on its main thread.
[BetterBatteryStats] ccoager:
I reset the Google Play Services and Google Framework Services in System Tuner back to defaults and rebooted. Now I'm seeing a split between SystemUpdateService and Event Log Handoff, still 100% awake. Any ideas?
[BetterBatteryStats] mrrocketdog:
any help/suggestions ?

am new to BBS , and kinda a newb in general (lol),

was reading in OP about [datatracker-fd]. have a att siii i747 running Quantum v.5 (beta) with QK. how can i check if FD is off/on.? and if on , how do i turn off if need to for.

thanks for help/suggestions. :)

any????

err on the side of kindness
[BetterBatteryStats] chamonix:
but gplay services were updated recently
[BetterBatteryStats] chamonix:
thanks for all the detailed feedback on rc4 and for the logs.

tonight I will be looking into:

- dashclock

- system app install: seems to be mount layout or busybox related, I will probably ask for more feedback

- Xposed tricky but will investigate based on logs, not a priority though.

It occurred to me that I have not got any feedback from the gplay beta testers. This confirms what I already knew: it's not about distribution (gplay can do that) Active but about a community and feedback (Google does not provide that). I am happy to stick around on xda, you guys rock!
[BetterBatteryStats] ccoager:
I fixed it. I ran "Disable Services" and checked Google Play Services. The SystemUpdateService was unchecked. I checked it and rebooted and my wakelock is now gone. Interesting enough though, I checked Google Play Services again and SystemUpdateService is unchecked after reboot.
[BetterBatteryStats] chamonix:
We are getting nearer. Wouly you mind executing:

mount | grep /system

and postion the result?
[BetterBatteryStats] chamonix:
I see you are on the L preview.

a) are you using the image provided by google including the kernel from google or a custom build?

b) what is shown in the raw stats for kernel wakelocks and partial wakelocks?
[BetterBatteryStats] Nightshadow931:
Anybody know how to get rid of GoSMS' LocationManagerService wakelock ? It's in the partial wakelocks, over an hour in three hours since charged.
[BetterBatteryStats] :
Hi guys. I've recently bought a new battery but I still can't get it to last for longer than a day unless I use it for a few calls or texts and a little internet. Can someone please help me figure out what's causing the drain if I post logcat+dump file?
[BetterBatteryStats] u81:
Terminal output- Dumpsys alarm + BBS_Stats + Dmesg + Logcat with Debugging info

[MENTION=1330150]chamonix[/MENTION]

Please find attached herewith : (from RC4)

1- One set of logs with wifi and sync off

2- one set of logs after turning wifi on

3- the terminal output of dumpsys alarm.

Since I upgraded to RC4- I no longer see an error pop up when retrieving network stats, however, there is still no info shown for alarms or network.

I do think it might be a borked SU as you suggested - as I get prompted for SU permissions anytime I open BBS, even though the remember box is ticked. But, strangely enough this only happens for BBS as ES file explorer get the permissions automatically everytime.

So this is all rather confusing.

I look forward to hear from you.

Thanks again.
[BetterBatteryStats] chamonix:
That logcat is valuable.

Now from the logcat I see different things:

1. There is indeed a bug in the handling of other stats _when other stats are retrieved from dumpsys_ (#477) will be fixed in RC5

2. this is not the happy path: you have either not ticket "do not detect system app" or "root feature" in the advanced settings
[BetterBatteryStats] chamonix:
Logcat says:

07-01 13:21:56.080 E/AlarmsDumpsys(17840): An error occured while parsing

I will be doing some unit testing based on the file you provided

:good:

Edit: typo
[BetterBatteryStats] Perseus:
Deny Location Permissions to GOSMS

Go to Settings >Wireless >Advanced uncheck "scanning Always available". Turn off Twitter Sync from Settings >Accounts

Remove Facebook and Deep Sleep Battery Manager. Reboot then provide an Overnight Idle Log.

IDLE = Phone in Standby mode and user not touching it overnight.
[BetterBatteryStats] chamonix:
3 bugs fixed. I am not working on the dumpsys alarm parser and hopefully I will get quick feedback about the system app install bug as well so that I can budle a new RC tonight
[BetterBatteryStats] chamonix:
RC5 is up. As I don't have any test devices at hands (I'm on a business trip) I could only run unit tests and test on my 4.4.4 device. Please give me feedback specifically on the fixed bugs for the given test conditions:

#475: more speaking text for XPosed module settings

#476: fixed dashclock API 2 manifest (kudos to DvTonder)

#477: fixed exception in method to obtain other stats from dumpsys (compat mode)

#478: fixed alarm parsing error on pre 4.2 versions

Open as I didn't get any feedback yet:

- install as system app
[BetterBatteryStats] Perseus:
Removed existing App then Rebooted. Installed the new app and launched. It asked me to make it system App. Allowed to do so. Once done, rebooted a second time. After that all is well.

Don't use Xposed or Dashclock. So can't say about it. Did see in the Settings Screen about the additional text regarding Xposed Setting.
[BetterBatteryStats] Dark_Avenger:
Chronus extension is working again, but not the Settings (button in Chronus extension )
[BetterBatteryStats] mdamaged:
Aaaand just to be different, I didn't uninstall anything, just installed over it, did not reboot, and it works perfect! This was the same on 4.4.4 and L. I did run into a battery service could not be contacted 2x in a row for 4.4.4 when trying to view kernel WL, though, 3rd refresh and it was fine.

Thanks!
[BetterBatteryStats] Perseus:
That's because it took all the older settings of the app from before. The issues will surface on a clean install.
[BetterBatteryStats] mdamaged:
Naa, I've done clean installs and got that error before. It seems to happen randomly.
[BetterBatteryStats] QBall45:
I was accepted to gplay beta test but have not yet seen an update there. It seems likely that this may well have contributed to the lack of feedback from the gplay update.
[BetterBatteryStats] GabrielSousa:
mount | grep /system

/dev/block/platform/msm_sdcc.1/by-name/system on /system type ext4 (ro,seclabel,relatime,errors=panic,data=ordered)

root@jfltexx:/ #
[BetterBatteryStats] DvTonder:
Hi, can you send us a logcat from within Chronus when selecting the config of BBS so we can see if any errors are logged. I think that maybe the manifest may need further tweaking.
[BetterBatteryStats] guido_glx:
Settings for DashClock extension still not working... Everything else is fine!

Let me know if another logcat could be useful

Enviado desde mi GT-I9100 mediante Tapatalk
[BetterBatteryStats] Bilmoussaoui:
hello, my battery drains so fast even if I'm not using my phone at all, tried everything and still don't get a solution.

I'm using cm 11 last nightly

and this is the log files from bbs after a night without using my phone, being charged to 100%. and wifi, 3g, nfc, sync.. are all turned off

https://www.dropbox.com/s/vprfk5y3vphu3sd/BetterBatteryStats-2014-07-02_073045053.txt

https://www.dropbox.com/s/tnoaqh3e9brkw8p/logcat-2014-07-02_073045283.txt

https://www.dropbox.com/s/8sju9b2iac6kp3s/BetterBatteryStats-2014-07-02_073045095.json

thank you
[BetterBatteryStats] :
Thank you for helping me out!

Here are the results.
[BetterBatteryStats] chamonix:
the problem seems to be related to the output format of 'mount' due to different binaries or busybox version. I will work on resolving that this evening.
[BetterBatteryStats] nirav173:
Miui and Dori kernel

Please help me understand how to ddisable fast dormancy and get rid of the wakelocks
[BetterBatteryStats] gGabi:
http://xdaforums.com/showpost.php?p=26819127&postcount=1 :good:
[BetterBatteryStats] It_ler:
Or just use Gokhanmoral's FastDormancy Toggle for i9300 from Play store ... it works fine on the GT-I9100 too.
[BetterBatteryStats] Perseus:
Appreciate if you can post just the text log here.

If you have a lot of music on the phone or SD card, then wipe the data to media storage app then reboot and leave the phone alone for 1 hour. After that look to see if a partial Wakelock for MediaScanner appears. If you don't have music, use "Kill Media Scanner" app from play store. Otherwise both logs are looking good.
[BetterBatteryStats] TA123:
I still don't think it's normal. Just now the phone lost 20% in 2 and a half hour, most of it in 40 min on the train. I understand that when the signal is poor the modem is trying to find it, but I have not had it that bad before.
[BetterBatteryStats] Perseus:
That's a new one. I suspect it could be related to something from HTC Bloat. Some deep embedded feature or something.
[BetterBatteryStats] :
I did exactly what you'd advised and yes, a partial wakelock for MediaScannerService appeared. The data are: 24 s (24 s) Count: 3 0.5%. I'll download the app and hopefully that'll do the trick! do you perhaps know who the developer is? I can't find the app in the Play Store but I'll try to google it as well.

Also, it's amazing how 'hungry' Facebook is. Deleting alone improved battery duration, at least seemingly.

Edit: Looking at various threads/websites, Rescan Media seems to be the way to go. So basically, I disable the service in Settings->Apps and then use Rescan Media when I need it, right?
[BetterBatteryStats] TA123:
Just BBS files attached just in case.
[BetterBatteryStats] lanwarrior:
OK, I am having a bizarre situation with my T-Mobile Note 3 (4.3, stock, rooted). As you can see below, the phone is AWAKE 6 hours out of 9 hours, but there is only 1 hour of Kernel Wakelock and 1 hour Partial Wakelock, plus 2 hours of screen on.

So what caused the other 2 hours of awake time? Can anyone help? Also attached are the JSON, TXT, Dmesg and logcat files ...

BTW, I do

NOT

use Google Now, Facebook, Twitter or any weather program. I turned off GPS all the time.

Looking under "Alarms", only Android and com.sec.ims.android are taking the most time, but there are not much descriptions.