yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Szczepanik:
According to Google's Dianne Hackborn, the batterystats.bin file in the data/system/ directory has no impact on the current battery level shown to you.

It has no impact on your battery life.

Deleting it is not going to do anything...

https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT

Cheers

Tom
[BetterBatteryStats] mmm286:
Many thanks, I'm trying to do a log with 3G, and I post the results in the post.

Thanks again!
[BetterBatteryStats] ponicpool:
Hi

From my attached dump file do you find anything suspicious? Because I find my battery is draining quite fast even though I have used for only one hour?

http://db.tt/yjazzIK8

Reason why I post this is last time I got excellent battery life. See below my screenshot
[BetterBatteryStats] longfeng:
list down what are the apps you have added during this period and we can zoom in to the culprit.
[BetterBatteryStats] ponicpool:
I have added friendscaster but due to heavy battery drain I removed it. Besides	I added DeliciousDroud and sync frequency I set as 12 hours.
[BetterBatteryStats] longfeng:
If deliciousdroud is the only app, it must be the cause. remove it and see the drain.
[BetterBatteryStats] yhrn:
Hi Chamonix,

I got the full phone freeze when checking alarms in BBS again. I've had it a couple of times but never gotten around to grabbing any logs (sorry about that :o). Anyways, this time I did. Couldn't get a logcat since my PC couldn't find the device when plugging it in but I did get last_kmsg after reboot. Hope it contains some clues.
[BetterBatteryStats] s2d4:
remove Skype or live with it, at least log out if you are not using it.

And you may need the enable/disable fast net dormancy since your svnet domancy holds some wake lock too
[BetterBatteryStats] ponicpool:
What exactly is fast net domancy?
[BetterBatteryStats] longfeng:
don't install unnecessary apps as they "stick" to your phone even you uninstall them.
[BetterBatteryStats] s2d4:
basically if your network supports it, you can enable it. Otherwise its just battery draining, so disable it.

Use Google to search for the full description and the technical stuff if you want.
[BetterBatteryStats] ponicpool:
Oh, you mean no way I could remove traces of uninstalled apps?

That's my bad.
[BetterBatteryStats] vudu:
How do I reset the alarms stats? I've gone through a few charge cycles, cleared history, but the alarms keep showing the same numbers. Thanks.
[BetterBatteryStats] chamonix:
Release 1.5.1

A bugfix is rolling out.

- better ICS support (graphs)

- FC on MIUI

- hang when opening alarms screen

I'd be happy to get your feedback on those topics
[BetterBatteryStats] chamonix:
Till I have added a reference for alarms you need to reboot to reset the counter
[BetterBatteryStats] chamonix:
Last call for translations. I will build / upload the next beta in a few hours
[BetterBatteryStats] Karpfenhai:
Could you manage to implement some of the missing optocosmetic features?

Regards
[BetterBatteryStats] mag01:
Go go go! :D

Just one last thing - as I didn't translate the changelog, there's no xml-cs/changelog_master.xml file at all. I'm not sure if it will work as I expect (e.g. if it's missing the default - English - one will be used). Are you able to test it before publishing the B5? If not, then we'll see what happens in the real app. :)
[BetterBatteryStats] Casanoaa:
Hi Karpfenhai and Chamonix long time no see. I'll hope u are doing fine :))
[BetterBatteryStats] Karpfenhai:
I assume we do, what about you daddy? :)
[BetterBatteryStats] gaich:
Changelog updated. Please merge #549

Just create it:

View attachment 3023323

And place translated changelog text.
[BetterBatteryStats] atrix4nag:
yes, i have disabled all google.location services as per system tuner services disabling technique suggested in this thread. So may be i have to revert back, and deal with few wakelocks if I want to use the app..

As of now, I can open the app, but it gives me an error message as "Google has disabled use of the Maps API for this application. This site is not authorized to use the Google maps client ID provide. If you are the owner of this application, you can lear more about registering URLs here: <google regiestering URL>"
[BetterBatteryStats] mag01:
Yes I could, but for now I just want to leave it in English. So the question is whether it will work that way in the current state, or whether an explicit creation of 'cs' resource (even though it will be actually in English) is needed.
[BetterBatteryStats] Casanoaa:
Thx now I got me a S5 flashed neatrom. Saw also Itler at that thread. I am fine thx bro.

