yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] qwerty22:
[bug] dumpsys alarm does not deliver any results when called with su but does when run as user #703

Smasung 5.x: SELinux denies the utility dumpsys from root, but allows it to operate from a simple user. Please provide a solution for Samsung.
[BetterBatteryStats] chamonix:
What about switching to API mode?
[BetterBatteryStats] chamonix:
Does network work in raw stats?

Edit: caught it, there was still a place where I checked for root. Fixed for next beta

The time between screen off and current is pretty short so I can't tell if no stats are shown because there was no data collected of if the filtering fails. I you are able to reproduce please enable the debug logging (advanced prefs) and post a logcat+dumpfile
[BetterBatteryStats] qwerty22:
Not worked.
[BetterBatteryStats] rfilipoiu:
The Awake text is still shown wrong on the responsive widget.
[BetterBatteryStats] chamonix:
Can you please provide a logcat with debug logging (advanced prefs) on?
[BetterBatteryStats] chamonix:
Please be a little more specific
[BetterBatteryStats] qwerty22:
Ok, but

can I download last versions? In first post - 2.2.0.0B3 only.
[BetterBatteryStats] chamonix:
2.2B4 is up
[BetterBatteryStats] chamonix:
Now you can
[BetterBatteryStats] qwerty22:
See attach
[BetterBatteryStats] chamonix:
I am confused. The dumpfile shows alarms
[BetterBatteryStats] qwerty22:
======================
Alarms (requires BATTERY_STATS permissions)(uses API)
======================
android*api* (): Wakeups: 2 (10.0 / h)

com.android.vending*api* (): Wakeups: 1 (5.0 / h)

com.whatsapp*api* (): Wakeups: 1 (5.0 / h)

ru.sberbankmobile*api* (): Wakeups: 1 (5.0 / h)

Wakeups without wakelocks...
[BetterBatteryStats] greves1:
It helps somewhat, thanks. Given what you've said, though, my question is then: What is making my screen wake up? It just seems that the only thing that should be waking my screen is a phone call and my finger on the power button or fingerprint on the sensor. Surely there is some way to make disable all other services/apps from actually waking the screen, no?
[BetterBatteryStats] cartman_73:
Happy New yea guys

[MENTION=1330150]chamonix[/MENTION] since release 2.2.0b3 my avast mobile reports BBS like an issue.

Is it a mistake?

Thanks for your effort

Inviato dal mio Find7 utilizzando Tapatalk
[BetterBatteryStats] chamonix:
Those are not wakelocks but wakeup intents. API does not support those yet.

Edit: so it's works as designed.
[BetterBatteryStats] nobnut:
I'm sure he meant those XDA members of the fairer sex also ;)

Sent from my Motorola StarTac using Voodoo
[BetterBatteryStats] ithehappy:
I installed the new version, like the Refresh option very much. But I can't figure out what is the Since Custom Reference stat, whenever I click that it says at bottom, 'warning: there is no custom reference set', so may I know what that option does and how to use it?

Regards.
[BetterBatteryStats] tltester:
I have a frustrating problem I can't solve for a while. Sometimes my Galaxy S2 starting to drain battery very fast. After finding this great app, I've tracked this down to a permanent wakelock that holds the phone from going to sleep.

The offender is listed as network-location-cell-update and it's a "google service".

The problem is I can't hunt this ***** down. After a lot of harvesting I've found that this may somehow be related to Google Maps. In my case I don't use latitude. Even more - force stopping doesn't help, maps freezing from titanium doesn't help, battery still loses a lot and every refresh shows more and more wakelock time for it.

Only thing that stops it is a restart - till next time...

What more can I try? Is it possible to somehow get more precise information about what is abusing this service?

