yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Wh1t3Rose:
I don't think it's the modem. I think you have an app that's trying to ping out when you have 2G on. Do one more night of logging for me. But this time in additional to a BBS log also down Network Log and start a Log right when you fall asleep after restarting your BBS log. Make sure you actually toggle the Logging Button in the Network Log app.

What this will tell us is what apps are sending/receiving packets, from/To where and exactly how long it takes. Then we can decide whether you really need that app or we can implement a time based firewall to block those packets (to keep your phone from waking out of deep sleep). Make sure you are on a 2G signal

Here's that Network Log app (Make sure you actually enable the logging feature)

https://play.google.com/store/apps/details?id=com.googlecode.networklog

Edit: I still want you to do the above but I also wanted to mention that in some cases LTE is a better option vs 2G if you get a decent LTE signal because then apps that need to sync once every few hours can and should only take a minute or two to do their thing vs a few hours on a extremely slow 2G signal. But don't try this yet. I still want you to do my logs on a 2G signal so we can properly troubleshoot.
[BetterBatteryStats] qwerty22:
Bug BetterBatteryStats_xdaedition_2.0.0.0B1

============
Battery Info
============
Level lost [%]: Bat.: -7% [1,0%/h]
Voltage lost [mV]: (4367-4246) [16,5%/h]

Missing values [% from] [% to]
[BetterBatteryStats] vitoski:
Perfect, thanks very much for the feedback. I will do exactly as you said tonight and post the logs tomorrow morning.

EDIT

btw. It's there anything specific I need to enable to get the logs populated? What I noticed is that when my mobile data is switched off and the phone is in idle there is no records in the log. Every time I did a test (during the night) it was with WIFi and Mobile Data turned off. Which means there is no way for any app to transfer the data.

When I checked the Network Log app it was showing some data only when I had 'mobile data' on. So does it mean it is not logging any activity while the data is off? In this case I assume I would not get any information while following the scenario from previous tests (switch Wifi / mobile data, set to 2G, location services disabled, rotation disabled). Is that correct?
[BetterBatteryStats] BigLisy:
It seems that did the trick, thank you!
[BetterBatteryStats] chamonix:
the short answer is yes. I have seen something about that in the form of instructions for devs who wanted to check their sync services. I will try to find it again, please remind me if I forget.
[BetterBatteryStats] chamonix:
a black theme is in the backlog and will be available soon. I may have to push it to beta 3 rough as there are a few things that I need testing on implemented in beta 2 already (coming soon)
[BetterBatteryStats] meduza:
That's great news :) Thank you!

m.
[BetterBatteryStats] chamonix:
in fact that was a feature: I removed those values from the screen (and automatically from the dumpfile) because I didn't see any benefit in those.

Do you see these as beneficial?
[BetterBatteryStats] Wh1t3Rose:
Data transfers over 2G. It's just very slow. So when you open Network Log there is a button in the top right corner to enable logging. Click it and it should log. Then leave it overnight.
[BetterBatteryStats] vitoski:
Sorry for bothering you but would like to be 100%. Do you want me to enable log with 2G enabled but keep the mobile data off? This will exactly represent the scenarios I followed with all my previous tests. But this means the phone will not have access to Internet, 2G will be used only as GSM signal.

Sent from my XT1052
[BetterBatteryStats] Perseus:
That will throw up a lot of BAM_DMUX wakelocks. So keep an eye out for that.
[BetterBatteryStats] chamonix:
2.0 beta 2 is up. I couldn't fit in as much as I wanted (sorry especially for the ones hoping for the black theme in b2) but as the timebox is over here you go!
[BetterBatteryStats] Wh1t3Rose:
I don't think you understand want 2G is. 2G is a mobile data protocol like 3G. Mobile data transfers over 2G just like 3G. So when 2G is enabled mobile data is enabled. They are the same thing. So turn on 2G then log.

Just so you know depending on the carrier 2G is either GPRS or EDGE.

GPRS speeds = 50 KB/s

