yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] brack11:
Re: [APP][2.1+][16 Feb. - V1.12RC8] BetterBatteryStats

Ok i just checked them, interesting message. Then it's another issue I have. I used to have v1.8 of bbs and it was working perfect and new version cannot save logcat... About a month ago 1.8 saved logcat well, but starting from 1.11 (at least what I tried) it doesn't save logcat. What can cause the trouble? I will try to move back to 1.8 and see if I can get logcat there.

---------- Post added at 09:18 PM ---------- Previous post was at 09:13 PM ----------

Apparently there are no options to save logcat in earlier versions of bbs.

---------- Post added at 09:24 PM ---------- Previous post was at 09:18 PM ----------

1.11 shows all types of stats. But why I cannot save logcat? Anyone knows how to give those permissions?
[BetterBatteryStats] chamonix:
Logcat access has been changed in android somewhere around 4.2. Nevertheless an app should have access to it's own log and that's the reason I had added that feature to BBS. The only thing I could think of right now is that the perms themself are borked. Have you tried to fix the perms using CWM?
[BetterBatteryStats] Hexxer:
Thats hat i get with bbs . stats since reboot did not work. Since screen off are ok
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][16 Feb. - V1.12RC8] BetterBatteryStats

Just upgraded to 4.2.2

Does it makes sense to wait for rc9 or should I give rc8 a go?

:cool:

Tapatalked from my Galaxy SII

---------- Post added at 10:11 PM ---------- Previous post was at 10:07 PM ----------

Read the op and the faq!!

You are still charging the device, you don't have the references created yet!

:banghead: nice Sunday to you :)

Tapatalked from my Galaxy SII
[BetterBatteryStats] brack11:
Re: [APP][2.1+][16 Feb. - V1.12RC8] BetterBatteryStats

Yes, just tried it again, no difference, the same permission issue. Ok, I guess it will be fine with 1.11 for now.
[BetterBatteryStats] chamonix:
If you wait 10 minutes you can go with RC9
[BetterBatteryStats] chamonix:
1.12RC9

New RC is up with a few goodies.
[BetterBatteryStats] HiDEFF:
Can anyone help with my dump file? I'm new to this so not sure what to look for... Thank you in advance.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

I found the private storage, anything else? :cool:

Everything performs well as it had also done on rc8 (couldn't wait), on my android 4.2.2 powered galaxy, something it's wrong with the nexus since the upgrade, it seems it killed my root implementation, have to flash another kernel but not today anymore...

Looks good to me!

Tapatalked from my Galaxy SII
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Disable all locations services in rom / settings.

Disable all autostarts of maps with autostarts app. If you not use maps app disable it with titanium pro.

Sign out of google talk and latitude in maps.

Manual update your accounts.. Google etc..

Before your next dump enable Alarms and network in bbs app.
[BetterBatteryStats] kpavl01:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Is it safe to freeze Google Search app? I never use it.
[BetterBatteryStats] Hilmesh:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Yes if you don't use it, then freeze it.
[BetterBatteryStats] HiDEFF:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Is this the autostarts app you speak of:

https://play.google.com/store/apps/details?id=com.elsdoerfer.android.autostarts
[BetterBatteryStats] kozmo21:
Yes that's it, and the preferred app. There is also Gemini that is free, but doesn't work as good for some.
[BetterBatteryStats] Reatret:
I was redirected here for all my battery saving needs :) any help appreciated
[BetterBatteryStats] skivnit:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Hi, i'm back with a dump now. Done over 10 hours. AlarmManager is still the top partial wakelock. Can't figure out why.

http://db.tt/M1E3YuME

---------- Post added at 10:51 AM ---------- Previous post was at 10:51 AM ----------

http://db.tt/M1E3YuME
[BetterBatteryStats] skivnit:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Disable your music player it plays or running in background.

Log out of talk and latitude in maps.

Make an email account with pop3 settings with manual pull instead of exchange.

Disable backup in rom / settings and use titanium backup.

Disable Google search

Enable Alarms and network in bbs app. Provide an idle log.

---------- Post added at 11:09 AM ---------- Previous post was at 11:04 AM ----------

Facebook and WhatsApp can cause alarm manager wakelock. If you not use them every day disable them and try provide an idle log.
[BetterBatteryStats] mr_pawex:
Here is my problem: I left my phone for a night (about 7h) and I have lsot about 7% of my battery...I have CyanogenMod 10 by ivendor - Beta 1 with Nexus Kernel V8.0, lulzactive and row , scalling 245-1401..I turned off wifi, 3g, gps and I have stats like this. Dunno what causes wakelock.
[BetterBatteryStats] chrone:
dear chamonix,