Thanks.
[BetterBatteryStats] chamonix:
Afaik spare parts will not contain those stats as thy were removed from GB for whatever reason. Of course I can't exclude that this was re-implemented but AOSP definitely does not provide them anymore. Correct me if I missed anything
[BetterBatteryStats] chamonix:
Set a custom ref from the menu and you will be able to use that option from the combobox. Not really self explaining I must admit :)
[BetterBatteryStats] chamonix:
Haven't tried it so I am guessing. GTalk is, besides the IM also the service for payment from market and afaik offers push notifications. Can you tell more about the extent of those wakelocks (time, and count)?
[BetterBatteryStats] LuffyPSP:
in my case, a few mins or seconds everyday~ nothing more than that.
[BetterBatteryStats] chamonix:
Try this: unfreeze maps, log on to latitude, go to settings and log off again. Then go to services and check what is running. The friendfinder should be gone. I had this issues at least twice since updating maps.

If it won't help then in this order:

Make sure no other app would be interested in consuming location info.

See if there is a radio/modem update.

Edit: one thing more came to my mind. How's your signal? Jumping btwn towers of btwn 3g and h/h+ may explain this as well as the implementation of location is completely different for each of these technologies.
[BetterBatteryStats] chamonix:
Don't obsess if the count is not very high.
[BetterBatteryStats] thebeardedchild:
So did anyone ever decide what the "last" and "current" reference points mean? The others are pretty intuitive...I still think a "since boot" and "all time" reference should be added, and this app is absolutely golden for me.
[BetterBatteryStats] carlos67:
.........off course I did ;)
[BetterBatteryStats] carlos67:
IIRC, the total wakelock time was small (i.e. a few minutes) over several hours but the wakelock count was huge - something like 306.

Like you say, not worth obsessing over. :)
[BetterBatteryStats] jzaslice:
I've found that Friendcaster Pro has been spending alot of time in my wakelocks section. I have active sync every 30 minutes and popups. Just wondering if anyone else that is using friendcaster is finding that it consumes alot of wakelock time
[BetterBatteryStats] ithehappy:
OK, if I click on Custom Reference option in Menu then nothing happens, is that normal? If I click on the Since Custom Ref from combobox afterwards then it shows, 'Since xxxxx' (the time since I click on Custom Reference). Is this how it supposed to work?

Regards.
[BetterBatteryStats] jonny68:
Just to confirm if i want to check what has been using my battery when the phone is on standby i set it to wakelocks - since custom ref or since unplugged?

thanks
[BetterBatteryStats] carlos67:
@Chamonix

I see you flashed nini-poo 2.0.4 on twitter. Welcome to the fold man, hope to see you in the thread soon. :), hope you don't mind bad language :eek:

What ROM you running on sgs2?
[BetterBatteryStats] tltester:
Already tried the latitude trick, it didn't help, unfortunately.

Asa about reception - it happened more at a good reception area than at a bad one. Don't know what to think...
[BetterBatteryStats] chamonix:
Exactly. If you have a suggestion for the wording feel free. The menu option saves the state at one pain in time you set and the statistic "since custom" shows the delta. That allows you eg to set a reference before leaving the phone alone and isolate what happened since that point in time.
[BetterBatteryStats] chamonix:
It depends. If I have been using my phone a lot I use custom to filter out all the wakelocks that may have been collected while using the phone as those don't bother me. At the end of the day if I want to see the overall picture I get back to "since unplugged"
[BetterBatteryStats] chamonix:
I'm using VR for a while now and moved to ninpo's kernel last week. I'm proud to say that I have read every single post of both threads. Btw I had 30 minutes to kill in the train this morning so I hacked a BLN service that I'm testing now. Will be released for free but without thread, it's not worth the buzz. I'll announce und twitter.

Working on other projects too, some secret and one of interest for wakelock hunters: an intelligent and powersaving app to update your latitude position without using maps and a display of your friends nearby without maps too. Maps is cool but the wakelocks caused by maps are too high.

Special note to nobnut: this app will not use fine grained loc so it won't switch to gps even if it's on in bg
[BetterBatteryStats] xuxuzao:
what about contacts sync, do u use?

any other config?

