yashsingh1/xdaforums huggingface dataset:
[Android General] lazer155:
Has anyone seen the services: com.google.android.gms/com.google.android.location.internal.server.googlelocationservice

com.google.android.gms/com.google.android.places.service.placedetectionservice

They appear to be new but are pretty active in the amplify logs even with location turned off.
[Android General] Portgas D. Ace:
Should be related to all kind of vibrational feedback, such as vibrate-on-touch or vibrate during notification. This will appear if you have vibration enabled.
[Android General] Celestial Fury:
If you type SMS in Amplify's search function you will find various wakelocks and alarm(s) related to it. If Hangout is your default SMS app then search for Hangouts (as well as push notifications in the guide identified by a red cloud icon).

Post #3 Test Idle Battery Drain No. 6.

You may have Scanning always available in your WiFi setting.
[Android General] Vuska:
i also looking for this but..

i don't see option about Scanning always available in advanced menu Wifi...

only options about "Keep wifi on during sleep"

using Note 4 TW 6.0.1
[Android General] rdoane:
On stock 6.0.1 the scanning settings can be found in Settings -> Location -> Overflow menu (upper right) -> Scanning

Toggle Wi-Fi and Bluetooth scanning off.
[Android General] darthaled:
Can't Google hidden them more?

They're related only to when Location is ON (in this case I'll let them activated, for more accuracy) or always? (in this case I think it's better deactivate them for battery saving)

I know that the description says "in any moment", but they're placed in a sub-menu of Location, it's so ambiguous
[Android General] Vuska:
Hi..

I lost 6% while i sleep and my phone are in Flight Mode.

Not 7 hours.. Only 5 hours.

I get the dump file.. Please help to see what eating my battery..

http://cloud.tapatalk.com/s/5759f4e480a95/BetterBatteryStats-2016-06-10_053736337.txt

Thank you..
[Android General] Portgas D. Ace:
Alarms: 4, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_81565 -> use the regex function of Amplify to handle this. Use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+ and limit it to 9999999

Beside this, BBM and UCBrowser are quite active. If you don't rely on push notifications from UCBrowser, greenify it when you don't use it.
[Android General] Vuska:
Like this?

*never use custom regex before*

And... What the effects?

Is it whatsapp or bbm new messages notifications?
[Android General] Portgas D. Ace:
Yes, that is the correct way to block all of those alarms.

The CONTEXT_MANAGER_ALARM_WAKEUP_ is the successor of the infamous ALARM_WAKEUP alarms that have been annoying users since Android Lollipop. By using the regex, all alarms that have the CONTEXT_MANAGER_ALARM_WAKEUP_ in its name will be blocked. It is related to Google Play Services.

When greenifying Whatsapp and BBM, you won't receive push notifications anymore until you open the app. There is an option available within Greenify to receive push notifications for greenified apps, but it doesn't work properly for Whatsa.. So don't greenify Whatsapp at all.
[Android General] gnam:
And it's even safe to block ContextManagerWakelock ?
[Android General] Vuska:
My new test and with new battery.

Note 4.

Please give me some advices..

http://cloud.tapatalk.com/s/575bada12adce/BetterBatteryStats-2016-06-11_062516202.txt

Thank you...
[Android General] Portgas D. Ace:
I haven't limited it as it doesn't drain any battery on my device, so no recommendation from my side about this one. You can limit it, but as always in case you limit something that isn't in this guide: make a backup of your system first and then start limiting it with only a low number, for example 300. If no issues arise, increase it step by step.

Level lost [%]: Bat.: -1%(100% to 99%) [0.2%/h] -> that's pretty good :good: but it should be better with no data connection at all

You have some location-related alarms that are listed in the OP. You can limit them without issues, as from my experience

The rest looks good, BBM draining some juice despite not being connected to the internet at all. You could try to greenify it and use the option for GCM push for greenified apps. If this works for BBM, then you can use this in the future. But if you use BBM quite regularly, then don't greenify it as the constant hibernation/wake-up causes a lot more drain than you may save by greenifying BBM.
[Android General] Vuska:
Thank you.

If i limit all that locations related.. Is my Waze still can catch my position? *foreground application*
[Android General] ianmacd:
There are so many different configurations of hardware, firmware, Xposed modules, apps, location and signal strength, that no two devices behave the same way. Even if they did, the way we all use our devices is very different; and a particular blocked wakelock might be unnoticeable to one user, but cause huge problems for another.

A golden rule of limiting wakelocks is: don't limit anything that isn't measurably affecting your battery life. Just because a wakelock is used very often, doesn't mean you should limit it. Look at time consumed, not number of times invoked.

If a wakelock consumes a lot of time, there's a good chance that you depend on it for something important. This is hard to ascertain for system apps and operating system components, as the purpose of the wakelock in general often isn't known. For user apps, the situation is different. These can be safely limited. The worst that can happen is that you will break the app's functionality.

The consensus regarding location services based wakelocks is that they can be safely limited without consequence. However, whilst you certainly won't crash your device, you may notice adverse effects after limiting these wakelocks, depending on how you use your device. Whilst most users certainly can limit these wakelocks without noticing any adverse effects, if you rely on location services in a big way -- by which I mean in multiple ways, throughout the day -- then you may notice an impact. This is only logical, because if you limit location services from doing its work with the usual frequency, then accuracy and/or availability can only deteriorate.

I have seen this myself using Tasker profiles that use the AutoLocation plug-in to fire on geofence-based events. These fire demonstrably less reliably once location based wakelocks are limited.

All of this is just my slow way to getting around to tell you to try limiting the wakelocks of interest to you and observe the results. Then adjust as needed. And, if your results are interesting, post them here.

No-one can really tell you what the consequences will be of limiting a particular wakelock on your device, because they don't use that device in your location the way you do. The best anyone can give you is a generalised piece of advice.
[Android General] Hari Haran:
How's this ? Not yet flashed xposed! Just with greenify!
[Android General] Portgas D. Ace:
That's good. In case you want better idle battery drain, refer to post #6 and post an idle log file. That's what this guide is about.
[Android General] Hari Haran:
I've tried only once and haven't noticed any improvements! Limiting wake locks one by one is a pain in the a** [emoji23] [emoji13] I'm too lazy
[Android General] donky kong 017:
Hi. Often I have that wakelock or active process. I have this since month now and have not found a solution. I have looked for hours for a solution, but nothing helped. Some said it was from the February security patch, or from notification sounds, or a bug in gsam. But that can't be because it's draining my battery over night. Only a reboot stops it for some time. It starts at random. I have not found the cause. Maybe someone can help

I had that first on audax rom. But now i have latest pure xtra lite with latest audax kernel and it never got away.

Sry still looking for the bbs dump file

http://cloud.tapatalk.com/s/575d06c6ca71e/BetterBatteryStats-2016-06-12_085010299.txt
[Android General] TNSMANI:
Update BBS to 2.1.0.0B6. You have an old version. Then take an idle dump and post it here. What you have posted is an in-use-dump.
[Android General] donky kong 017:
It's the latest version available to me. Sry for the in use dump. It accures mostly after some use but i can not figure out from what. I will do the idle dump
[Android General] arunkafley:
Can someone please help me. I am having huge battery drain and its mainly due to android.net.netmon.lingerExpired_XXX_XXXXXXXXX. I have managed to limit it when everything is positive like android.net.netmon.lingerExpired_100_526489561 by using the regex android.net.netmon.lingerExpired_[0-9]+_[0-9]+ . The problem I am facing now is that I am getting the same alarm but the second part is negative like android.net.netmon.lingerExpired_100_-462589753. I have tried android.net.netmon.lingerExpired_[0-9]+_[0-9]- but it does not seem to work. Does someone know how to configure the negative part?
[Android General] ianmacd:
android.net.netmon.lingerExpired_[0-9]+_-?[0-9]+
[Android General] TNSMANI:
0B6 is available in XDA here: http://xdaforums.com/showthread.php?t=1179809
[Android General] misterhong:
i dont know what were the last alarms or wakelocks i limited, and now play store and gmail are force closed.

can anyone help?
[Android General] Portgas D. Ace:
Try to unlimit "Icing"
[Android General] misterhong:
yes it worked. thanks.

so i cant limit it?
[Android General] Portgas D. Ace:
It seems that newer versions of Google Play Service need Icing, limiting it will break things and thus you can't limit it.
[Android General] misterhong:
im on the latest update of google apps but still got "com.google.android.googlequicksearchbox/com.google.android.apps.gsa.sidekick.main.TrafficIntentService" drain.

is it safe to be amplified?please advise. thanks.
[Android General] Celestial Fury:
It used to be safe to limit. It should still be. Your 'traffic to work' update will just be slow to appear or something else related to traffic as provided by Google. I'd like to see an idle log of this new drain if you don't mind.
[Android General] misterhong:
i will provide it later, i use my phone frequently therefore i cant provide idle log for now.
[Android General] CrisperNeO:
Can i do something here?
[Android General] CrisperNeO:
And i can never get rid of these kernel wakelocks?
[Android General] Portgas D. Ace:
A quick search for suspend_backoff resulted in this.
[Android General] CrisperNeO:
Sorry i forgot to mention, how about those qpnp things?
[Android General] Portgas D. Ace:
http://xdaforums.com/g4/help/qpnpfgmemaccess-wakelock-t3321518

You could try to flash a custom kernel, but there is no guarantee that this wakelock will go away afterwards.
[Android General] wxfreak:
My drain has increased lately up from 0.1% to 0.4%. Any help would be appreciated, for the attached log!
[Android General] aukhan:
I really hope I am not bugging where as this is giving me more knowledge about theses things.

1. I've disable mentioned services.

2. Grennified telegram

3. Only the suggested alarms and wake locks by you I've just limited them to 84300 all of them.

I've been running them since this morning so far all is well. I shall new stats tomorrow.
[Android General] aukhan:
Today something cause a huge drain I am assuming some fb service please look into it straight 14% drain in 4 hours and it was just idle.
[Android General] aukhan:
https://www.dropbox.com/s/uuvicij10c44tqj/BetterBatteryStats-2015-02-21_100642921.txt?dl=0

Here is the dump.

As mentioned in a previous post by other user is that the reason of drain ?
[Android General] aukhan:
Finally after a lot of requests search feature is getting implemented.

http://youtu.be/PSS2FvX07Xo

No more difficulty in searching.
[Android General] v7:
Amplified [emoji6] [emoji1]
[Android General] Chef_of_Sweden:
Ok, now I see. Most of my Google apps are turned off in Google settings, that explains it.

:good:
[Android General] aukhan:
Dump https://www.dropbox.com/s/1r1bc3b1f0l1k13/BetterBatteryStats-2015-02-22_095336810.txt?dl=0

Sent from my SM-N910F
[Android General] Celestial Fury:
No laptop with me now for proper replies. I should be back tomorrow though. :fingers-crossed:
[Android General] rawalmaulin:
Hi,

I just managed to install the BBS AMPLIFY with XPOSED framework. Could you pls be kind to guide how should I start. Using galaxy core rooted. I have gone through full thread but can't understand where to start. My phone is full of apps and battery doesn't last for even half day
[Android General] aukhan:
Hi rawalmaulin,

I would request you to go trough the Post 3 and kindly Check that where you need to start off.
[Android General] rawalmaulin:
OK let me go through. I have checked in the BBS that

Whatsapp alarm and Google play service alarm Gsf has drained 46% of battery overnight. What do you suggest?
[Android General] Portgas D. Ace:
I would suggest to post screenshots from BBS which shows the related services, as OP suggested and other users have done before. Use the app Greenify to hibernate apps which you do not require to always run in the background, for example gallery or camera apps.

Furthermore, you can use the app Disable Service to disable specific services, which are responsible for keeping your device awaken, for example Google's location reporting service. If you have some questions about services you can disable, search for it. I would recommend to disable the services "com.google.android.gms.auth.be.proximity.authorization.userpresence.UserPresenceService" as well as "com.google.android.location.fused.NlpLocationReceiverService", which are known to cause a hughe battery drain.
[Android General] Sedariya11:
Thanks for the app buddy. I m today surprised by your hard work behind this and I have donated also as soon as I start the app. I just want to know one thing that can we change the sync time of any non system app like tweetcaster pro, line messenger app as I don't want any push notifications from these apps but would like to have notifications 4 times a day. So just confused. Let me know thanks for the app though.

Sent from my HTC One
[Android General] Celestial Fury:
How many WhatsApp messages (2.0 MBytes) did you receive in this idle period? What was the reason mentioned by this other user?
[Android General] Celestial Fury:
You need BBS screenshots to show drain, not Amplify. Though I might be misreading your posting intention as your emojis don't translate into icons for me.
[Android General] Celestial Fury:
For this, WhatsApp doesn't really show much data received although it does seem a little active. Also, while your telegram is hardly active it did receive 1.0 MBytes worth of messages (how many messages?) in the little time that it was active. Your cell signal is fine. Barring these, then I'd say it's the kernel. Have you established your two baselines yet? They will help narrow things down.
[Android General] Celestial Fury:
Didn't create the app - Amplify is here.

In Amplify, when you click on an Alarm or Partial Wakelock, the screen will show you the name of the app. When you find tweetcaster, you can limit it to 21600 sec for 4 times a day.
[Android General] aukhan:
I shall try the other Base lines and Last night I moved to AICP and currently using this pretty much, How would I know which alarms/services/wakelocks are to be amplified and which cant be amplifies ?
[Android General] Celestial Fury:
The ones listed under DANGEROUS - DO NOT LIMIT / DENY shouldn't be amplified as well as the ones listed under NOT SAFE TO LIMIT in Amplify itself. The ones to be amplified are the ones that cause drain as reported by BBS. BBS will list the highest drainage in descending order. So work on the ones at the top of the list. [0.0%/h] - [0.3%/h] is a good target to reach. Compare your stats with the screenshots in Posts #1-#2. My aim was to get the number of alarms 1-2, partial wakelocks <1 min, kernel wakelocks <1 min). Also, don't limit what you limit to 24h. Start with 2h first, then 12h if needed. It's rare for anything to be limited more than 24h. The drain usually stops before then.
[Android General] aukhan:
I'll share some new stats tomorrow morning. I've followed and amplified as per op. A let's see how this runs, whenever I experience any drains I'll come back to this thread. I hope you don't mind.

Sent from my trltexx
[Android General] misterhong:
i dont know why because suddenly when i opened instagram, all the photos wasn't loaded when using mobile data, but loaded when using wifi.

does anyone know if i wrong amplified something? [MENTION=5901790]Portgas D. Ace[/MENTION]
[Android General] TNSMANI:
Though your wifi seems to have been running the whole time, your mobile data was used for the downloads. I don't know why. Mobile data will consume more battery than wifi. You can disable mobile data and check the drain again.

How is the mobile signal at your place? There seems to be an issue. Can you provide screenshots of your batterystats and history details?
[Android General] wxfreak:
That's the weird thing I've been making my overnight test with wifi off, mobile data signal is marginal but I have been getting consistent 0.1% on mobile data only.

BBS indicated that wifi was on last night, but I verified it was off this morning.

Wifi scanning is disabled for location and open networks.

I will have to work on screens shots later.

Not sure why wifi shows being "on" when it was "off" in the settings?
[Android General] AshKaiser:
Awesome guide!

Using a Nexus 5 really reminds how "powerless" one can become over a period of time, if you know what i mean. A great device plagued by poor battery life...

Did everything "as is", though some alarms/wakelocks were absent in my device (Sony un-related), hope they don't matter THAT much. Was to lazy stop FB related entries, de-bloated my phone by simply uninstalling it.

And now, time to wait.....will report soon!:good:

Thanks for the guide!! :highfive:(given)
[Android General] misterhong:
please take a look at my dumpfile BBS. [MENTION=5901790]Portgas D. Ace[/MENTION]

here's "com.google.android.googlequicksearchbox/com.google.android.apps.gsa.sidekick.main.TrafficIntentService" that you wanna see on idle log [MENTION=5401012]Celestial Fury[/MENTION]
[Android General] Celestial Fury:
Post #2

FIX for

suspend_backoff (kernel wakelock)

In the guide

Alarms: 4, Intent: android.content.syncmanager.SYNC_ALARM

Alarms: 3, Intent: com.google.android.gms/.checkin.EventLogServiceReceiver

Alarms: 2, Intent: com.google.android.location.ALARM_WAKEUP_ACTIVE_COLLECTOR

Used to be in the guide

Alarms: 3, Intent: com.android.providers.calendar.intent.CalendarProvider2

You can limit it if you want and use a different calendar app.

But you're not supposed to do "as is". Post #2 line in red.
[Android General] Celestial Fury:
Screen On (): 12 m 31 s

Not an idle log. Post #3 second line.

From that log, com.google.android.apps.gsa.sidekick.main.TrafficIntentService is the least of your concerns.
[Android General] misterhong:
oke. i will do that again later.
[Android General] Portgas D. Ace:
Try disabling Amplify within Xposed Installer and reboot. If the issue still persists, it is not related to Amplify. If the issue is gone (pictures are loaded via mobile data), enable Amplify again and reboot. Afterwards, make a backup of Amplify by using Titanium Backup or another backup app, then start unlimiting all elements within Amplify one by one and identify the culprit. Time-consuming, yes, but it is the only way to properly solve your issue.
[Android General] CrisperNeO:
Who knows what these android alarms do:

com.android.server.WifiManager.action.DELAYED_DRIVER_STOP

com.android.server.device_idle.STEP_IDLE_STATE

They are causing wakes.
[Android General] hazote:
greaaat !

actually at 0.3% per hour. I can do less !

question:if under no wakelock I "disable partial wakelock", this action only freeze when screen is off, and when screen go on process will work, right ?

or may I delaye it under amplify ?

amplify action is both for screen on and off, doesn't it ?

thanks
[Android General] Vincenzo91x:
Sorry for making a question that have been probably alredy asked.

But is there a guide just to "reduce" google play services? Only that will be fine for me.
[Android General] Portgas D. Ace:
Sure. It's in the OP ;)

You have to limit only things with the keyword "google" in it and you are done.
[Android General] Vincenzo91x:
Great. Thanks sir [emoji106]
[Android General] Celestial Fury:
Most of the common answers can be found in Posts #1-#3 like

How to find problems with limited alarms/wakelocks

so no need to do it the hard way.

You did not mention the keywords which is while idle. That's what this thread is concerned about and not while the device is being used which I'll have to assume it is.

WifiService.java

* See {@link Settings.Global#WIFI_IDLE_MS}. This is the default value if a

* Settings.Global value is not present. This timeout value is chosen as

* the approximate point at which the battery drain caused by Wi-Fi

* being enabled but not active exceeds the battery drain caused by

* re-establishing a connection to the mobile data network.

*/

DeviceIdleController

/**

* Keeps track of device idleness and drives low power mode based on that.

*/

These are not something you want to limit.

Don't understand 'under no wakelock'. Amplify is for both screen on and off but in some apps like Google Now you can 'pull down' to force a manual refresh for that app.
[Android General] hazote:
I mean under the app "no wakelock", if check "disable partial wakelock" for an app, this would only stop app activity only when screen is off ?
[Android General] CrisperNeO:
These two are actually alarms occurred during night. OK, i will not limit them.
[Android General] AshKaiser:
Yes, the whole point of this thread, of course! Your guide really helped putting my N5 to sleep like a baby. Good idle battery drain(0.9%), was doing much worse before, but i think i can can push it even further.

Now, coming to the actual stats in Amplify, I have around 85k wakelocks fired, while only 15k were blocked. While alarms being 13k, 284 blocked. Never bothered about services. And for these numbers, the credit goes to you, so thank you again! :good:

Guess its time i put some effort into finding other culprits that keep my phone awake...will try to contribute my findings here. It might help someone.
[Android General] criz.89:
I think there is nothing i can optimize?!

https://drive.google.com/file/d/0ByctvHpXbPYKcjBPZ0YxNzdRUTQ/view?usp=drivesdk
[Android General] wxfreak:
I was concerned about limiting this because there is a warning in the guide for wakelocks running wild. Any help from last night's run would be appreciated. Thanks!
[Android General] Xerosnow:
Hi,

I've lost around 23% overnight. Please take a look and advise. Thanks.

Rom: Darkobas

Kernel: Lightning v38

Have flashed the gservice extended fix from here

Amplify on default settings

BBS somehow unable to collect kernel wakelocks [says no stats have been collected yet]

naptime with aggressive mode ON
[Android General] pijes:
Looks like Google Play to me. Try limiting it's alarm