Edge speeds = 500 KB/s
[BetterBatteryStats] BigLisy:
I uninstalled and installed version 2.0, then 1.16 and then 1.15, now I'm unable to uninstall the app, because it keeps saying it's a system app even if I keep disabling that feature. I can only uninstall updates from the app info, unable to uninstall it completely.
[BetterBatteryStats] mdamaged:
Delete it manually using a root file manager.
[BetterBatteryStats] chrisb906:
I installed BBS 2.1 and it won't let me check alarms. Mentions to be installed as system app...I did that and now I can't find the app. Wth?
[BetterBatteryStats] shaggyskunk:
If you had an icon for BBS on one of your screens - it should still be there - Check in Data/App - it should be there if you installed it as a system app - Did you reboot after you installed as a system app - did you see "successful - Reboot"?
[BetterBatteryStats] vitoski:
Thx for the explanation about 2G. I totally agree with you and that was my understanding. What I was referring to is "Mobile network state - disconnected" in the Android. So even though I have 2G (Edge) setup as my mobile network type I am not able to send/receive "data" packets. So while "Mobile network is disconnected" noon of the apps will be able to exchange the data.

I believe I need to learn more about 2G[emoji17]
[BetterBatteryStats] Wh1t3Rose:
What carrier do you have? That shouldn't happen. Unless the carrier disabled data over 2G on their network.
[BetterBatteryStats] chrisb906:
Yes I rebooted. Still didn't work.
[BetterBatteryStats] Wh1t3Rose:
OK look in system/priv-app. That is where BBS gets installed. Also usually other system apps go in system/app too but BBS goes in priv-app. If it's not there then manually put the BBS apk in system/priv-app and REBOOT! That should fix you right up :)

[MENTION=4351374]shaggyskunk[/MENTION] just FYI only user installed apps like play store apps go in Data/App ;)
[BetterBatteryStats] vitoski:
"PLAY" is my mobile carrier. However it doesn't make any difference. I can (we all can) control ability to send data with android. Please have a look at attached screenshot, it represents my current setup. While the "Mobile data" is off I cannot access Internet nor any of my apps, but the radio can easily connect to BTS for having signal.

That's how I cut off my phone from the Internet while being on Mobile Data.

Does it make more sense to you now?

Sent from my XT1052
[BetterBatteryStats] guycan:
Uninstall then installing it in system/priv-app/ manually and change permission that work 4 me

SGNote2
[BetterBatteryStats] shaggyskunk:
Well for some reason - BBS is in both Priv-App & Data app....
[BetterBatteryStats] Wh1t3Rose:
Then remove the one from data/app. It doesn't belong.

---------- Post added at 05:55 PM ---------- Previous post was at 05:54 PM ----------

OK I see the confusion now. I thought maybe you were using a data toggle in your notification bar. Yes turn that option on. Then log.
[BetterBatteryStats] readon1:
Is this app compatible with android Lollipop?
[BetterBatteryStats] vitoski:
But the toggle in notification bar controls that switch, just check that. So either way you turn it off with toggle from notification or from Mobile Data settings the phone will not send any data.

That's why I am afraid the log will show nothing after having it all night, cause it shows only which apps are exchanging data when it is on. But all my previous tests were done in that exact setup (data off).

So do you still want me to leave the data on this time with 2G and get the log?

Sent from my XT1052
[BetterBatteryStats] Karpfenhai:
Yes please bring them back.. it is useful for the general picture.

Regards
[BetterBatteryStats] Wh1t3Rose:
Yep :)
[BetterBatteryStats] chrisb906:
Works

---------- Post added at 07:23 PM ---------- Previous post was at 07:09 PM ----------

Do u have a list of your own of services that can safely be shut down?
[BetterBatteryStats] Wh1t3Rose:
Nope. I used to but then realized it was doing more harm then good. You really should only disable the services that cause wake locks. Leave everything else alone.
[BetterBatteryStats] chrisb906:
What wakelocks..like location for Google services?

---------- Post added at 07:30 PM ---------- Previous post was at 07:28 PM ----------

