yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Mons1990:
Hi all. This 3D has 2531 pages so you can imagine that the "Search" function is a little not useful and don't blame me if what I'm asking has been already answered. I have Android 4.4 and the last version of BBS installed, then I installed it at system app; the problem is that each time I update the phone with OpenDelta I have to re-install BBS as system app and I lose all the settings. So every week i have to re-configure the app. Is there a configuration file that i can save elsewhere and restore after flash? Please don't suggest me Titanium Backup or other apps cause i've not a lot of space in the internal memory.

Thanks and goodbye all.
[BetterBatteryStats] dylansmith:
hi guys,

i just reformatted my phone and went on the new Omega 4.4.2 rom with their kernel, but didn't expect more problems to come up.

my log can be found here: https://www.dropbox.com/s/g3c47xsif7v48co/Bbs.zip?dl=1

1. it is always awake but looking through the full/partial wakelocks, there isn't anything that woke it up for this long

2. at times, the cpu clock will just lock itself at 1958mhz minimum, instead of the preset 300-2258 range.

3. i have Pushbullet installed, but it keeps telling me that it failed to register with Google for push notifications (related to GCM).

4. it restarts at random times, ( around 2-3x a day). it could restart itself while screen off, or simply surfing the net/fb etc.

hope the gurus here could give some advice on what i can do.

Thanks!
[BetterBatteryStats] kfallz:
For the restarts, you could possibly try searching in xposed under download for "systemserver" and install that mod to see if the random reboots go away. If not, try another kernel if you're still on stock omega, I recently changed to AEL kernel and it's working really good.
[BetterBatteryStats] an0n981:
Look in the OmniRom FlashAfterUpdate thread
[BetterBatteryStats] dylansmith:
Thanks! will monitor the phone for reboots after installing it.

for the other queries, hope someone could help to analyze what caused the 'insomnia' on my note 3.
[BetterBatteryStats] Karpfenhai:
There is a backup script within your /data/local folder, just add bbs to it and you're good to go.

Regards
[BetterBatteryStats] Mons1990:
Thank you for the answers.

What I have to put in the "flash after update folder to preserve settings"?

I looked into /data/local but I've found only a tmp folder (full of garbage) and a file named RootToolsMounts.

I don't use OmniROM but SlimKat, SlimKat for Xperia Sola updates with OpenDelta as well.

Inviato dal mio Sony Xperia Sole attraverso l'app ufficiale xda-developers
[BetterBatteryStats] atrix4nag:
Here is my today log...

Any suggestions for improvement..
[BetterBatteryStats] an0n981:
In the thread you will find a flashable zip which places the bbs system app. Flash it after you flash your rom
[BetterBatteryStats] Karpfenhai:
Im sorry, my bad, it's /system/addon.d

Should look like this.
[BetterBatteryStats] underskyzx:
Can someone tell me why my phone is draining so much battery... http://pastebin.com/SgjuNF8N
[BetterBatteryStats] Mons1990:
Thank you both :o
[BetterBatteryStats] F308:
I am not guru but I see many processes containing word location and this is first thing on 'to disable' list.
[BetterBatteryStats] projektileSAM:
Maybe add a feature that create complete logs when battery dies
[BetterBatteryStats] aberry77:
What would the reason for my KWL time to be drastically longer that all the other stats?

Running LG G3 stock rooted.
[BetterBatteryStats] Wh1t3Rose:
That's got to be a bug? 16 days isn't possible.
[BetterBatteryStats] mdamaged:
Obviously, they are a time lord.:cyclops:
[BetterBatteryStats] underskyzx:
But I have everything location related disabled...

I used Titanium Backup to freeze Google Maps, Street View, etc
[BetterBatteryStats] Wh1t3Rose:
You need to use an app called Disable Service to disable location based sub services for Play Services and GSF
[BetterBatteryStats] egore93:
Does anybody know what's causing the calender to miss behave? I turned sync off I turned everything off that I can see is using it but it just keeps going.
[BetterBatteryStats] threadstone:
Today I also need your help.

Since a couple of weeks I have a Galaxy S5. At the first days / weeks, overnight I have a consumption of round about 2-3% in 10 hours (0,2 - 0,3%/h). Now, I have 10 percent in 5-6 hours (1,5 - 2 %/h).

I know this is not much, but at the stock-"Akku"-App are a permanent wakups.

Some screenshots and a log-file are atached.

It would be great if you can help me to find the culprit.

Thanks in advance.

EDIT:

The first thing I did this morning is to disable the S-Health-app (not the Service).
[BetterBatteryStats] aberry77:
Obviously a bug. Not really sure how to squash it though. Tried unistalling BBS but it's still happening when I reinstall.
[BetterBatteryStats] egore93:
I pulled a log cat to go with it. I guess that would probably help a lot.