all look goods on rc9 build on nexus 4 android 4.2.2.

the alarm now get logged as per attached. the attached bbs log is not for searching what causing the battery drain.

so don't waste your time analyzing it. :)

thanks for the fast fixed. :good:
[BetterBatteryStats] smrht:
Can you check mine BBS dump file.

I had last night 19 % less battery when i picked it up in the morning. I had a battery drain of 3 % per hour.
[BetterBatteryStats] Reatret:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

What exactly do you mean by an idle log. The one I provided? :)
[BetterBatteryStats] Casanoaa:
Yes. Idle log: unplug and leave phone 4 hours without touch and dump a file.

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

Disable com.gameinsight.tribez (): Wakeups: 3420

Disable titanium backup to autobackup.. Use manual backup
[BetterBatteryStats] Reatret:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Even though I set both my emails to 'never check' exchange services still pops up :/
[BetterBatteryStats] smrht:
How do i disbale it? Just delete the game or what options do i need to do. I have already disabled the game to send me notifications, but still got the wakelocks??
[BetterBatteryStats] kozmo21:
Google Maps is busy on your phone.Disable all location serivce options in ROM and Google settings. Have a look at Karpfenhai's description of how to "optimize" Maps (link in post #3).

Enable root features in settings for next dump. Make sure to provide an idle dump, unplug and don't touch for 4 hours or overnight. You still had 12 minutes of screen on time?
[BetterBatteryStats] odub303:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

A lot of the issues that are partially resolvable using autostarts now have a much more elegant solution using a new app called Greenify. It's free, and has been working very well for me thus far over the first two days of use. Can't hurt to check it out. Free on the play store.

Sent from my SCH-I535
[BetterBatteryStats] Casanoaa:
Sv: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

I dont no how that game is but delete/disable it if you not use it daily.

---------- Post added at 07:58 PM ---------- Previous post was at 07:57 PM ----------

You have to create the accounts with pop3 settings.

Email.. Create new mail.. Advanced settings.. Pop3
[BetterBatteryStats] HammDroid:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

You can "freeze" it with titanium Backup, then unfreeze it anytime you want to use it.
[BetterBatteryStats] Tungstwenty:
@Sven,

Are the logcat lines related with [libsuperuser] there on purpose? Will you be removing them on the final 1.12 build?

They're pretty verbose and I'm just bringing this up because I saw a couple of pages (example) about ADT not properly setting BuildConfig.DEBUG to false when exporting the apk, and was wondering whether you're aware of it or not.
[BetterBatteryStats] KicknGuitar:
After a few other tweaks, I'm curious about the following (all from this):

Wakelocks

GTALK_ASYNC_CONN

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services):

GpsLocationProvider (Android System)

GTALK_CONN (Google Services)

Alarms

com.google.android.gsf (): Wakeups: 23

Alarms: 9, Intent: com.google.android.intent.action.GTALK_RECONNECT

Alarms: 0, Intent: com.google.android.intent.action.MCS_HEARTBEAT

Alarms: 2, Intent: com.google.android.intent.action.SEND_IDLE

I'm assuming since most of the apps that did appear, I want them too (there's a titanium backup schedule that appears) and Cleverconnectivity manages internet connections. However GTalk is one I'm usure which autostarts I can disable. It is also an app that I don't use unless someone messages me. Does this still require it to "phone in," if it does I won't mind since it seems to draw very little (less than 1%)

Cheers.
[BetterBatteryStats] jasenko:
Hi guys,

I made the changes as requested, and still battery drains too quickly. It was going OK (with very little activity) until last night, I went to bed with about 30% battery left, woke up and only 3% remained. I barely touched the phone, screen time was less than an hour for the whole time.

Dump file attached.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Hey there, since you have the LTE version of the sIII please check this thread whether you find yourself in the same situation --> http://xdaforums.com/showthread.php?t=1811182

Tapatalked from my Galaxy SII
[BetterBatteryStats] skivnit:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

I keep having this long alarm manager wakelocks on both my s3 and note 2. Looks like something i did messed up this thing qince i never used to get these wakelocks.

Dumpsys

http://db.tt/yWf0jF5U

Bbs dump

http://db.tt/9Xs9uWRc

Swyped from another galaxy
[BetterBatteryStats] It_ler:
Don't worry mate, the BBS dump contains some inconsistent stats.