These are the seven I stopped
[BetterBatteryStats] Wh1t3Rose:
those are good if you don't need location. But I would leave others alone unless you see them showing up in BBS
[BetterBatteryStats] chrisb906:
U sure that the ones I stop are OK? My device seems to be faster...but I'm thinking my battery is on its last legs. When I use any app, the battery just gets sucked down.
[BetterBatteryStats] Wh1t3Rose:
Well disabling services doesn't make your device faster. You should only be doing this to services that drain battery. So use BBS to determine what drains.

Go here:

http://xdaforums.com/showthread.php?t=2785128

[Battery Life Help] Troubleshoot battery issues here!
[BetterBatteryStats] rignfool:
If you used the in app installer... The thing in priv-app is a stub... Needed for permissions... Don't remove either
[BetterBatteryStats] chamonix:
#509
[BetterBatteryStats] vitoski:
Ok here are both logs from the last night.

I had to rename the Network Log file to txt from its original extension as Xda doesn't support *. csv for uploading. Please just remove 'txt' from the end.

thanks very much.
[BetterBatteryStats] dave-:
Just wanted to follow up after doing the first 3 actions (have since restored Tasker and my Spotify BT profile) that battery life is back to being excellent. Thanks [MENTION=1330150]chamonix[/MENTION] for the great app.

Since 1 d 9 h 24 m
Level lost [%]: Bat.: -76% (100% to 24%) [2.3%/h]

Deep Sleep (): 1 d 4 h 6 m 59 s (101219 s) Ratio: 84.2%
Awake (): 5 h 17 m 1 s (19021 s) Ratio: 15.8%
Screen On (): 2 h 21 m 2 s (8462 s) Ratio: 7.0%
Phone On (): 14 m 44 s (884 s) Ratio: 0.4%

PowerManagerService.WakeLocks (): 2 h 2 m 16 s (7336 s) Cnt:(c/wc/ec)5663/208/0 3.0%
bam_dmux_wakelock (): 1 h 19 m 41 s (4781 s) Cnt:(c/wc/ec)2248/91/0 2.0%
bluesleep (): 55 m 51 s (3351 s) Cnt:(c/wc/ec)15/0/15 1.4%
msm_serial_hs_dma (): 55 m 45 s (3345 s) Cnt:(c/wc/ec)15/0/0 1.4%
msm_serial_hs_rx (): 54 m 34 s (3274 s) Cnt:(c/wc/ec)62/0/62 1.4%
[BetterBatteryStats] norml:
Yes, I would like to see them back please.
[BetterBatteryStats] HassanM:
Friends,

I just installed the v2 of BBS but its not allowing me to install it as a system app... However its installed as a regular app and root access has been granted to it... But it fails to install as a system app...

For your information, Im on Omega Rom v26 (4.4.2) w/ Perseus Kernel...

Kindly advise....

Thanks in advance
[BetterBatteryStats] F308:
Can you get statistics?

If so - who cares how it is installed.
[BetterBatteryStats] Lori.oO:
cool..
[BetterBatteryStats] Wh1t3Rose:
OK in your network log your backup transport services was on drugs last night. I want to do this one final time. But turn OFF Google Sync in settings. Turn it off for EVERYTHING. This should kill that battery drain.
[BetterBatteryStats] vitoski:
The thing is I have everything switched off, specifically I mean: Google account sync (everything), Google backup, Motorola Backup. Will double check that.

Have you noticed also "downloads" manager? When I looked at the log there was some huge spike in there. I have no clue why it was working during the night, specifically since I have it greenfied.

Sent from my XT1052
[BetterBatteryStats] Wh1t3Rose:
I would ungreenify Downloads app. See what happens. But I'm stumped then. [MENTION=5666997]Lethargy[/MENTION] [MENTION=3639717]Perseus71[/MENTION] any ideas here?
[BetterBatteryStats] pikachukaki:
2.0.0.0B2 Still on L bbs doesn't show anything!! :/
[BetterBatteryStats] AA1973:
[MENTION=1330150]chamonix[/MENTION]