tks
[BetterBatteryStats] blecap:
Hey guys, have a drop of 12% over 6hrs, please help me see! :( on rocketrom v20 and speedmod kernel, phone doesn't go into deepsleep much.

===========

Other Usage

===========

Awake (): 28 s (28 s) Ratio: 100,0%

Screen On (): 25 s (25 s) Ratio: 91,7%

=========

Wakelocks

=========

AlarmReceiver (com.sec.android.app.clockpackage.Clock): 4 s (4 s) Count:2 15,5%

AlarmManager (Android System): 2 s (2 s) Count:8 9,2%

SCREEN_FROZEN (Android System): 2 s (2 s) Count:2 8,8%

MediaScannerService (Media): 2 s (2 s) Count:2 8,7%

SMSDispatcher (Dialer): 2 s (2 s) Count:1 8,2%

mountservice (Android System): 2 s (2 s) Count:7 7,8%

sleep_broadcast (Android System): 1 s (1 s) Count:1 6,0%

StartingAlertService (com.android.mms.Messaging): 1 s (1 s) Count:3 4,5%

RILJ (Dialer): 1 s (1 s) Count:20 4,0%

================
[BetterBatteryStats] Karpfenhai:
Please post a Dump, otherwise no analysis is possible, on BBS --> menu --> more --> Dump to file, regards.
[BetterBatteryStats] blecap:
where do i look for the "dump to file" after clicking it?
[BetterBatteryStats] roloracer:
I can use better battery life, I'll definitely check this out.

Sent from my CM9 NexusHD2
[BetterBatteryStats] CRXed:
Awake (): 19 m 33 s (1173 s) Ratio: 29.0%

Screen On (): 18 m 16 s (1096 s) Ratio: 27.1%

The only drain you had was for using your phone (screen on), so that not bad.

But you do have

AlarmManager (com.levelup.beautifulwidgets.Beautiful Widgets): 1 h 5 m 20 s (3920 s) Count:0 97.0%

That's an app (not just a widget) so try to remove it.
[BetterBatteryStats] ManUtd07:
Just to understand, I should remove Beautiful Widgets from the phone? I'm trying to get a better understanding of this stuff so I appreciate the help/advice. How is it draining battery as an app if it is used for widgets? I guess I'm confused at how it's still running if I don't have any widgets on any screen.
[BetterBatteryStats] richua:
Root of SD card
[BetterBatteryStats] demonwind:
Can someone recommend me a good app to find out what my "deleted_wake_locks" are? Everything else seems to be fine as of now.
[BetterBatteryStats] dingbat01:
Hi.

Thanks for your reply.

How do I reduce its frequency? In the Settings-Accounts + Sync menu I don't have a way of choosing a frequency, just auto or manual.
[BetterBatteryStats] longfeng:
I am using Juice Defender and overclocking my phone to 1.3GHz. Deep sleep is not an issue with 7hr/1%.

Overclocked from 1G to 1.3GHz

Phone still in deep sleep

No waking up during night time.

Battery consumption rate @7hrs/1%

Battery Monitor Widget display

BetterBatteryStat display

Juice Defender is still the most active app but it does not affect the wakelocks.

Juice Defender is also in deep sleep.
[BetterBatteryStats] CRXed:
A widget is part of an app. A widget usually does stuff in the background, polling data. That causes to wake the phone. Maybe it is still trying to receive data, even when not using a widget on the hoemscreen?

The only way to test is to complete remove the entire app.

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

Remove it.

Something is trying to sync over and over.

First test it with the app removed. Then reinstall and see if the problem is back.
[BetterBatteryStats] demonwind:
Force stop just exits the app if it's running in the background, but it's quite pointless as most apps have the ability to restart automatically.
[BetterBatteryStats] ManUtd07:
What is "com.facebook.katana"? I have Facebook notifications turned off, refresh interval is "never" and I don't sync contacts. Wondering why it is still showing up in my processes.
[BetterBatteryStats] Simba501:
It'll appear any time you open it, regardless of what your settings are. Some times it starts automatically (which can be stopped by the app autostarts).
[BetterBatteryStats] ManUtd07:
How do you stop it from autostarting?
[BetterBatteryStats] yhrn:
Not sure I get it. Was this post some kind of proof that Juice Defender does not cause more harm than good? If so - you have not convinced me. That your phone hardly uses any battery when idling in airplane mode is just normal. And the BBS screen shot shows that Juice Defender does affect your wakelocks - it's the top partial (userland) wakelock.

Or did I completely misunderstand you? If so I apologize.
[BetterBatteryStats] chamonix:
What is the issue reported? I can't understand read anything specific from the screenshot
[BetterBatteryStats] IRB95:
On my OPO the ambient display would wake the screen on its own even when kept on flat surfaces (bug maybe).

Ambient display wakes the screen on movement without checking for proximity & touches.

On my opo it would wake up even on the slightest movement (I mean even on slight vibrations when on a desk). As far as I think there is no app responsible for making the screen wakeup except for notifications when ambient display is turned on
[BetterBatteryStats] qwerty22:
Ok. API - without wakeup intents. No API - has too. Ok, is not normal to android.

Why BBS patched by d8389@github.com is supported wakeup intents on Samsung 5.x but oroginal has not?
[BetterBatteryStats] chamonix:
because I have not received a pull request for a fix. I have no way to test and am not willing to add more complexity to the app just because samsung does not follow the spec so my bet is to make the API Alarms as good as the parsed ones (there is an open issue for that)
[BetterBatteryStats] qwerty22:
Just in case. Test for Samsung Android 5.x:
[BetterBatteryStats] mdamaged:
Delete me.
[BetterBatteryStats] chamonix:
That is already known but there is no way I can reproduce that as that is clearly a bug specific to samsung (devices)
[BetterBatteryStats] qwerty22:
Possible checks:

1. if "ro.build.version.release=5.0" (5.0.1/5.0.2/etc) and "ro.product.brand=samsung" ...

2. if stderr == Can't find service ...

The forum will test those users who have a Samsung Galaxy with Android 5.x.
[BetterBatteryStats] SlimSnoopOS:
I see that you're using a 5X. By chance, are you using Double Tap to Wake or Sweep to Wake? Because that will cause the 5X screen to wake up periodically to check for screen off gestures.
[BetterBatteryStats] greves1:
I am in fact using DT2W. I will flash EX again with this feature disabled to see if there is any difference. Thanks!
[BetterBatteryStats] chakalala8:
Screen on and Awake (Screen off) seems inverted. when using the app and hitting refresh the awake (screen off) is the one who increases and the screen on stays the same. is this correct? thanks
[BetterBatteryStats] cartman_73:
It said that the APK:cloudrep is suspect file

Inviato dal mio Find7 utilizzando Tapatalk
[BetterBatteryStats] suku_patel_22:
Works as expected.
[BetterBatteryStats] chamonix:
https://forum.avast.com/index.php?topic=179031.0
[BetterBatteryStats] cartman_73:
I read that post, I wanted to be sure that knew.

Thanks for your response [emoji4]

Cheers

Inviato dal mio Find7 utilizzando Tapatalk
[BetterBatteryStats] chamonix:
well I don't see anything I can do: for sure this apk is not known to avast and yes it is signed with a debug key. I find the way avast works a little puzzling but who am I to know better.

TLDR; it's a warning and nothing to worry about
[BetterBatteryStats] FernBch:
I can agree with this logic 100%. I have seen this AMS warning many times with different apps, both old and new. All of those warnings have come from apps that are not installed via Google Play. I have even seen it from apps I have extracted from ROMs I have previously flashed just to test something in a new build.

To me it means that it is not known by Avast, nothing more.

Just my humble opinion.
[BetterBatteryStats] azsl1326:
Searched and couldn't find an answer in this thread - apologies if I overlooked it. What's the differences between Doze Interactive Time, Doze Idle Mode Time, and Doze Idling Time? I am guessing that Doze Interactive Time is the amount of time the phone is spending in Doze state?

Thanks, in advance.
[BetterBatteryStats] Durrz:
Hi everyone. Hope you experts could help me out. I'm getting insane screen off awake times.

Attached is the dump file of my bbs stats for reference.

Any help would be appreciated :)
[BetterBatteryStats] chamonix:
Wakeups caused by wlan broadcasts, Google location services and Facebook are the main reasons. You will find plenty of tips to reduce the two first in this thread
[BetterBatteryStats] suku_patel_22:
Here you go, successfully replicated the issue with the phone left overnight. Alarmss seem to be working fine, but not KWL.