AlarmManager wakelock is 43 m 35 s (2615 s) Count:362 449.6%

But the overall Awake time is 10 m 3 s (603 s) Ratio: 3.4%.

That is not possible.

So BBS has not recognized a since trigger correctly.

The Alarms are looking OK IMO.

Maybe you could gain somem battery life by disabling Tasker.

And you should disable Bluetooth (only enable it when you need it, then disable it again).

P.S.:

You should also add Network stats to your dumpfile (in BBS app menu > Dumpfile, tick all options).

Good luck !
[BetterBatteryStats] nehalem176:
Disable GSF in Autostarts App

Below screen that I disable GSF autostarts in SGN2/N7100. GTALK_ASYNC_CONN wakelock and GSF alarm completely gone

GTALK_ASYNC_CONN_com.google.android.gsf.gtalkservice.AndroidEndpoint (Google Services)

Alarms

com.google.android.gsf (): Wakeups: 23

Alarms: 9, Intent: com.google.android.intent.action.GTALK_RECONNECT

Alarms: 0, Intent: com.google.android.intent.action.MCS_HEARTBEAT

Alarms: 2, Intent: com.google.android.intent.action.SEND_IDLE

Attached BBS for my result
[BetterBatteryStats] Hexxer:
Not sure what to do. Rebooted (and pluged in to transfer files) one hour ago. Try it 3 times to reboot but all i see is "Boot event was not registered yet, it will at next reboot (): (0 s) Ratio: ---%" - PowerCable pluged out ~06:30PM Europe ST - running Hars-Kernel 16.Feb
[BetterBatteryStats] chamonix:
Thanks for reminding me: #342
[BetterBatteryStats] Alive3:
I too am having this issue. Only started occurring since I updated to 4.2.2 after flashing system, boot and recovery.img's.

Was running Franco's kerinal before I flashed the images and installed 4.2.2. Running stock kernal now.
[BetterBatteryStats] TA123:
After re-installing the ROM the Power Management lock up does not go away. Could somebody take a look please.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

It's your ubuntu sync process....

Tapatalked from my Galaxy SII
[BetterBatteryStats] dragon135:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

How do you know which one to disable for GSF related to gtalk?

I see there many duplicates names in your screen shot.

Sent from my GT-I9300
[BetterBatteryStats] nehalem176:
group by application in autostarts and disable process for service checkin and gsf.gtalk.

Disable exactly same in my screenshot underline in RED

then you're good to go. My screenshot

ONLY applicable for N7100 JB 4.1.2 rom

. I noticed cass screenshot just like my previous ICS S2/I9100.
[BetterBatteryStats] dragon135:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

How about gsf.checkin.EventLogService* , are they also need to be disabled?

Sent from my GT-I9300
[BetterBatteryStats] nehalem176:
Disable according to my screenshot from THIS post. I believe my screenshot shown every GSF process that I disabled. Post your new dump after disable. Hope no more com.google.android.gsf.gtalkservice.AndroidEndpoint triggered at your device. Please be careful and not disable other gsf. Might affected your device perfomance.
[BetterBatteryStats] o0boiboi0o:
I used to disable all the entries related to Checkin, Event Log, and GTalk. During ICS era, nothing happened. Apps can function properly. However, now, in JB era, if I did the same thing, I realized that Maps cannot display my location when GPS is on and locked.

Did you check ur Map if it functions properly?
[BetterBatteryStats] nehalem176:
Yes, I do facing the same problem as yours BUT to be safe, I only disable below process only in my screenshot. MY gps worked and gps locked as fast as ususal usual. Btw, I using google map 6.14.1 navigation enable.
[BetterBatteryStats] vitalianoleone:
R: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Excellent app

Inviato dal mio GT-I9100 con Tapatalk 2
[BetterBatteryStats] MU24R:
help me plis

Hi i just want to reduce battery drain can somebody help me here its dump file.

I want to know if its enter deep sleep properly or want to know if some app its causing wakelocks that shouldnt happen cuz i dont know how to read this plis help me:confused:
[BetterBatteryStats] smrht:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

Ty i Will try this tonight.
[BetterBatteryStats] yahyoh:
@chamonix i have small problem