https://www.dropbox.com/s/zvl7k96qvaapu4c/BetterBatteryStats-2014-08-24_064953949.txt?dl=0
[BetterBatteryStats] chamonix:
That is obviously a bug. Does a dumpfile for the same ref from/to show the same value?
[BetterBatteryStats] aberry77:
Nope dump file looks normal as far as I can see. I'll try to get a recent screenshot and log and post back.
[BetterBatteryStats] blak24:
Hello everyone, It's been a while since I've noticed this problem for the first time: in some ROMs BBS can't install as system app, it always says "failed", even if I grant it SU permissions. The fact is that as soon as I reboot the device, if I try to open BBS it says "that's only the BBS companion app, it has no functionality at all". It's like BBS is self-uninstalling after a reboot.

I own a OnePlus One, tried with the stock CM11S and it stays installed as system app, tried with another rom (CrDroid) and it behaves like I've just explained. Any idea? :confused:
[BetterBatteryStats] atrix4nag:
Todays my BBS dump..

Very impressed.. Now i think, I can sleep without thinking about battery anymore..

Thanks for each and everyone for their help.. especially for [MENTION=1330150]chamonix[/MENTION] for the wonderfulll app//
[BetterBatteryStats] F308:
Impressive that you have it with Wi-Fi on all the time.

I have currently 0.3%/h as well but without Wi-Fi.

BTW:

I came to conclusion that user applications which don't need network will have network activities off as long as they still work. Like - QuickPic - no net needed if I don't plan use remote storage (like shareToCloudActivity), the less filemanager. Droidwall could not block connections (must have been happening on system level) but handling them with System Tuner should do the job.
[BetterBatteryStats] herubrand:
Hi, my phone is not going into deep sleep mode normally like it used to. Something is causing it to stay awake making it lose upto 2.5%/h of battery and I cant link it to a specific app or anything.

Could anyone take a look?
[BetterBatteryStats] Perseus:
Go to Setting > Wireless > Advanced. Please "Keep WiFi On During Sleep" to Never.