Even the dump since custom/screen-off has no KWL.

Have captured the logs and dumps in 2 parts, one when filtered since unplugged and other since custom.

PFA the dumps, screenshot and logcat.
[BetterBatteryStats] chakalala8:
Non Root - 5.1.1

my device is non rooted. i tried this on my rooted device and it seems fine. however you can take a look at this

[IMG="1st"]https://pbs.twimg.com/media/CX2QceXUkAAMCZ8.jpg:large[/IMG]

[IMG="2nd"]https://pbs.twimg.com/media/CX2QRbcUQAAO7FG.jpg:large[/IMG]

[IMG="reinstalling"]https://pbs.twimg.com/media/CX2QZyeUEAAefiN.jpg:large[/IMG]
[BetterBatteryStats] suku_patel_22:
I am not rooted as well.
[BetterBatteryStats] chakalala8:
any idea or advised what went wrong? im using samsung galaxy j5 running android 5.1.1. This seems really odd. am i missing something? bluetooth and even the wifi doesnt shows up
[BetterBatteryStats] Durrz:
Thanks so much for the quick response. Will search the thread for some solutions :)
[BetterBatteryStats] azsl1326:
What's the difference between Doze PowerSave Time and Doze IdleMode Time? I noticed that I dont have an entry or values for Doze PowerSave Time.