sometimes the app don't show any status at all even after plug and unplug , i had to clear the app data and it happened many times with 1.12 RC's :(

here is the logcat

BTW it happened on my GS2 and on Note2 too
[BetterBatteryStats] yahyoh:
uninstall go sms ( and don't use any of GO crap ) and disable facebook notification :rolleyes:
[BetterBatteryStats] MU24R:
---------- Post added at 05:36 PM ---------- Previous post was at 05:34 PM ----------

Thats all??? Dont have any other problems? Deep sleep mode its normal?
[BetterBatteryStats] yahyoh:
yep thats it :D
[BetterBatteryStats] WWLK:
Please have a look at my dump file

I took a dump after 1 hr 43 min however I accidentally turned the screen on after 1 h 22 m so the phone was in deep sleep for only 1 h 22 m. Please have a look and suggest some action. Thanks. :fingers-crossed:
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][17 Feb. - V1.12RC9] BetterBatteryStats

You're good so far, gosms and Facebook could be less, try another sms app or stay with stock.

For deeper insights provide am idle dump.

Edit..damned to slow...

Tapatalked from my Galaxy SII

---------- Post added at 09:13 PM ---------- Previous post was at 09:06 PM ----------

Disable GPS, if you don't use it, fine tune the location updates from your apps (general advice). Replace exchange with k9 set to pull, disable all autostarts from maps, disable Google search box if you don't actively use it.

Exchange jeboo with speedmod and you are good, all other overhead is caused by traffic.

Tapatalked from my Galaxy SII
[BetterBatteryStats] chamonix:
What is see in that log is:

I/EventDBHelper( 9522): Reference ref_boot created 3 m 11 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)
I/EventDBHelper( 9522): Reference ref_unplugged created 17 m 29 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)
I/EventDBHelper( 9522): Reference ref_screen_off created 45 m 51 s (Wl: null; KWl: null; NetS: null; Alrm: null; Proc: null; Oth: null; CPU: null)

Showing refs being created but being empty so it's a sign that something went wrong in the creating process. Maybe this is a clue:

E/StatsProvider( 3924): An exception occured. Message: null
E/StatsProvider( 3924): Exception: java.lang.NullPointerException
E/StatsProvider( 3924):	at com.asksven.android.common.kernelutils.Netstats.parseNetstats(Netstats.java:84)
E/StatsProvider( 3924):	at com.asksven.betterbatterystats.data.StatsProvider.getCurrentNativeNetworkUsageStatList(StatsProvider.java:1150)
E/StatsProvider( 3924):	at com.asksven.betterbatterystats.data.StatsProvider.populateReference(StatsProvider.java:2291)
E/StatsProvider( 3924):	at com.asksven.betterbatterystats.data.StatsProvider.setReferenceSinceScreenOff(StatsProvider.java:2178)
E/StatsProvider( 3924):	at com.asksven.betterbatterystats.services.WriteScreenOffReferenceService.onHandleIntent(WriteScreenOffReferenceService.java:91)
E/StatsProvider( 3924):	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
E/StatsProvider( 3924):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/StatsProvider( 3924):	at android.os.Looper.loop(Looper.java:137)
E/StatsProvider( 3924):	at android.os.HandlerThread.run(HandlerThread.java:60)
I/ReferenceStore( 3924): Saved ref ref_screen_off

I'll rectify that in RC10 in order to make sure that an error happening in one step does to propagate to the whole process of saving. Except RC10 in a few minutes as I have a batch of fixes ready.

Edit: uploading now
[BetterBatteryStats] chamonix:
1.12RC10

Enjoy the latest with yet a few fixes. Hopefully this one solves the problem of references repeatedly being reported as not created even if the event was triggered.
[BetterBatteryStats] chamonix:
Change in default behavior

I have checked my mails related to support lately and found that there is a huge (really huge) amount of feedback due to the fact that the app does not show any data after install and before an event causing a reference to be save is triggered. For sure it's a FAQ but on the other hand I can not fight that a normal user expects the app to show something at the first start.

As I want BBS to be intuitive I would like to discuss the idea of creating a reference when BBS is started and none exists.

The ideas that I have:

1. create "since unplugged" with current data and a notification telling that this ref has been saved and will be overwritten at the next unplug even

2. create "since installed" and make sure that reference gets deleted once another regular ref is created (and and a fallback rule to use that reference if the chosen one is not there yet)

3. create "since boot" with current data and use the current fallback rule

I tend to 1. as that would not add more complexity to BBS to handle this one-time-event (first run) and provide a more intuitive UX while saving me a few hundred of replies explaining how reference work a month.

What do you think?
[BetterBatteryStats] adamgoon:
Hi all, I'm looking for a bit of advice to track down the cause of an alarm in my BBS log (attached).