Issue #504 is solved. Thanks and congrats. The New B2 installed fine on Android L (vomer's T5 version of the preview), chainfire's and Franco Kernel r66, SuperSU 2.16 as secondary ROM (MultiROM)

?

Spoiler content hidden.

"It doesn't show anything" on Android L while SELinux policy is still set to "Enforcing Mode". That's only my guess as you didn't provide additional information about your setup. I do run Android L in emforcing mode, too, hence I dont have access to "Alarms and Partial Wakelocks"

But, if you use SELinux Mode Changer from the store, you can switch temporarily to Permissive Mode. Then, Alarms and Partial Wakelocks should show up.

Kernel Wakelocks do not show up, neither in enforcing nor in permissive mode - issue might be lying somewhere else.

[MENTION=1330150]chamonix[/MENTION] for info and confirmation.

Spoiler content hidden.

Same applies to WLD btw. Not usable in enforcing mode, only in permissive mode.

+++

SELinux Mode Changer

https://play.google.com/store/apps/details?id=com.mrbimc.selinux
[BetterBatteryStats] pikachukaki:
will try and comment...btw chainfire said that enforcing isnt very secure to work with..thats why franco use permessive for security...of course i dont afraid about security im not a CEO but just saying!
[BetterBatteryStats] AA1973:
It is the other way round. Franco set his kernel to enforcing and chainfire, too.

Play around with it and you'll see. Thats why I suggested to *temporarily* switch to permissive in order to use BBS.

?

P.S. I do follow chainfire's g+ too ?

Interesting read by chainfire

https://plus.google.com/113517319477420052449/posts/VxjfYJnZAXP

https://plus.google.com/113517319477420052449/posts/ZzXaU1W7Uzm
[BetterBatteryStats] pikachukaki:
Permissive alarms work but no partial wakelocks.... Or kernel wakelocks.
[BetterBatteryStats] AA1973:
Sorry, but what is your exact setup?

ROM, kernel, SuperSU version...

Partial Wakelocks and Alarms do show up in permissive mode for me!

Kernel Wakelocks do not show up for me, too - neither in permissive nor in enforcing mode.
[BetterBatteryStats] pikachukaki:
Vomers latest L franco 66 2.16 superSU and permissive selinux..

This is what it show at raw.. But they are all 0%
[BetterBatteryStats] AA1973:
Okay. Use chainfire's kernel first, then Franco.
[BetterBatteryStats] pikachukaki:
Im with chainfires kernel now...it show 2 partial wakelocks no kernel wakelocks..but after 4-5 refresh now it didnt show anything!
[BetterBatteryStats] a5pe4:
Thanks, here's the dump
[BetterBatteryStats] Perseus:
Please do not post Ad Verbatim here. Attach the text file.
[BetterBatteryStats] a5pe4:
Here it is. http://pastebin.com/PhfqAgQp
[BetterBatteryStats] marknoll:
Watchdog toast just sits there....saying watchdog processing.....
[BetterBatteryStats] qwerty22:
Analizing battery consumption I use both BetterBatteryStats and batterystats.bin data. There are two delicate issues:

1. batterystats.bin isn`t always correctly filled untill you charge the battery up to 100%.

2. Battery discharge data can vary for different charge periods, that makes final data comparizon difficult to analyze.

Preventing scepticizm relative to my approach, I attach my BBS data with 0.3% / hour night loss with stock rooted rom, original battery and all communicaions turned on (WhatsApp and Viber running as well) and 0.0% with Internet turned off.

View attachment BetterBatteryStats-2013-10-31_071113806.txt

View attachment BetterBatteryStats-2013-11-04_094411648.txt

Для анализа энергопотребления я одновременно использую как BetterBatteryStats, так и данные из batterystats.bin. При этом, есть два тонких момента:

1. batterystats.bin не всегда корректно наполняется, если не зарядить аккумулятор на 100%.

2. Разряд аккумулятора может отличаться на разных диапазонах зарядки, что усложняет сравнение итоговых данных.

В целях исключения скепсиса к моему подходу привожу свои данные BBS, где ночное энергопотребление на стоковой рутованной прошивке с оригинальным аккумулятором составляет 0.3% в час со всеми включенными коммуникациями (и работающими WhatsApp и Viber) и 0.0% в час с выключенными Интернет-коммуникациями.
[BetterBatteryStats] Perseus:
That's an In Use Log. Please provide an Idle Log for at least 5 hours. Preferably overnight.
[BetterBatteryStats] godlesplay:
[MENTION=1330150]chamonix[/MENTION] Samsung Galaxy S3 LTE
[BetterBatteryStats] marknoll:
Anyone know how to disable these wakelocks? I have disable service app
[BetterBatteryStats] mdamaged:
Are they causing you battery drain? Or are you just obsessing trying to stop every wakelock your device has? Post a dump.
[BetterBatteryStats] chrisb906:
Ok

---------- Post added at 06:02 PM ---------- Previous post was at 05:56 PM ----------

http://pastebin.com/y7jew9Ey

---------- Post added at 06:06 PM ---------- Previous post was at 06:02 PM ----------

Just by using my device the battery dies fast

---------- Post added at 06:07 PM ---------- Previous post was at 06:06 PM ----------

I plugged it in at 4% ..Been three mins and its already at 30%. Wth? Lol
[BetterBatteryStats] vitoski:
I repeated the test last night. The difference comparing to previous test was that I ungrenified Downloads app and grenified Google Backup Transport.

Now I was losing 0.5%/h which is better. But what worries me very much is that even though I have Sync and backup disabled completely the Google Backup Transport process wakes up and exchange data.

Would you mind looking at the log please?

I saw in the app something like Wfd_SDK_Service...

One last thing that I don't understand is that I start the test around 10 - 11 PM but the data shown in the log indicates that apps are exchanging data around 2 am till 6 am more or less...

Thanks for your help!

Sent from my XT1052
[BetterBatteryStats] Perseus:
Either you are using the wrong ratee charger or Perhaps time for a new Battery ? The log is a Logcat not the Text Dump.

Good Questions for the greenify Dev.

Apply [MENTION=4355376]Karpfenhai[/MENTION]'s Mod. Search this thread for it. Also get a Startup Manager. If you have Android Tuner, it too has a startup manager. Please uncheck those apps that you are not going to be looking at immediately after boot. That includes download manager.
[BetterBatteryStats] vitoski:
There is even more surprising thing here... I completely disabled Google Backup Transport app itself in Android settings/app and then left the phone with Network Log enabled. Guess what... after 1h of test the Log showed Google Backup Transport entries... So how come the disabled app can still send the data?

Or maybe the Network Log app doesn't provide accurate info?

Sent from my XT1052
[BetterBatteryStats] dimm0k:
can someone provide sme suggestions on lowering the drainage on my phone? also i have it set so that Google Photos and Google+ do not backup/sync photos in Settings for the device, but after some time it re-enables itself. however inside the Photos and Google+ apps they show as off. any ideas?
[BetterBatteryStats] Perseus:
Could be. The backup process is embeded in several places so difficult to tell.

You have very Noisy Wireless Network. Either that or some Noisy device on your Wireless Network such as Chatty WiFi Printer or Apple devices.

Your Email Client is polling server too frequently. Can you freeze or remove Google Now ?
[BetterBatteryStats] Wh1t3Rose:
I see telephoney.data. stall woke up 60 times? Maybe it's trying to backup contacts or something? Idk I'm stumped at this point. Why don't you just disable data and Wi-Fi completely at night. Not even 2G?
[BetterBatteryStats] vitoski:
That's my plan. Unfortunately disabling WiFi with Mobile Data will not give me any indication what wakes up my phone. The BBS stats (report) looks quite clear and thanks to your suggestion of using Network Log I found that in fact some apps / services are waking my phone to exchange data....[emoji17]

Sent from my XT1052
[BetterBatteryStats] Perseus:
Data Stall is a Mystery to me as well. Back in JB 4.3 days there was a code correction for this piece and it was Shot down by Google Engineers. Try going down this Rabbit Hole.

Or in English for the rest of us.

https://groups.google.com/forum/#!msg/android-developers/Is5FgdyNDTM/Mzji2ZQX144J

So it seems to happen only when you are off of WiFi and phone is woken up by some App. It will wait for 6 minutes to establish connection. After which it will keep the phone awake till the connection is torn down and recreated. This'd repeat every time errant app wakes the phone. Cost of doing business I guess.
[BetterBatteryStats] dimm0k:
Not sure how else to quiet the wireless network... unfortunately turning off wi-fi actually makes things worse as Sprint is having some issues in my neighborhood. Possible my roommates' iPhones could be causing some of that chatter. As for the email client, how did you determine it's polling the server too frequently? In other words, which section of BBS tells you that? My e-mail client is set to poll every 15 minutes for the 2 IMAP servers I have and an Exchange server which supposedly uses push. I can freeze Google Now to see if it helps...
[BetterBatteryStats] Perseus:
Look under alarms for the Email Client.

Issue a Static Ip to your Phone from the Router. Turn off IPV6 from the Router.
[BetterBatteryStats] X46X:
Hi, I can't see a kernel wake lock in latest version..
[BetterBatteryStats] qwerty22:
I can't see a kernel Wakelocks, Alarms and Level lost in BetterBatteryStats_xdaedition_2.0.0.0B2. "Since 1 s" after boot - bug
[BetterBatteryStats] Wh1t3Rose:
Calling [MENTION=1330150]chamonix[/MENTION] to above post before it gets buried :good:
[BetterBatteryStats] marknoll:
That's why I posted that pastebin. It says logcat
[BetterBatteryStats] chamonix:
I would be interested to know if the alternate 'no dumpsys' way to get Alarms (advanced prefs) works in Non permissive
[BetterBatteryStats] chamonix:
is that the release notes?
[BetterBatteryStats] Marcovanbasten:
Could please someone let me know what is the problem with whatsapp??
[BetterBatteryStats] AA1973:
This is how it looks like when I choose the alternate "no dumpsys" method. Please find the Screenshots attached.

Spoiler content hidden.

Android L, SELinux Enforcing mode, Nexus 5.
[BetterBatteryStats] marknoll:
With third party apps...I just force close and disable sync
[BetterBatteryStats] a5pe4:
Here's a text dump whilst I'm asleep. I hate the phone waking when the screen is off. Any help? http://pastebin.com/iXxSU5Dd
[BetterBatteryStats] j1gga84:
On the first place of partial wakelocks I have 'ActivityManager-Launch' with about 10 minutes at 24h uptime. What sort of wakelock is that, are 10 minutes ok and/or how can I reduce it?

Regards
[BetterBatteryStats] chamonix:
#514
[BetterBatteryStats] godlesplay:
nope, just run bbs, press menu button, press help
[BetterBatteryStats] _jis_:
Just a little correction

Disabling just these two services as they are shown in WLD is sufficient:

com.google.android.gms/com.google.android.gms.config.ConfigFetchService
com.google.android.gms/com.google.android.gms.auth.be.proximity.authorization.userpresence.UserPresenceService

Don't disable this one which is needed by Google Play Music or you will get Persistent Notification from GPM with triangle icon about missing service:

com.google.android.gms/com.google.android.gms.wearable.service.WearableService

When using "Disable Service" app for the first time it is important to make a backup of previous state. Backup and Restore are present in About menu of app.
[BetterBatteryStats] Perseus:
IMHO, its better to disable receivers rather than the service. But whatever floats your boat...........
[BetterBatteryStats] _jis_:
I just corrected the original recommendation, but in IMHO its ok in this case if the user doesn't use any wearable function and its just temporary solution - I hope. These services should be inactive in such a case anyway and should be activated only if you enable it in Google Settings / Google Fit. Maybe it'll be corrected in the next iteration of Google Play Services, at present such a setting (I mean ON/OFF switch) is missing here.