Thanks!
[BetterBatteryStats] rufik:
Weird wakelocks in 6.0

I've recently upgraded my Moto X 2014 to 6.0 MM and noticed that my battery is not better then 5.1, so I did some BBS dumps to explore wakelocks :) One is with mobile data and wifi switched on, and second is with mobile&wifi switched off.

There are some massive wakelocks that I'm not able to google out:

qcom_rx_wakelock - related to wifi, maybe broadcast/multicast packets handling?

qpnp-vadc-ed22ea00 - ???

NlpCollectorWakeLock (System Android) - location related? even if my location services are disabled all the time?

RILJ - ???
[BetterBatteryStats] suku_patel_22:
In location settings, scan settings (overflow) is wifi and Bluetooth scanning off?
[BetterBatteryStats] rufik:
Yes, disabled.
[BetterBatteryStats] atrix4nag:
I am having a drastic drain on my phone. Can you help me how can I fix this.

TIA.
[BetterBatteryStats] mdamaged:
Nothing really stands out, looks to me like the battery might just be losing it's charge quicker due to age or defect.
[BetterBatteryStats] 2x4:
would installing BBS break the SafetyNet API (Android Pay)?
[BetterBatteryStats] swallowingled:
Not if you install the beta from post #2. I have it installed and my Nexus 6P passes safetynet checks. I haven't had the opportunity to actually use Android Pay yet though.
[BetterBatteryStats] 2x4:
This file, right?

BetterBatteryStats_xdaedition_2.2.0.0B4.apk - (3.33 MB, 2774 views)

My bad, I missed that when i first read it. Thanks!
[BetterBatteryStats] swallowingled:
Yes, that's the one. It seems to be working for me so far.
[BetterBatteryStats] atrix4nag:
My phone is just 6 months old, need to think what to do next...
[BetterBatteryStats] Perseus:
Do you by chance have "Scanning always available" Checked under Advanced Wireless Properties ? Please do another Dump with Location Service completely turned off AKA GPS Turned off. And oh reboot before leaving Idle for 5 hours.
[BetterBatteryStats] atrix4nag:
I am pretty sure I have scanning always available is off, but will confirm it again, and will get an idle dump with GPS off.