Search this thread for [MENTION=4355376]Karpfenhai[/MENTION]'s mod.
[BetterBatteryStats] herubrand:
Thanks for the quick reply. Ill reply back if it works... or if it doesn't.
[BetterBatteryStats] seanpr123:
Kind of hard to tell from a 2hr snapshot... I also see Play Store downloaded 13mb of data (app updates I'm guessing), which will certainly suck some battery to download and update those apps. Maybe try a new reference with at least 4hours idle, and make sure app updates are turned off.
[BetterBatteryStats] aberry77:
Here is a short reference with the same from/to for the widget and dumpfile.

The log looks good but the widget is way off. Any thoughts?
[BetterBatteryStats] Fgroia:
i installed this in my oneplus one, everytime i rebbot the phone the stats returns to "boot" rather than since charged, is this normal?
[BetterBatteryStats] herubrand:
Thanks. Ill post back later with those conditions.
[BetterBatteryStats] godlesplay:
Hi, I need your help:
[BetterBatteryStats] seanpr123:
Your phone was on for nearly 3hours.

If you read the OP, you need to leave your phone alone for 3+ hours to get an accurate understanding of what's happening behind the scenes (no screen time).
[BetterBatteryStats] atrix4nag:
Just a suggestion: The screen shots (MODS) for auto starts and for system tuner are using old versions, If some one updates them with latest versions (of apps), it would be great for new comers. Its little hard to find some of the services.
[BetterBatteryStats] Perseus:
The List is pretty long and it actually differs from device to device. All you need to know is that you uncheck all the entries that have the word Checkin in their name.
[BetterBatteryStats] atrix4nag:
I am not talking about all the apps, just google play services and location services.. (the main culprits) I am asking this because, I am very confused about using these apps. As of now I am using them, but I am not sure am I doing write thing or not.. I dont want to explain my self do these things.. I can refer to this thread thats it..

As per this thread it says disable these services, but how to go to that service tab is the main tricky part for a new comer. It was Just my suggestion, Its not at all a complaint.. please dont get me wrong.. At least may not be a screen shots,.. atleast a write up in laymans terms.. For a first time user he should be able to do this, without any confusion..

I am not 100% sure that I have done it correctly, so I am not trying to do that...
[BetterBatteryStats] swat4samp:
Install Disable Service. Browse google play services, you will see the list of services for that app, disable individual services. Be careful with what you disable. Only disable which wakes up your device. For example, checkin and eventlog service can be disabled.
[BetterBatteryStats] greyhd:
I am using the same app and works great.
[BetterBatteryStats] atrix4nag:
I am using Disable service app and I disabled few services also.. and I am getting very good battery life after that.. I have no complaints on it..

As you said, disable individual services, so how we find which services to disable, I disabled all checkin and sync services. How to find which other i have to disable.. you said, disable which wakes up your device, where can I find which services waking up my device, if its show on BBS log, where and how can I map them to these services.. I am unable to find direct relation between BBS, and disable services.. there should be some small link, I want to find that, and available for all new comers..
[BetterBatteryStats] swat4samp:
Just check whether play services is waking up your device or not in partial wakelocks section in BBS. If it's there, it would be denoted with some service name (for example checkin, eventhandoff, nlp wakelock etc) Disable those services accordingly and don't forget to reboot after. Wait for an hour and then check if those are waking up your device again.
[BetterBatteryStats] atrix4nag:
In the partial wakelock section it is just showing the app name and app pacakge name.

In alarms section i see app with wakeup service and action. May be you are referring to this section. As of now, play services is just 1% for me. So I am good here..
[BetterBatteryStats] Wh1t3Rose:
[MENTION=4171026]atrix4nag[/MENTION] if you click on Play services in Alarms tab it will list the sub service. The sub service would also be in partial wakelocks if it was an issue.
[BetterBatteryStats] atrix4nag:
yup, i saw those, and i disabled 2 of those services, which kicked alarm in last 14 hours.. 6 wakeups from play services (called vendor in alarm tab) 5 from 1 service, and 1 from one service. disabled both of them.

I am seeing following alarms which are top of the list, I dont see any services here, so I cant ignore them right?

For android it showing:

android.content.syncmanager:SYNC_ALARM - 49

com.android.server.LightsService.action.UPDATE_SVC_LED - 27

com.android.server.IdleMaintenanceService.action.UPDATE_IDLE_MAINTENANCE_STATE - 2

For com.google.android.gms:

com.google.android.intent.action.SEND_IDLE - 28

com.google.android.intent.action.MCS_HEARTBEAT - 25

com.google.android.intent.action.GCM_RECONNECT - 3

com.google.android.gms.auth.authzen.CHECK_REGISTRAT - 1
[BetterBatteryStats] chamonix:
yes. See the FAQ in post #3 for the reason
[BetterBatteryStats] godlesplay:
my phone was on 1d8h ;) 3h was screen on
[BetterBatteryStats] blak24:
I can't install BBS as system app. I'm on Android 4.4.4. There's a CMW script in the 3rd post, but the version is really old I think (1.1 instead of 1.16). What should I do?
[BetterBatteryStats] bombadier:
Anything stopping you replacing the old version in the zip with the latest version?why cant you install it as a system app ?

Tapatyping from my Nexus 4
[BetterBatteryStats] blak24:
Just tried flashing the ZIP and it UNrooted my device. LOL.

I don't know why I can't install as system app. As soon as I press the button "install as system app" from BBS, it always says FAILED.
[BetterBatteryStats] Wh1t3Rose:
[MENTION=3401958]blak24[/MENTION], use root checker to make sure you really have root. Got busybox?
[BetterBatteryStats] blak24:
Yes I have root. I use Titanium Backup and it confirms I have root. I also grant BBS root permissions as soon as it opens. I also tried installing "manually" busybox with the PlayStore app. Nothing changed...
[BetterBatteryStats] Wh1t3Rose:
You can't trust any app that to already use unless you go into SU and chose forget and reask for root. Any app that already had root won't tell you that it can't gain root root until you forget it. That's why I recommended root checker
[BetterBatteryStats] blak24:
I've just re-checked, forgotten the TitaniumBackup authorization with SuperSU and then re-granted it. So I can confirm I have root.
[BetterBatteryStats] swat4samp:
Any chance running lux auto brightness? I don't know why i asked but i've seen on many occasions that it somehow looses root :-|
[BetterBatteryStats] blak24:
Sorry I can't understand how lux auto brightness can be related to BBS
[BetterBatteryStats] swat4samp:
You said you lost root right? I've seen many users who have lux lost root. I'm not sure though. If you have lux installed, remove it and then check.
[BetterBatteryStats] blak24:
Ok, now I understood. BTW, I can confirm I'm rooted, and lux is not installed (I never heard of it before). Thanks anyway for the suggestion :)
[BetterBatteryStats] m1trand1r:
I get this too.....sometimes when I update rom and I want re-install BBS as system app it says failed.(sometimes it says succes )...just reboot and it should work....it worked for me...everytime I did this...I don't know the reason why it says failed...tho.