I will be around if I can help just say
[BetterBatteryStats] vldesco:
Is There a translator for Spanish? if no, I can help, maybe no for this build, but for the next I can for sure
[BetterBatteryStats] seky2205:
I can try to translate it to croatian.. :)
[BetterBatteryStats] dr.wtf:
if i would have known its your translation i would have phrased it differently :)
[BetterBatteryStats] chamonix:
Well I have removed the cards layout as it is more friendly to real estate and I wanted to get feedback on that first. Resizing is in the backlog for B6 if still needed.
[BetterBatteryStats] chamonix:
Hey mate, nice to see you around. All fine at this end :)
[BetterBatteryStats] chamonix:
Thanks for reporting. Yesterday I discovered yet another change in constants by google that may be a good explanation for that. I have merged them into B5 and hope it will fix the problem
[BetterBatteryStats] chamonix:
I am aware of both problems. Partial wakelocks should be fixed with B5, for kernel wakelocks there are still some issues with SELinux but I have added some code to try to work around that:

- su access of files

- API mode (advanced settings) to retrieve kernel wakelocks from the API instead of the kernel. There will be less details so that is not the preferred setting

If kernel wakelocks don't work with B5 (in native kernel mode) you can still switch to API but I'd be interested in a logcat prior to that. Restrictive SELinux does not make any problems on my N9 but some users have less luck so I need logs to figure out what goes wrong.
[BetterBatteryStats] chamonix:
merged. Thanks a bunch!
[BetterBatteryStats] chamonix:
B5 is up!

If you encounter problems with kernel wakelocks on Lolipop please send me a logcat; I can reproduce on my N9 with enforcing policy so it's important for me to know:

- what SELinux policy do you have: just attach a dumpfile, the info is in there

- why does the 'su' access to the kernel files not work: please add a logcat as I have added some logging code

- what SuperSU version are you using

You may have noticed that some translation is going on and I appreciate the offers to support translating BBS. I will put up a separate section in post #1 telling how you can contribute.

Enjoy!
[BetterBatteryStats] wonsky21:
Just a thought: would it be possible to announce new builds via Pushbullet?

GT-I9505 | SlimKat 4.4.4 jflte 8.14 WEEKLY
[BetterBatteryStats] Tunasty:
Where can I download the B5 from? Looked all around on your website.

-Tunasty
[BetterBatteryStats] chamonix:
Translation chapter added to post #1
[BetterBatteryStats] fdc77:
why i can't install as system app on my jflte with cm11 ?, only with lucky patcher i have success, titamium failed too!!
[BetterBatteryStats] chamonix:
Betas are announced in the forum only on purpose. After the betas Release Candidates are announced on twitter and also distributed on google play for registered testers.
[BetterBatteryStats] chamonix:
Well, if you don't provide a logcat I will not be able to tell you or provide a fix.
[BetterBatteryStats] chamonix:
Please see the first post of this thread for details about submitting your translations
[BetterBatteryStats] mag01:
[MENTION=1330150]chamonix[/MENTION]

Both modes for kernel wakelocks fail for me, logs attached for both.

Using SuperSU 2.25 beta at Android 5.0

Shouldn't the autorefresh title in strings.xml have also its summary string? There's currently only

<string name="pref_auto_refresh_title">Auto refresh</string>

And what I see in UI is this title and then max. signed integer value under it. So I think we could be missing something like pref_auto_refresh_summary

I will check other things later.
[BetterBatteryStats] chamonix:
An you can tell all that after 4 minutes?
[BetterBatteryStats] Casanoaa:
Sounds good bro. U are working hard I see. ?
[BetterBatteryStats] chamonix:
That's weird: both logcats shows that the kernel file is being accessed. Potentially of course it is possible that there have been no wakelocks withing the 6 minutes of your reading. Could to try and see if there is somethign showing in the raw stats?

Edit: #550 for the strings, thanks
[BetterBatteryStats] Karpfenhai:
Imho it is :) the new graphs are nice but I figured some glitches but I'm not sure if they are intended, the battery graph seems pinned, which leads to:

Currently I'm not seeing kernel wl as well but i need to charge first, yes they are visible in raw stats.