Thanks
[BetterBatteryStats] IronTechmonkey:
On Moto E XT1511 running clean flashed CM13 Jan 4 Nightly under native CM SU with BBS 2.2.0.0 b4 installed from apk with one reboot after installation = no need to install as system app or reinstall apk. Functions seeming normal. In particular, now collecting partial wakelock stats without requiring SuperSU. Wahoo.:good:
[BetterBatteryStats] chamonix:
That sounds like the experimental feature is working. If you could confirm that it survives reboots we are good to go :)
[BetterBatteryStats] chamonix:
Unfortunately the logcat is truncated. From the dumpfiles the problem seems to be intermittent so it would be rally nive if you could capture another logcat.
[BetterBatteryStats] shaggyskunk:
Looks like it survives Reboots and Dirty Flashes too :)

Sent From My SM-N910W8 Running CMRemix 6.01
[BetterBatteryStats] IronTechmonkey:
+1. Surviving reboots, nanadroid backup/restore and dirty flash from CM13 Jan 4 nightly to CM13 Jan 5 nightly here as well. ---------- Post added at 05:01 PM ---------- Previous post was at 04:36 PM ----------

/\ /\ /\ /\ /\
[BetterBatteryStats] atrix4nag:
today I had great battery, I forgot to save the dump.

Yesterday I installed latest version of ROM and gps is turned off. I will try to get the dump tomorrow.

Today after 3.30 hrs, 0% loss of battery.
[BetterBatteryStats] Perseus:
That's more like it. Depending on your exact location (Indoor / Outdoor / basement) GPS can take forever and thus chewing your battery. Consider using FasterGPS App.
[BetterBatteryStats] matteus198701:
why don't show me the doze time in statisticks ? Is it enabled by default? I'm on the cm13

Nexus 4
[BetterBatteryStats] atrix4nag:
Yesterday I had 0% drain for 4+ hours, and today I have 21% down in 6+ hours.

I didn't install any new apps today. Can you suggest, whats happening with the phone...
[BetterBatteryStats] Portgas D. Ace:
In case you use Amplify, limit com.google.android.gms/com.google.android.gms.checkin.EventLogService$Receiver to 86400 (which will allow to let this alarm run once per day). This will reduce your drain.

Credits go to Celestial Fury for his awesome thread over here.

EDIT:

In addition, add a new regex blocking rule within Amplify to block those random ALARM_WAKEUP's. Navigate to the Alarm section within Amplify and click on the symbol that looks like a paper sheet. Add ALARM_WAKEUP[0-9]{8,} and set it to an interval of 9999999. Repeat the same but this time enter {7,} instead of {8,}. Repeat until you have added all numbers from 8 to 4. This will block those annoying random wakelocks.
[BetterBatteryStats] atrix4nag:
I don't have Amplify. I will think about buying it.. any other solution?
[BetterBatteryStats] TNSMANI:
You have a lot of alarms firing which can be controlled by Amplify. The alarms seem to be your issue.

---------- Post added at 06:54 PM ---------- Previous post was at 06:48 PM ----------

I think only Amplify can solve your issues.
[BetterBatteryStats] atrix4nag:
Thanks for your suggestion.. I will think about amplify..

one more question is why one day battery doesn't drain at all, and other day it does drastically? any idea?
[BetterBatteryStats] RASTAVIPER:
I have a Meizu M1 NOTE, with 5.1 Android and beta Flymeos 5.6.1.5 and recently BBS 2.1.0.0 stopped working.

When I open the app, all I get is a white screen.

Any ideas?
[BetterBatteryStats] Portgas D. Ace:
Try to install the latest beta of BBS (2.2.0.0 Bxxx).