.

This one is odd.....very odd.....I have Lux auto brightness installed for some 3 weeks now....(I've had problems with in-built auto brightness...not of my taste:p )

and I never lost root access.....nor that any other app would cause smth like this.....:o
[BetterBatteryStats] swat4samp:
Obviously it looks odd :p but i swear i've seen many users reporting root issues (esp with supersu flashable zip) because of lux, so i thought he might be one of those. Anyways, i'm using flashable zip and never lost root(which is impossible lol)
[BetterBatteryStats] bombadier:
Ah you are trying to use the in app install to system,what happens if you use a file manager to move the app from /data/app to system/priv-app?if you can do it after moving it reboot your phone and bbs should be working,never had any problems with that method

About the zip unrooting your device very strange

Tapatyping from my Nexus 4
[BetterBatteryStats] blak24:
You made my day! :D

Thanks, A LOT! :)
[BetterBatteryStats] SuRPasser:
need some help with logs

Hi everybody, need some help with my BBS log file :confused:

The day before yesterday, i've put a new Calkulin's ROM v 1.3 into my 64 Gb Oneplus One and Banks Minimal GAPS also (ofcose, all vital wipes in TWRP been done).After, Did simple settings tuning, install a bunch of apk (some from Titanium backups, some from Google Play Store). No other tweaks been done yet.

Yesterday, got unplugged in the morning. Sync, Wifi, 2G/3G (LTE for half a day), GPS, Auto Brightness were ON. NFC, BT: off.

Sorry cant upload an image from Settings\Battery :(

But, here is the BBS log after a day device using:

dropbox.com/s/ix6xc29xtbknuvr/BetterBatteryStats-2014-08-26_224639359.txt?dl=0

or db.tt/jdNW6upu

Please, i would appreciate someone look through my BBS log file and give me some tips to may be, off any services, recievers etc...
[BetterBatteryStats] bonanza123:
I'm running on 4.0.3
[BetterBatteryStats] ponicpool:
Thanks for the reply.

I did battery calibration once before unplugging charging. I got good battery life after this.

Doing calibration not good for S2?

Attached is my kernel details as screenshot.

BTW which kernel do you recommend?
[BetterBatteryStats] chamonix:
net.rgruet.android.g3watchdog
187 alarms
android
188 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x4
com.whatsapp
com.android.email
196 alarms
com.google.android.apps.maps
95 alarms
com.mediawoz.goweather
915 alarms
com.seven.Z7
99 alarms
com.google.android.gsf
36 alarms: act=com.google.android.intent.action.GTALK_RECONNECT flg=0x4
33 alarms: act=com.google.android.intent.action.GTALK_HEARTBEAT flg=0x4
com.facebook.katana
49 alarms
17 alarms
17 alarms
com.latedroid.juicedefender

com.sec.android.widgetapp.apnews
851 alarms

Ok here we go. Frightening...

- Juice defender: don't use it, it just amplifies the wakelocks and does nothing but harm your battery life (search the thread for more details on why)

- Facebook: known drainer, maybe checking the settings can reduce it a little

- APNews: 851 wakeups, check update frequency or decide for a less expensive tool

- GSF: nothing you can do about it except if you stop using gtalk

- z7 (social hub): known bloatware, freeze it

- 3G watchdog: expensive way of getting usage metrics

- go weather: check sync settings or look for a less expensive weather widge. Are you having the widget in the lockscreen?

- whatsapp: there is no known way to get the alarms down so you'll have to decide if you can live with the cost

- sync manager: check your accounts and their settings
[BetterBatteryStats] chamonix:
Idea for new features / a new app

I was thinking of an idea for a summary screen for BBS that I may also provide a dashboard as a free app.

Summary of awake time: screen showing total time and awake time, maybe with a graph

Summary of wakelocks: sum of partial and kernel wakelocks

Summary of alarms: count of wakeups thorugh alarm

Comparision with a baseline / benchmark to see what other users achieved and maybe to see the evolution over time.

Within BBS that screen would allow to jump to the top5 for each category and make it easier to see if the awake time is rather due to wakelocks or wakeups.

This screen would replace the main screen in order to give users (or force them) to understand what awake time is and to put the possible causes in perspective. The same screen would also be summarized as a widget to show the behaviour of the phone during the last sleep phase.

Any toughts?
[BetterBatteryStats] yhrn:
I really like the idea. A summary that shows which category contains the most relevant info feels like a great improvement. Maybe that start screen would be nice to combine with a somewhat revamped UI. I was thinking that replacing the top dropdown with HC/ICS style tabs (like Google+, Superuser or Voltage Control) would make BBS look a bit more stylish :). And maybe the graphs and alarms could be put under one such tab each - right now those powerful features feel a bit hidden.