From - to are not suppressable yet. (Not sure if you have considered)

Font size for consumption, to big, and again circle thickness plus icon size, see yourself:

Compare circle 1.16 vs. 2.0

Circle should be more light (3-5 px), size and font slightly smaller or adjustable.

Edit: kwl are working, no issue @ 4.4.4 [emoji106]

The header (green area) could be smaller.. but that's a personal opinion..

Theme issue:

Hardware menu key:

3 dots menu:

Regards mate and keep the good work up!

---------- Post added at 01:56 AM ---------- Previous post was at 01:55 AM ----------

[/COLOR]

Hey there, I think you may see it in the wrong way,

screen on = screen dark + screen medium + screen light , it simply sums up all screen states, so your result is perfectly fine [emoji41]

Agreed?
[BetterBatteryStats] akenis:
On 5.0 and had BBS installed from play store, before realizing it didn't work. Used Titanium to wipe data and uninstall before installing latest beta. Am I good to go or should I reflash ROM? Read a couple of pages back that they used different install directories. Just wanted to make sure I'm not left with bad remnants....
[BetterBatteryStats] chamonix:
You are good to go. Use the in-app install or alternatively the recovery zip from post #3
[BetterBatteryStats] Tunasty:
Still trying to figure out how to get on the latest build

-Tunasty
[BetterBatteryStats] chamonix:
I am not sure that I get what you mean with "welcome screen"

that would be arrays.xml if I am not mistaken, will move those to strings.xml: #557

#554

#556

#555

[/QUOTE]

preemptive stuff like I/O is not recommended in the main thread because it can cause frame skipping. I am aware of that but in some cases I can't avoid it without make everything asynchronous.

Yea I started with the pins as this is needed for the other stats and for another top-secret idea of mine. I will switch the style of the battery graph to cnnecting the dots instead: #551

I had the idea of letting them slide below the toolbar but haven't gotten into that yet: #558

Your screenshots convince me: #553, #521

Wow! that is a bad one, probably a bug in appcompat :-/ I will investigate: #552

Thanks you guys, for the detailed reporting!

I will pressure myself by updating my N5 to lolipop (didn't plan to a I have a n9 and and my n6 was ordered). As the N5 is my 4.4.4 test device I will revert later but for now we don't seem to have any issues on pre-lolipop so that is fine
[BetterBatteryStats] RASTAVIPER:
But its available as always in the first post.

What could be so difficult to figure out?
[BetterBatteryStats] ZUI Team:
Awesome!Thank you!
[BetterBatteryStats] mag01:
I mean that welcome window that's displayed upon the very 1st launch of BBS. You can simulate it by deleting the application data.

com.asksven.betterbatterystats.FirstLaunch.java method showInfoDialog()
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION], I added some thoughts about translation in #550 comments as well.
[BetterBatteryStats] seky2205:
I have installed beta5 on lollipop 5.0.3 by pabx on xperia z.. Everything seems to be working just fine..

I have only one thing that seems a little ilogical.. Whole time while I'm connected to wifi program is counting No data signal connection which is how its supposed to be but it also counts No or Unknown signal which is ilogical because i have good signal whole time.. And no data signal and no or unknown signal have exactly same time

I hope you understood what I was trying to say
[BetterBatteryStats] Karpfenhai:
It's an Android design flaw and cannot be avoided yet :(

Regards
[BetterBatteryStats] Perseus:
The zip seems dated a bit. ven if I replace APK inside the zip with latest apk, It does not seem to install the app properly. I still get the error of Battery Dump not granted.

Actually I think

screen on = screen medium + screen light

Screen Dark = Screen Off. Should count in there. Am I Right @chamonix ? Or am I confusing myself ?
[BetterBatteryStats] RobertusITA:
Kernel wakelock says not stats have been collected yet

Is a bug?
[BetterBatteryStats] chamonix:
it doesn't really matter as the only thing that counts is that the manifest requests the perm that the main app requires. Did you have problems installing the apk with the original zip?

screen dark is a mode where screen is still on but dimmed it it should be screen on = screen dark + screen medium + screen light
[BetterBatteryStats] Perseus:
No I had no trouble installing the app within the Zip. It wasn't latest version though. I tried late last week. The latest apk can install itself as expected. Its working fine so far.

