yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] felipehso:
Recently I got a com.google.android.gms wake lock alarm, and it's quite high (now it's count is 1.5/min). I've been recommended to this thread, because I've been searching with no success. Already flashed two different ROMs and this still persist. Got a G920I.

http://cloud.tapatalk.com/s/5773d5ea92db7/BetterBatteryStats-2016-06-28_122214647.txt

http://cloud.tapatalk.com/s/5773d5faab007/logcat-2016-06-28_122214703.txt
[BetterBatteryStats] Perseus:
Well GMS is a symptom of underlying problem. Not the Problem itself. Some App is using Google Play Service here to get to something. In your case I see it was either Google Play Store you were downloading or you have Google Now.
[BetterBatteryStats] felipehso:
Got it, Google Now I disabled it, and the Play Store I've only download few apps, but maybe I'll try uninstalling it and installing again to see if it fixes it. Thanks for some light over here ✌️
[BetterBatteryStats] Perseus:
Always remember, if you downloaded stuff and don't want it polluting your BBS log, then reboot or briefly plug in to reset BBS Marker/stats ref point. Also do note Google Now is known to activate Location services in WiFi Settings and gps causing further drain. If Problem persists, please reboot, leave the phone alone for 5 hours then pull a log and post here.
[BetterBatteryStats] felipehso:
Ok, I'll do that and check the location, but I'm almost sure it's off. Will charge to 100% and leave it overnight.
[BetterBatteryStats] rpr69:
Are you having problems that haven't been addressed? Or is it working for you?
[BetterBatteryStats] kryshnakishore:
Working too good, no issues at all... But expecting some new features like gsam app where it shows app drainage
[BetterBatteryStats] rpr69:
Ah, ok. Just curious.
[BetterBatteryStats] zbysogi:
Hi guys, could someone take a look at my BBS stats?

I attached screenshots, logcat and dump files from last night.

Noticed:

- ttyC0 wakelock which I reckon is responsible for fingerprint sensor so I disabled it yesterday before charging but I still have it,

- wlan ABH ISR - is that simply from turned on wifi?

- EINT wakelock (have no idea what this is)

- WLAN TH THREAD

WIFI was off through the night

9% activity in BBS through the night is absolutely too much. Can someone help me optimize my phone?

My phone: Umi Super

EDIT:

The screen from BBS kernel wakelocks is set from Boot :/ my bad. I will change the screens tomorrow morning. I hope the logs are enough.
[BetterBatteryStats] Portgas D. Ace:
BetterBatteryStats version: 2.1.0.0 -> update BBS to v2.2.0.0B6 (can be found in post #2) and upload another idle log file as wakelocks and alarm stats are incomplete

Screen On (): 5 m 15 s 1.6% -> try to reduce the screen on time to less than one minute, for example save the log file right after you turned on your screen
[BetterBatteryStats] TNSMANI:
Also update BBS to 0B6 and pull an idle dump.
[BetterBatteryStats] dimm0k:
with Doze as a feature of Marshmallow, doesn't that sort of kill off the usefulness of most of these battery measuring apps? if your phone is draining say .9% every hour while idle and Dozed, it could be a very different reading while the phone is either in motion or being used no?﻿
[BetterBatteryStats] iubjaved:
I dont know why bbs shows no data, no network and sensor consumption as 100 percent! I have attached logcat , would appreciate if someone give me insights what might be causing this issue
[BetterBatteryStats] chamonix:
Please feel free to suggest features by describing what you would like to see added to bbs. I work in the open (https://github.com/asksven/BetterBatteryStats/issues) and it's easy to submit features / track them on github. No need to register if you don't have an account, you can put your requests here or drop me a PM or a mail if you want to have a conversation about implementing new stuff into bbs.
[BetterBatteryStats] chamonix:
BBS is a passive monitoring app (see also post #1) so there is no drawback in using it: trust is good but control is better

And feel free to verify if google services really are subject to being ruled by doze mode, not talking about apps that may have implemented ways to circumvent doze's ways to manage / regulate apps, esp. in their aptitude to keep the device awake, as opposed to waking it up.
[BetterBatteryStats] chamonix:
I also confirmed it before rooting my N-preview, that's really a nice hack!

As I rooted it after that I can't confirm for sure so maybe you could confirm whether that hack is persistent beyond reboot or need to be repeated. That wouldn't reduce the power but I prefer to be precise to manage expectations.
[BetterBatteryStats] suku_patel_22:
The granted permission should stick across reboots. That's how it works for greenify.

I am rooted as welll and henc, cant confirm it ATM, but based on my experience with using "pm grant" in the past, it should stick.
[BetterBatteryStats] iubjaved:
Hi,

Here's a dump when device is idle after full charge
[BetterBatteryStats] Portgas D. Ace:
Since 2 h 33 m 34 s -> for a proper idle log file, leave your device idle for 4 hours or more (preferrably over night). 2 1/2 hours is in my opinion not that suitable for representation.

Any specific reason why you enabled the "Use API to get alarm statistic" option?
[BetterBatteryStats] iubjaved:
Alright, i will post another dump later on.

Nope i haven't, i must have checked that option by mistake. I have unchecked it. What does it do btw?
[BetterBatteryStats] Portgas D. Ace:
A simple description: it's an alternative method of obtaining the alarm/wakelock data, but it's rather incomplete than the default method.
[BetterBatteryStats] zbysogi:
Yesterday my phone was acting terribly. 15% of Activity, unplugged at 8am went to 20% around 11pm. Rubbish :/

Here are my logs from last night along with screenshots. My Amplify, Greenify and Power Nap options are as suggested here --> http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884. In addition to that im using Disable Services. If screens are needed I can attach them.

I feel like those logs are not accurate. BBS doesnt show any kernel nor partial wakelocks but on the graphs you can see a lot of activity and Wakelock detector is not even working, it looks like its frozen. In settings I selected "show stats from unpluged" but nothing changed and its showing stats since last boot (22hours earlier) so I installed an older version of the app 1.8.2. It showed the activity panel since unplugged but no stats and an info to install the app as system so I did (that was a mistake cause I didnt notice it wasnt recognised by SuperSU and know I cant even erase it with Titanium). After reboot it didnt work - which is obvious (screens attached). I sort it out somehow and installed the newest version of the app through the .apk file, it works now so screens can come tomorrow. I hope someone makes something out of this.

P.S. I made those screens with about 7minute delay to the logs cause I had a phone call I had to take.

I named them as well to distinguish
[BetterBatteryStats] Portgas D. Ace:
Level lost [%]: Bat.: -2%(71% to 69%) [0.3%/h] -> I don't see any huge battery drain

ttyC0 (): 8 m 32 s Cnt:(c/wc/ec)457/37/457 2.3% -> check this for a possible solution

Alarms: 7, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_187157 -> use Amplify's regex function to limit this one

Alarms: 3, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> use Amplify and limit it to 9999999
[BetterBatteryStats] zbysogi:
Its actually 0,7%/h. But apart from that isn't 14% awake time during the night isn't surprising at all? In me last phone when I managed to make it go to sleep mode I had 0% awake time, shouldn't it be at least 1-2% here?

Im gonna check it tonight but I reckon it wont change much. BBS doesn't show whats going on :/

What about 48% of google Alarms?

What about Graphs showing wakelocks through the whole night?

What about 16min 26sec of awake time with screen off?

I know how to create one but what should I write there?
[BetterBatteryStats] Portgas D. Ace:
If it doesn't drain, don't change it. In case you really have huge drain in idle mode, please charge your device to 100%, unplug it and leave it idle for 6 or more hours (over night, for example), open BBS and immediately save your log file. Don't use your device during this time. BBS is quite capable to show what's going on, you just have to use it correctly.

Use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999.
[BetterBatteryStats] felipehso:
So, I left my phone over night after charging to 100%, now it's 91% after 5h on battery. The com.android.google.gms is showing quite high yet (50% awake time), and the drain was 1.5%/h. Here's the logs

http://cloud.tapatalk.com/s/57766565ce53e/BetterBatteryStats-2016-07-01_093438200.txt

http://cloud.tapatalk.com/s/57766572b6517/logcat-2016-07-01_093438250.txt

Can't figure out what's causing this drain, it's not that high, but the enough to get me a little worried.
[BetterBatteryStats] TNSMANI:
Already told you to update BBS to 0B6. Your alarm stats are incomplete.
[BetterBatteryStats] felipehso:
I thought it was to update to the latest version, which I checked and it's updated. How do I update to 0B6?
[BetterBatteryStats] TNSMANI:
See OP of this thread.
[BetterBatteryStats] iubjaved:
Heres a more idle dump from fully charged battery, i had couple calls in between idk if this effects the log at all
[BetterBatteryStats] krzysiekb92:
Is this app views charge cycles?
[BetterBatteryStats] Perseus:
That's not complete log. It has

logcat read failure: No such file or directory
[BetterBatteryStats] iubjaved:
I apologize for wrong upload.. Heres the correct one
[BetterBatteryStats] zbysogi:
I attached a set of logs from last 2 days. Could someone check if everything is alright if possible please?

Through the night Im getting 0,4%/h during 9h 45min of deep sleep. Awake state with screen off - 19min 18sec, which I would say is a bit too long.

Although when I use the phone (umi super) I think its draining too much with wakelocks like "ps wakelock", "WLAN AHB ISR", "ttyc0" and "WLAN THREAD" - about 11%/h with wifi on viber and a bit of browsing while (obviously) being on screen all the time. Isn't that too much? Does it even make sense to create logs after a day of using the phone?
[BetterBatteryStats] LLegion:
Thanks bro ill be checking this soon
[BetterBatteryStats] Perseus:
One of the Logs seems to be while Charging possibly or the phone was plugged in part of the time. From the other log, I see reasonable drain at ~3 %. You could use Karpfenhai's Mod earlier in this thread to reduce the GCM Wakeups. The ttyC0 it seems is related to your Tower Signal. Could it be that you have spotty connection ? Tru getting Idle Log with Airplane Mode on. If this wakelock disappears then , you know.
[BetterBatteryStats] Hedied4me:
I'm having this problem with these constant alarm wakeups. They are keeping my phone from sleep. Anybody have any ideas how to correct? I use Greenify Xposed.
[BetterBatteryStats] Portgas D. Ace:
Use Amplify to limit those alarms. There are two excellent battery life guides here on XDA available to provide you some guidance with it:

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588
[BetterBatteryStats] ianmacd:
That's good advice, but I'm puzzled as to what exactly BBS considers "deep sleep" in this context.

My device is dozing as expected using Greenify's aggressive doze, but BBS still claims just one second of Deep Sleep all day. Doze Idle Mode Time, on the other hand, is at 1h 45m, a fact apparently borne out by GSAM and Greenify.

Googling "better battery stats" "deep sleep" returns a lot of discussion that equates deep sleep with dozing, but clearly BBS considers them to be different things. The BBS documentation itself defines deep sleep as the total time the device was sleeping, but how is that different to dozing? Sadly, the BBS documentation doesn't define any of the Doze measurements, so that can't be used to contrast Deep Sleep with Doze Idle Mode Time.
[BetterBatteryStats] StuPot01:
Does anyone know what "qcril_pre_client_init" is?

Since updating to marshmallow latest (401.12) the phone won't sleep at all in airplane mode and the above mentioned kernel wakelock is running 100% of the time while in airplane mode.. No matter which kernel I use.

The phone sits at lowest frequency above deep sleep 100% of the time airplane mode is enabled.

HTC One M9.

Latest international mm firmware.

I've tried leedroid, ice, cm 13, candy6, slim6, RR, and stock sense.. All have the same problem.

Open gapps pico.

I've asked in a couple of the threads for the ROMs I've installed but no one either knows how or wants to attempt to help me resolve it.
[BetterBatteryStats] ianmacd:
Following up on myself, it turns out that deep sleep refers to the lowest energy state of the processor. You might think, as I did, that this is a prerequisite for a device entering and staying in Doze, but it would appear that a device can have an active CPU and still be dozing, which is why my device was showing 0% deep sleep, even though it was properly dozing.

In my case, I traced this to the proximity sensor that had gone haywire, which was keeping the CPU buzzing at a steady rate. This prevented the so-called deep sleep, but did not affect Doze.

A reboot fixed the problem.
[BetterBatteryStats] Perseus:
Sounds like something related Initialization of the Modem. QC = Qualcomm RIL = Radio Interface Layer.

Are you having Signal issues ? Can you check if the issue repeats when you are in Airplane mode for at least 1 hr. ?

BBS Deep Sleep is C3 State where as Doze is C0 or sometimes C1.

Source and Further reading here.
[BetterBatteryStats] ianmacd:
Thanks for the source. Very illuminating, indeed.
[BetterBatteryStats] StuPot01:
I dont have signal issues, I've tested in many locations throughout the UK and its the same.

Where I work I have to leave the phone in a locker with no signal so i use airplane mode for up to 5 hours some days.. Its the same whether for 10 seconds or 5 hours.

Thanks for replying bud.

Edit: Just to add a little bit to this, I have spent quite some time searching google and posting on various g+ groups to no avail.

Edit #2: [MENTION=3639717]Perseus[/MENTION] How would I go about fixing it if its a problem with the modem? Would I have to flash back to stock or could I extract and flash just the modem?

I believe the firmware im on is 3.32.401.12.
[BetterBatteryStats] Perseus:
For the M9, I believe the modem could be flashed separately. Look for any Modem Only Flash in the Device forum. I would not want to extract it on my own and flash. Depending on your Android Knowledge and Skill level there are significant chances of hard brick that way. See if some one has already extracted and been tested. Otherwise, going back to stock sounds very VERY appealing.

Having said that, After your 5 Hr Airplane Mode, Can you immediately dump a BBS Log ? In Particular take a look at the Top Alarm in the Text Dump. I feel that there is some App you use which just CAN NOT wait to get on Internet and keeps the phone awake looking for Data which won't be coming thanks to Airplane mode. Just for example, Crapbook does this. I am not sure if that's the case for you or not. Could be some other app.
[BetterBatteryStats] StuPot01:
No alarms jump out to me as being a hog, only the kernal wakelock mentioned above.

Here's a small BBS log while in airplane mode. Its only a little over an hour's worth but it'll give you am idea of what shows up. https://ghostbin.com/paste/nkgqf

I'll do a big log tonight and post the log in the morning. Thanks for the help.

Edit: I have xposed installed at the moment and I'm aware it can mess up the stats by causing fake errors etc but the problem exists without xposed.

I'll post a log in the morning anyway and if you think needed I'll post another without xposed.
[BetterBatteryStats] Perseus:
Before your Big Log, Freeze or remove Ghostery and please Turn off Doze Completely and restart.
[BetterBatteryStats] MustangLife03:
Running your app for the first time on my old phone but new phone til my new one comes. So its a 4.4.2 device. I hope I did the initial steps correctly. Charged the phone to 100%, downloaded BBS latest version, rebooted phone and after install into system I unplugged from the charger. All other apps closed and screen off sitting. I left phone as is in my normal mode which is a strong wifi, but low carrier signal. Is this all correct or ok for my first run of the app. Gonna let it sit an hour or 2 untouched.
[BetterBatteryStats] MustangLife03:
I attached my dump file. I guess aside from figuring out if or what the issues are to download one of the tools that will let me silence this stuff.
[BetterBatteryStats] TNSMANI:
Ideally the idle dump should be for 6+ hours. Plus your screen was on for 20+ minutes before saving the dump. Save the dump as soon as you unlock the screen.

Follow this and post another dump.
[BetterBatteryStats] Perseus:
Yes this is correct, but prefer to leave the phone alone for at least 5 hours if not overnight. Also turn off GPS if its on.

Agree with what [MENTION=5656100]tnsmani[/MENTION] said in terms of assessment plus replace Google Launcher with some other laucher if Google is current one. Remove the Google Search widget if the searchbox is on home screen after replacing launcher.
[BetterBatteryStats] tsiftsism:
I was at work for almost 12 hours, phone wasn't connected to a wireless router and i barely used it. If i'm not mistaken i read 2 or 3 messages on Messenger.

Is it right that almost half of the battery gone away?

Thanks in advance for your answers.
[BetterBatteryStats] Perseus:
Not Trying to Question what you're saying. However those 2 lines from your log,

Wifi On (): 8 h 41 m 32 s 56.2%
Wifi Running (): 15 h 27 m 34 s 100.0%

Tell me that you WERE connected to some Wireless connection. Android was running backup of your Data to the Google Server under the designated Backup account. Since that was going on in the background, it took a toll on the Battery. Also Yahoo Whether didn't help by asking for your precise location and took 15 minutes to do it. Taking a GPS Fix is atrociously battery hungry.

If that does not explain it for you, please post an Idle overnight log with GPS explicitly disabled and Yahoo Whether removed. Oh and turn off "Scanning Always available" setting to never. This is located under advanced wireless settings.
[BetterBatteryStats] tsiftsism:
@ Perseus

Yes, i'm pretty sure that i turned the WiFi off since the time i left home. Every day i do that because i know that there is no wireless router at work. (EDIT: PS. I turned the WiFi on by the time i returned back home).

I had connection to the internet via my provider though (data plan).

As for the Yahoo Weather app i have it installed and have a widget of it in my homescreen since for ever. Didn't know that was causing a battery draining.

'WiFi scanning' under Location menu is disabled since the first days of Marshmallow.
[BetterBatteryStats] felipehso:
I've been away and couldn't post before. I've update BBS to 0B6 and now it's giving correct info. By now, I've found the battery life to be good, but I don't know if I should worry with this alarms. I've already turned off location services and set location to battery saving.

http://cloud.tapatalk.com/s/578440796d641/BetterBatteryStats-2016-07-11_215402463.txt

http://cloud.tapatalk.com/s/5784408b563fb/logcat-2016-07-11_215402525.txt
[BetterBatteryStats] MustangLife03:
Thank You for the assistance. I will run a overnight 8 hour minimum test next time. Tonight probably. GPS was turned off. Concerning me ditching Google Launcher and Search? Is that from what you saw in my dump file or is that based off of google always running various things in the background, etc etc. I want my first true test with BBS to be with how I usually leave the phone in screen off scenarios. I want to know what the issues are first. To me, a smart phone and my needs don't justify turning everything I can off when I'm not using it. Unless that is a requirement for a proper test? I work 10.5 hour shifts and I'm gone from the house 12-13 hours a day 4 days a week. So my phone sits alone untouched hours and hours during my work day. After the tests needed are done and I and we can see what all is going on, than I can decide about using a proper Profiler, Tasker, Amplify, or whatever is needed. I hope all this makes sense. I hope to hear an answer back soon though. I don't want to waste another test when I'm trying to get this sorted out. The screen off, background process, wakelock stuff is all new to me so this is a learning process. Take the beginning part of this reply as questions and not I'm gonna do this no matter what. I know some members on here take questions overly sensitive in the wrong context. FYI the screen on 20 minutes after the dump was my curiousity as this was my first run. I couldn't keep myself from looking at the results.
[BetterBatteryStats] ColinMacLaren:
Hi,

I have a new LG G5 with rooted Stock rom. At first is was draining the battery for ~8% per hour when not using the phone. After removing most of the Google Apps via minimal opengapps package it is somewhat reduced to 4%. Only the google App itself, the Play Store and Google Fit are still active. It still drains my battery way too fast.

Deep Sleep: 24 min

Awake: 8h 15 min

I attached my log. Any help would be appreciated.

Thank you.
[BetterBatteryStats] Snowby123:
Uninstall Facebook and Instagram. Also, if you know how, install Xposed. The rest of the drain can be limited using the module Amplify
[BetterBatteryStats] ColinMacLaren:
I am already using Amplify. Instagram and Facebook were only causing 92 wakeups combined.

I noticed there are several hours of Kernel Wakelock from the IKEA app (disabled it now) and especially bluetooth.
[BetterBatteryStats] TNSMANI:
If you want to know how the drain happens with your normal settings, then use your normal settings but leave the phone idle for 6+ hours and as soon as you unlock the screen, save the BBS dump.

After that dump is analysed and recommendations given, set it up as per recommendations and post another idle dump.
[BetterBatteryStats] redj12:
Hello guys. In "other" section, what is "Sensors", what kind of sensors (14% for me...) ? Thank you.
[BetterBatteryStats] Perseus:
That explains why I saw Wifi in the log. It was after you returned home. Can you please get me a log after following the bellow steps ?

1. After you get to work and know that the phone is going to be idle for next several hours; restart it.

2. Set Airplane mode on since you tend to do that anyway each day, if I recollect right.

3. After Work, before doing anything else, turn off airplane mode, Wait for exactly 5 minutes. DO NOT DO ANYTHING on the phone. Pull a BBS Log.

4. Post the log here for me.

What @tnsmani said is correct. Removal of Google Launcher is not a requirement for the test. Its a suggestion (Like everything else on this thread) to reduce battery drain.

Facebook or More likely Gmail couldn't wait to call mothership. Gmail Sync took gobs of Data causing the said flareup in GMS Service Alarms. GMS is the backbone to all Google Services/apps.
[BetterBatteryStats] tsiftsism:
Please correct me if i didn't understand what you want me to do.

First of all, i charge the phone during the night while i'm sleeping.

So, you want me to restart the phone as soon as i get to work, set the airplane on (by doing this, my phone is useless because of the airplane mode) and keep it that way until i leave work?

And then, i turn airplane mode off, wait for 5 minutes without doing anything with the phone and send you a logcat?

Thanks again for caring about my issue.
[BetterBatteryStats] m0han:
this maybe why:
[BetterBatteryStats] tsiftsism:
It was just the day. :)

It was a busy one at work, and it happened not to use at all.