Another thing that would be nice is to be able to select different references (since charged, etc.) for alarms as well. If that's already there then it would be nice if it was clearly stated in the alarms view.

Finally, I have to say that 1.5 is a great update - having the same references for kernel wakelocks as the other stats is extremely useful.
[BetterBatteryStats] chamonix:
Thanks for the feedback. I'm starting to collect ideas for 2.0 and will prepare a few mockups to discuss here and it certainly be a tabbed layout with swipe support.

The summary will probably be added in 1.6 or 1.7 (widget is on the list too).

Alarms since ref: https://github.com/asksven/BetterBatteryStats/issues/68
[BetterBatteryStats] suku_patel_22:
Brilliant idea, would be good to see where I stand in comparison against users of my phone.....
[BetterBatteryStats] yhrn:
Sweet! Two more small things related to file dumps:

It would be convenient if file dumps went into a sub directory instead of directly to /sdcard

I think it would be good if all kinds of file dump actions were accessed from the same place in the UI. That might avoid some confusion where new users post raw kernel wakelocks instead of the "standard" stats, etc. I guess this kind of UI reorganization might be more of a 2.0 thing though.
[BetterBatteryStats] KeesStolk:
Sounds great!
[BetterBatteryStats] veyka:
+1, looks great.

I just wanted to say, I found BBS to be so useful I brought it, even though there is a XDA version, keep up the great work! Saved so much time/head pain!
[BetterBatteryStats] Simba501:
Looks good :).
[BetterBatteryStats] Braneless:
Any chance of an update for ICS roms? I used this with each of my gb roms and it was great.
[BetterBatteryStats] ambrar12:
Hi. I've dumped a file and am hoping someone can help me decipher it. I'd be very appreciative as I get between 20 mA- 130 mA drain during standby.
[BetterBatteryStats] suku_patel_22:
It has been updated to work on ICS.
[BetterBatteryStats] CRXed:
Because you still have the same apps running as before....

Especailly Google Checkin service is doing a lot.

Have you changed anything?

But the worst problem is "mmc_delayed_work" (): 1 h 24 m 43 s (5083 s)

This had to do with your SD card and Wifi

You can read a little bit about this here:

http://www.ramocafe.com/t490126.html

I believe this is a bug in olders kernels. Maybe you need to change it.

---------- Post added at 01:48 PM ---------- Previous post was at 01:43 PM ----------

Battery Calibration is useless on SGS2, so don't do it.

I use CM7 kernel which is good for me, but other people use the Speedmod or Siyah kernel.
[BetterBatteryStats] zohan99:
Please help! Noob question..

For some strange reason, since yesterday my battery is going nuts! In a few hours I'm down to 30% when a few days ago I was at around 75%.

Can anyone pinpoint the problem?

I attached the ref file.

Thanks in advance guys.
[BetterBatteryStats] CRXed:
*Bluetooth off is better

*K-9 mail, try to use different sync method (not Push) before switching to another app.

*Try to disable all Google sync actions, like backup off apps and sync of contacts etc.

Also I see

ccc71.bmw (): Wakeups: 665

ccc71.bmw.pro (): Wakeups: 88

Do you have 2 versions of the same app?

You should reduce the time BMW is monitoring, now it is set to check every minute?

---------- Post added at 02:20 PM ---------- Previous post was at 01:56 PM ----------

You need to fully charge your phone and then disconnect the charger and let it collect data overnight, now you don't have all data available (no kernel wakeups).

But you have very high counts of wakelocks for a lot of Android System actions.

But that maybe be because you have been using your phone for 90 minutes.

AlarmManager (Android System): 47 s (47 s) Count:3075 0.2%

keyguardWakeAndHandOff (Android System): 1 s (1 s) Count:2460 0.0%

SCREEN_FROZEN (Android System): 15 s (15 s) Count:2425 0.1%

sleep_broadcast (Android System): 23 s (23 s) Count:2390 0.1%

ActivityManager-Launch (Android System): 1 m 12 s (72 s) Count:2285 0.3%

LocationManagerService (Android System): 42 s (42 s) Count:2159 0.1%

Do another log without using your phone.

---------- Post added at 02:28 PM ---------- Previous post was at 02:20 PM ----------

PRE_PARTIAL_WAKELOCK_50992 (com.splunchy.android.alarmclock.AlarmDroid):

This proces is acting weird in your logs, remove it.

Also, your Kaiten Mail is causing a lot of wakeups.

Try using something else than Push sync.

After this, make another log, it should me cleaner as it is now.