Thanks for clarifying my misinterpretation on Screen Dark.
[BetterBatteryStats] mag01:
Actually here are all possible states of screen on: http://grepcode.com/file/repository...id/4.4.4_r1/android/os/BatteryStats.java/#786
[BetterBatteryStats] chamonix:
[MENTION=4563466]gaich[/MENTION] and [MENTION=5543250]mag01[/MENTION] : I have moved all translatable string from array.xml to strings.xml

Can you please update your branches? If you feel that there is the need to translate more from arrays.xml please let me know so that we can discuss that (I don't feed comfortable translating everything)
[BetterBatteryStats] chamonix:
Please be very very careful with these constants. These are the ones that google keeps chaning from release to release, breaking BBS everytime. If you want to feel my pain, track the changes to STATS_CURRENT over the history of android :)
[BetterBatteryStats] mag01:
Yeah, at least between 4.4 and 5.0 they remain intact. But it was mainly for information purpose - to show which states may count into the overall screen on.
[BetterBatteryStats] seky2205:
I have just finished translating to croatian. Can someone please pm me and explain how this github works. Thanks :)

P.S. i put my translation to attachments so take a look and tell me if that is how it is supposed to be done :D
[BetterBatteryStats] mag01:
Basically register at GitHub, fork https://github.com/asksven/BetterBatteryStats, add your translation there (res/values-hr/strings.xml), commit, create a pull request against the upstream (from which you forked).

https://help.github.com/articles/fork-a-repo/

And periodically sync your fork against the upstream:

https://help.github.com/articles/syncing-a-fork/

http://www.hpique.com/2013/09/updating-a-fork-directly-from-github/

Though it's possible to perform basic tasks via the web interface, doing that at your side might be more convenient.

At Windows, you may use their own client https://windows.github.com/ to simplify that.

Otherwise you may use either commandline git or look for some git frontend (e.g. some GUI) to simplify that.

All the required steps are also described at https://help.github.com/
[BetterBatteryStats] gaich:
Updated.

I did not notice "No" string, there are "Yes" and "OK" added, afraid that "No" button would remain in English in dialogues.;)

And some more things that could be translated:
[BetterBatteryStats] mag01:
[MENTION=1330150]chamonix[/MENTION]

I added some more candidates for translation into https://github.com/asksven/BetterBatteryStats/issues/563

There's a good chance that will cover almost all of them. There are few others in the commented out parts of Java code od XML, I skipped them.
[BetterBatteryStats] LucentBirch:
I have been getting a ton of com.google.android.gms alarms lately, specifically the MCS_HEARTBEAT alarm. Sometimes even the SEND_IDLE goes a little crazy, but the HEARTBEAT one has been acting really wonky lately. Can anyone explain what they do and what I can do to stop/limit them? I found posts on this thread from like 2012 about disabling a bunch of the gtalk services but that hasn't done anything to limit them...
[BetterBatteryStats] Karpfenhai:
[MENTION=1330150]chamonix[/MENTION], there's another minor design glitch in dark theme, just a wrong color value:

Barely readable :)

Edit, on PC it looks brighter than in reality, the green text should be lighter.

Like This one here instead of That one here

Regards
[BetterBatteryStats] chamonix:
#564
[BetterBatteryStats] chamonix:
Thanks guys! I have pushed the changes
[BetterBatteryStats] mag01:
[MENTION=1330150]chamonix[/MENTION]

Creating 2 more issues

https://github.com/asksven/BetterBatteryStats/issues/565 - regarding the new system app installation location at Android 5.0

https://github.com/asksven/BetterBatteryStats/issues/567 - today I noticed that 2.0B5 sticks to getting Alarms stats via API regardless of how do I configure it. Since I can't attach zip archive with logs to the GitHub issue, I'm attaching it here (bbs2b5-alarms-stuck-to-api.zip) and will refer to it from that issue.

EDIT: few more candidates for translation:

package com.asksven.betterbatterystats.adapters;

public class GraphsAdapter extends ArrayAdapter<String>

- strings at each BatteryGraphSeries

And this appears to be missed:

package com.asksven.betterbatterystats;

public class NewGraphActivity extends ActionBarListActivity