There is an entry for "android" which has caused 1400 wakeups in 12 hours.

Has anyone got any advice on how to track down the culprit?

I've got a Galaxy S2 (i9100) running CM10.1 latest nightly.
[BetterBatteryStats] Wacco001:
Very nice idea ! :)

I think option 1. would be a very good choice ..

Cheers,
[BetterBatteryStats] stuart0001:
Re: [APP][2.1+][18 Feb. - V1.12RC10] BetterBatteryStats

I'd just show a message at 1st run to say plug/unplug into charger to set 1st reference then default to the since unplugged stats.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][18 Feb. - V1.12RC10] BetterBatteryStats

To avoid confusion I would prefer option 3, just create a custom ref upon installation and name the spinner "since installed" for God's sake.

Btw, rc10 performs flawless!

Edit, partial wakelocks on the sensation are still messed up... Just for the case you did something...

Tapatalked from my Galaxy SII
[BetterBatteryStats] yahyoh:
i think option 1 is very good choice IMO :)
[BetterBatteryStats] WWLK:
Thanks for the reply but when I turn off all autostarts from maps, my GPS doesn't lock when I open maps. I also tried turning off all of them except the bottom 2 and one near the top (as suggested by someone's guide on disabling maps autostarts) but my GPS still wasn't locking so now I just have the top two turned off.
[BetterBatteryStats] Tungstwenty:
With the current feature set, I think the most adequate is the 1st. Just display a toast stating that because the app was just installed, it is assuming "data starts now" as if the device has stopped charging as of that moment.

If one day you introduce support for multiple (named) custom refs, which I assume will get deleted when the device is rebooted, then you can simply create a custom ref whose name will be self-explanatory and that won't appear any more after the first reboot.
[BetterBatteryStats] o0boiboi0o:
Did you do sth to your GSF? AFAIK, disabling all autostart entries for Maps shouldnt affect ur GPS. And if u disable wrong entries from GSF, ur Maps wont show ur current location even if ur GPS is locked.
[BetterBatteryStats] MoMaz:
Can anyone please help me with this wake lock "schedule nextalarm wakelock"? It's eating my battery up and can't seems to track down the service thats causing this wakelock. Thank you.
[BetterBatteryStats] chamonix:
Re: [APP][2.1+][18 Feb. - V1.12RC10] BetterBatteryStats

No I didn't do anything for the sensation yet. I lack ideas for now but will focus on that once released (the pressure raises as of missing Alarms on 4.2.2)
[BetterBatteryStats] KicknGuitar:
Many thanks, I assume you initially replying to my original post?

I disabled the autostarts you spoke of and so far GPS/Data/Wifi can still find my location on request we'll see what starts up while my phone is asleep. I also noticed a good number of other gsf (ie "update", com.google.android.gsf.update.SystemUpdateService$Reciever) in autostarts but I'll wait to see if your approach takes care of this miniature bugger before experimenting with those.

Just curious, what is GTalk, checkin and gsf? Is checkin the Google Check in service thingy for maps like Facebook has? I'd rather know what I'm messing with than just shooting in the dark. Hopefully this will all I will ask about! Cheers.
[BetterBatteryStats] Zam1000:
Hi.

Can I get some help with analyze the logfile.

I cant really understand it and know what to look after.

My device takes 4.2% / hr while a dont touch it over night.
[BetterBatteryStats] Karpfenhai:
Re: [APP][2.1+][18 Feb. - V1.12RC10] BetterBatteryStats

Disable LTE completely, read a few pages back I posted a link to a thread where your possible issue is handled.

Please tell us how it goes after disabling.

Tapatalked from my Galaxy SII
[BetterBatteryStats] jabooka:
Hi to all,

if somebody can help me with my dump file. Last night I took phone of the charger at 100% and left it over night with 2g only and data off, everything else turned off as well. In the morning i lost only 1% of battery in 6h, but when I looked at settings-battery-history details, I noticed that my phone had been awoken almost all the time with lots of awake lines. Managed to get dump file but was unable to get screenshot due to SOD and battery pull afterwards.

Thank you in advance :good:
[BetterBatteryStats] Hexxer:
Hi,

im 100% sure that this is a Cache or whatever problem on 4.2.2 - If i wipe Cache/Dalvik BBS works absolut perfect. After the next reboot the boot event is not registered. If i clean again cache/dalvik it works again - til the next reboot.

Nexus 4 - 4.2.2 Stock or Harsh