Toast.makeText(this, "External Storage can not be written", Toast.LENGTH_SHORT).show(); - should make use of message_external_storage_write_error

Toast.makeText(this, "an error occured while dumping the history", Toast.LENGTH_SHORT).show();

And in English strings.xml one redundant " at the end of:

<string name="message_external_storage_write_error">External Storage can not be written"</string>
[BetterBatteryStats] brotbuexe:
The string for category network is missing a "t" in German in the last beta. It should be "Netzwerk".
[BetterBatteryStats] SagiGo:
Hello,

Need to your help to diagnose my phone battery drain.

There is a difference between alleged time of being awake and screen on I believe that is a good starting point.

Thank you very much.
[BetterBatteryStats] mag01:
[MENTION=5663664]SagiGo[/MENTION] Hello, please add also network stats.
[BetterBatteryStats] SagiGo:
I already connected it to the charger...

It's a must ?
[BetterBatteryStats] Perseus:
Can you instead attach the Text Dump to a post ? Instructions are in OP Post 3
[BetterBatteryStats] mag01:
Yes, Your screenshots show there's some high network activity. Better to save and attach the text file from the BBS next time. That will have all stats in one place.
[BetterBatteryStats] nordvik:
-and where are they located, what do they do?
[BetterBatteryStats] Perseus:
Kernel Wakelocks = Cumulative summary of other stuff going on.

Partial Wakelocks = App caused wake times. (for the most part)

To answer your Question, AudioIN is typically caused by Any beeps, dings, rings. Please see [GUIDE] The Total Newb's Guide to Wakelocks

Charger Softreg, my guess is either sue to phone being plugged in or incorrect disconnection. Some devices need you to go to home screen before disconnecting from charger. Otherwise this appears. Reboot and it will go away typically.
[BetterBatteryStats] RobertusITA:
I don't understand why to see kernel wakelocks, i need to activate api in settings

How can i fix it to sede in right way ?

I have nexus 5 rooted. Maybe the problem is modified kernel to able root in nexus 5 with supersu?
[BetterBatteryStats] chamonix:
Fixes in strings have been pushed, thanks for the hard work.

About the Alarms being retrieved using the API:

your logcat shows the message: I/StatsProvider(23142): Accessing Alarms in API mode

This part (I have changed the logging to be more explicit) is called when the Alarms were set to be retrieved using dumpsys but have failed:

if (sharedPrefs.getBoolean("force_alarms_api", false)) <-- this part gets executed when the preference is set to use the API
{
Log.i(TAG, "Setting set to force the use of the API for alarms");
BatteryStatsProxy mStats = BatteryStatsProxy.getInstance(m_context);
int statsType = 0;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
{
statsType = BatteryStatsTypesLolipop.STATS_CURRENT;
}
else
{
statsType = BatteryStatsTypes.STATS_CURRENT;
}

myAlarms = mStats.getWakeupStats(m_context, statsType);
}
else
{
// use root if available as root delivers more data
if (rootEnabled && AlarmsDumpsys.alarmsAccessible())
{
myAlarms = AlarmsDumpsys.getAlarms(!SysUtils.hasDumpsysPermission(m_context));	<-- this part would be the normal path but requires dumpsys alarm to be accessible
}
else if (permsNotNeeded || SysUtils.hasBatteryStatsPermission(m_context))
{
Log.i(TAG, "Accessing Alarms in API mode"); <-- this is what was logged
BatteryStatsProxy mStats = BatteryStatsProxy.getInstance(m_context);
[BetterBatteryStats] Perseus:
Not sure waht you are getting to. The *api* isn't caused by BBS.
[BetterBatteryStats] chamonix:
In fact it is: I added 'api' to kernel wakelocks and alarms when they are retrieved from the API as a fallback, either automatic of by choice (advanced prefs). I did this because the API values for both stats are not as complete as theit counterparts from the file system / dumpsys alarms
[BetterBatteryStats] chamonix:
Great news: after 4 hours of debugging and fixing differences between the wakeup sources in lolipop and kitkat I finally got the kernel wakelocks working in both API and native mode!!!

I don't want you guys to wait until by backlog in empty so I'll allocate it a timebox of two another hours and whatever I et implemented till them goes out, the rest goes to the next beta backlog.