yashsingh1/xdaforums huggingface dataset:
[Android General] marbertshere:
Hey can someone help me make sense of this? This is a screen of my BBS partial wakelocks. The first entry is *alarm* and the other entries are each for the same length of time and the same percentage of battery usage.

Does this mean that one big *alarm * wakelock is being held for this length of time and these are all individual alarms running? What is the *alarm* wakelock?

Link to screen shot:

https://www.dropbox.com/s/wncr5bvwitywbkz/Screenshot_2015-07-18-14-45-03.png?dl=0

---------- Post added at 04:09 AM ---------- Previous post was at 03:41 AM ----------

I was also wondering about the following two things and their impact on battery life. I'm on a cm12 based rom and a custom kernel:

1. Per-app profiles in battery settings

2. Multicore power saving (kernel tweak)
[Android General] v7:
*alarm* wakelock appears on all LP custom ROMs.although it shows up in BBS with high numbers,it doesn't drain much battery.No need to worry about them.

1.Per app profiles in CM ROMs controls the frequencies and governors for individual apps running in background.I always keep it ON.I'm not sure if it's working as expected.

2.Multicore Power Saving schedules the tasks to less number of cores to save battery.It actually saves some juice but leads to poor perfomance .
[Android General] v7:
Is notifications working for all other greenified apps?

Is Viber whitelisted in PowerNap?

Tapped from my furious dogo ;)
[Android General] Kappa Lamda:
Yes... All other apps working good. Like fb messenger, hangouts etc. Only viber has problem when I greenify it.

And again YES. Viber is whitelisted in PowerNap.
[Android General] v7:
Degreenify Viber.It doesn't seem to wakeup on receiving messages after greenifying.

Tapped from my furious dogo ;)
[Android General] Smittels:
[MENTION=5867207]vaisakh7[/MENTION]

I alreday did everything you mentioned in the op. Nonetheless 3% batterydrain over night:-/

Maybe you can have a look on my dump and find the little b**** that keeps my phone awake ;)

Thanks a lot!!
[Android General] v7:
Limit

*android.appwidget.action.APPWIDGET_UPDATE to 3600 seconds(widgets update every 1 hour)

You got a lot of WhatsApp messages during the idle time.That contributes to the drain.

Everything else seems fine.

Tapped from my furious dogo ;)
[Android General] Smittels:
Yeah,whatsapp is always ruining my stats. But I haven't received any message during the idle time!
[Android General] Yazuken1:
I'm gonna try this and see if I can't make my already long lasting battery on my Xperia Z1S last longer!! :D
[Android General] v7:
Have you greenified Whatsapp? If not,do it.

Tapped from my furious dogo ;)
[Android General] Smittels:
Ok, I'll greenify it. But I always thought that I won't get any messages if whatsapp is greenified?!
[Android General] v7:
If you've ticked the "GCM push for Greenified apps" in Greenify Expermental Features,you'll get the notifications even if you've greenified it.

Tapped from my furious dogo ;)
[Android General] Smittels:
Thanks so much! I've done that and greenified email,too. I only check emails manually,so no risk there,i guess!

Thanks a lot for your help,pal! Awesome thread!
[Android General] speedy56:
Here it is, wifi was onall the time(although the graph doesnt show it)
[Android General] Portgas D. Ace:
0.4% per hour is pretty good, even with a screen on time of 2min 30s ;)

You could try to limit the following alarm:

com.google.android.location.reporting.ACTION_UPDATE_WORLD to 99999999 (max. value)

EDIT: your WiFi has been turned on the whole time, but has only been connected for approximately one hour in total. Constant WiFi scanning is a known battery drainer.

Wifi On (): 9 h 28 m 24 s 100.0%

Wifi Running (): 58 m 29 s 10.3%
[Android General] Kappa Lamda:
I have degreenified it... But then I get too many alarms from it. I limited the one that gives me the most (it says keep alive) with 3600 on amplify but I don't know if I broke the push notification again.

Yesterday I had no viber messages but I need to get out with a friend of mine and do some proper testing.

I just asked here, if someone had tested and found a solution with viber.
[Android General] v7:
I'm not sure why that happens.His screenshots say that WiFi was active for a very short period of time but BBS stats says it was running for 58 minutes and was active for 9 hours.I think he should clean flash his ROM again.

Tapped from my furious dogo ;)
[Android General] v7:
Does it causes much drain?Does it show up in the top battery consumers in the inbuilt battery stats?

Tapped from my furious dogo ;)
[Android General] Kappa Lamda:
Yes... It is known that viber is a battery drain app, like fb messenger. It remains open on the background and causes many wakelocks. Basically alarms.

In the inbult stats appa it shows with a percentage of 15% if I do not greenify it or limit it on amplify even if I only sent/receive a couple o messages and not use it for long time.

But then again it shows on BBS too, on alarms page, just below or sometimes over Google services. The keep.alive viber alarm spawns too many times. Keeping phone awake.

I am trying now with the limit I wrote above and wait to see the results.
[Android General] v7:
If it messes up with the push notifications,limit it to a lower number.I've never tried Viber myself so I can't suggest you.

Tapped from my furious dogo ;)
[Android General] speedy56:
It happened on every LP rom I've had - AOSP 5.1 (other people in the rom thread also reported the same), stock LP, Existen stock based rom...

Soon there'll be another version of my rom so I'll wait and clean flash it ;)
[Android General] xdasree:
Here is my screenshots and BBS dump file.

Since my screen on-time is less I'm expecting lesser battery drain than this. I have noticed battery drain fast when screen on even though brightness set to below auto.

And weired thing is if you seen battery screen shot from phone settings shows Facebook is higher consumer and it didn't showup BBS.

Any inputs will be appreciated..thanks.
[Android General] v7:
Read FAQ in post #4 and post me a dump later.

Try to Greenify Facebook.

Tapped from my furious dogo ;)
[Android General] xdasree:
Sorry, forgot to attache the dump file.

here it is.....Thanks!
[Android General] Portgas D. Ace:
Screen On (): 1 h 46 m 21 s 9.1%

This is clearly not an idle dump. Read post #4, as adviced by vaisakh7.
[Android General] Culateralligator:
No, I haven't.

Enviado desde mi GTi8160 KK AOSP
[Android General] xdasree:
Is there any other way taking the dump other than faq#4 ?. Thats what I did.

Compare the dump and screenshots that I posted in previous post.

Thanks.
[Android General] Portgas D. Ace:
According to your screenshots (especially #1) one can see that your screen on time is more than 1 h and 46 m. An idle dump is what you get when you do not use your phone while taking the dump file.

To get an idle dump, proceed as following:

1. Open BBS and set the reference to Unplugged/Current (which will log your stats from the moment you unplug your device from your charger until you save the dump file).

2. Turn WiFi on and connect to your home WiFi, if possible.

3. Charge your phone to 100% and leave it connected to the charger for approximately 15 minutes after you reached 100%.

4. Unplug your device from the charger and leave it idle for at least 6 hours (recommended to do so over night). DO NOT USE YOUR PHONE OR TURN ON THE SCREEN DURING THIS PERIOD!

5. After idle period (after you wake up) open BBS and save the dump file. Upload this file here.
[Android General] f0xy:
Hopefully I've followed the guide correctly and done a proper log :)

https://www.dropbox.com/s/v93bw0303fryqj8/BetterBatteryStats-2015-07-21_112056118.txt?dl=0
[Android General] Portgas D. Ace:
Your stats are good. The only "bad" thing is this wakelock:

*alarm* (Android System): 6 h 6 m 25 s Count:7 100.0%

See vaisakh7's post for reference. I guess, most of your drain results from the fact that you have had more than two hours of bad signal:

Poor Signal (): 2 h 9 m 35.2%

When trying to establish a better connection, your device's battery drain increases.
[Android General] suaverc118:
Good moening [MENTION=5867207]vaisakh7[/MENTION]. Did this in airplane mode like you suggested and I hope I did it right this time. If not, I'm a lost cause lol. Thanks.
[Android General] f0xy:
Thanks pal

So not really much I can do apart from maybe toying with modems
[Android General] Portgas D. Ace:
You could try to pull another dump file with airplane mode enabled the whole time. This way you are able to see whether your bad connection or some other issue (kernel-related, for example) is draining your battery while idle.
[Android General] f0xy:
I'll do that one tonight :)
[Android General] v7:
Can you disable Amplify and see if it fixes the issue?

Tapped from my furious dogo ;)
[Android General] v7:
Yeah!Did correctly.So signal might be the culprit behind your drain.This stats looks perfect and there's no issue with the Kernel I believe.Arrange a better connection for lesser drain.

Tapped from my furious dogo ;)
[Android General] pillopoulos:
Is it mandatory that the Wi-Fi is turned on during the period of being idle for the dump result? Is it OK if it is only turned on without being connected to the internet?
[Android General] Portgas D. Ace:
Internet access is mandatory. Without a connection alarms won't trigger.
[Android General] suaverc118:
So once those are found, is it possible to once again to have everything off and the phone not have any battery drain for 6 to 8 hours? A few months ago I believe on 5.1.0, I had no drain when phone was idle. Since the new updates I get drain. My only concern is I'm told that everything looks good but I still get a drain in airplane mode. I don't want my phone in airplane mode at night and miss a call if it's an emergency. I used to just turn data and WiFi off and get no drain for the whole night.
[Android General] Portgas D. Ace:
To be honest, I am still on KitKat and I experience noticable drain as well, but none of the usual culprits are listed in my dump files. This drain has been present since I flashed the latest GAPPS and updated Google Play Services. So maybe those *** services are the culprits. Lets see if the drain will decrease due to upcoming updates.

But if the most aggressive drainers are found, everything can be as usual: data connection on during night and minor drain.
[Android General] Culateralligator:
I have frozen Amplify with Titanium Backup (it's supposed to be completely disabled, isn't it?) and the issue continues.

Enviado desde mi GTi8160 KK AOSP
[Android General] v7:
Try to reset the alarms and wakelocks in Amplify settings and reboot.See if the issue persists.

Tapped from my furious dogo ;)
[Android General] Culateralligator:
I've tried this too, and the issue persists.

I have no idea what could be the problem.
[Android General] v7:
I believe you did like this:

Amplify->Settings->Reset to defaults

Have you disabled any Location permission for any apps in AppOps?

Is GooglePlayServices and GoogleServicesFramework whitelisted in PowerNap?

Tapped from my furious dogo ;)
[Android General] Culateralligator:
Yes, Amplify has been reset to defaults. Appops has no location disabled and Google Play Services and Google Services Framework are whitelisted.
[Android General] v7:
When did the problem start?

Tapped from my furious dogo ;)
[Android General] Culateralligator:
I hadn't tried GPS since I started using this guide 2 weeks ago. Before this I have had no problems with it.

Thank you very much for trying to help. Maybe I have messed up something but I don't reach to figure out what. I have a previous back up, so I'll restore it and I'll test GPS each time I block or install anything.

Thanks again. :good:
[Android General] Purerawenergy:
This wouldn't be an issue if you set up Smart Network as suggested by OP. I no longer have this problem.

Sent from the slippery slope.
[Android General] suaverc118:
I've done that but for some reason its not working out for me. It takes for ever for things to connect to the internet and keeps me on 3g when it should be back on lte. Same thing with WiFi. One of my testings I believe was with smart network activated and it still dropped 4 to 6% over night and that's when they suggested doing it with airplane mode activated.
[Android General] v7:
Try Intelli3G.

Tapped from my furious dogo ;)
[Android General] v7:
Hey guys,

I'm planning to create a Hangout/FB/Whatsapp group so that everyone can keep in touch and discuss android stuffs.No off-topics!

I know this isn't the right place to say this(although this is my thread),but I think it'll be a good idea to have a chatbox.What do you think about it?

Anyone interested can PM me.Do not post in the thread.I don't wanna start an OT discussion in the thread :D

Regards

vaisakh7
[Android General] pillopoulos:
What do you think about my usage? Is it normal?
[Android General] v7:
How about posting a few screenshots of BBS?

[MENTION=5687120]pillopoulos[/MENTION] PS: Post the screenshot of the inbuilt battery stats page too.

Tapped from my furious dogo ;)
[Android General] pillopoulos:
My BBS doesn't work right.... The word ΑΝΑΜΜΕΝΗ means with screen on and ΣΒΗΣΤΗ screen off.
[Android General] v7:
Is there a graph in your native battery stats page?

From the above screenshots,everything seems fine :)

Tapped from my furious dogo ;)
[Android General] pillopoulos:
By the time the freefall started, I was just surfing with Wi-Fi with the native browser.
[Android General] v7:
Signal is fine.Everything looks good :)

Tapped from my furious dogo ;)
[Android General] pillopoulos:
Any reason why I have this kind of drain?
[Android General] v7:
Without a BBS log it isn't easy to say. :(

Tapped from my furious dogo ;)
[Android General] Purerawenergy:
It'd working fine for me. Ate you sure you didn't greenify, power nap or amplify it?

Sent from the slippery slope.
[Android General] ShadowAndroidFanatic:
Hey was wondering if you could take a look and tell me if there is anything more I can improve. I realize the kik app is causing most of my drains but I've limited it's wakelocks so those aren't as bad. Don't know if I should limit the alarm for kik or not but I'll leave it up to you to decide what else I can do. Thank you
[Android General] v7:
KIK is still the top consumer.How's the cell signal reception at your place?

Tapped from my furious dogo ;)
[Android General] abeloman:
How can I reduce the bam dmux wakelock?
[Android General] v7:
bam_dmux is wakelock for mobile data. Anything that keeps mobile data connection active can trigger the wakelock.There isn't a way to reduce it,although you can try different Kernels to see if it reduces the wakelock.

Tapped from my furious dogo ;)
[Android General] ShadowAndroidFanatic:
It's not the best only one bar on Lte. Have WiFi on most of the time though.
[Android General] v7:
You can manually switch to 2G while using WiFi and switch back to LTE for mobile data.

You can use Smart Network mentioned in the OP to automate the switching of networks.

Tapped from my furious dogo ;)
[Android General] kitu34:
Thanks for this.

Anyhow, have you guys tried to open google services app? I accidentally touched it after disabling around 15 services, it says "Google play services rely on google play services and your device doesn't support it, check with manufacturer .."

Gmail is working but then it's a really old version coz of lack of space. I am installing an app which needs Google services to run then I'll check. But it seems to be ok.

And I have forgotten the name of the service which is believed to be a battery drainer, it is something Nlp ..,I remember that it has nlp in it so I searched in 'disable service' with these keyword but no results, not even manually. I'll check again though, but if u remember please tell. I know it's here also but Im using mini browser so no find in page in this and uc browser will suck all the ram.

Thanks
[Android General] ShadowAndroidFanatic:
Yeah I just tried and it's super confusing lol can you do like a step by step guide for smart network. Sorry for being a noob
[Android General] gregferns:
[MENTION=5867207]vaisakh7[/MENTION]

Please advise what needs to be done by looking at my IDLE STATS attached.

I know its horrible and i think there may be 2 issues :

1 - Alternate calendar that was suggested by you -- I have installed it, but MAYBE NOT CORRECTLY

2. - I have started using C LOCKER.

I wonder if any of these is keeping the phone awake during the night !!!!!

Please help...

Thanks

Greg
[Android General] v7:
Re-enable all services of GooglePlayServices and GoogleServicesFramework from Disable Service and reboot.Then follow the instructions from the OP.

Tapped from my furious dogo ;)
[Android General] v7:
Will do when I get time.

Tapped from my furious dogo ;)
[Android General] v7:
Still the ps_wakelock is killing your battery.There's no information about the wakelock in Google.I think it's related to the Proximity Sensor.Can you try to switch ROMs?

Also you've missed a few alarms from OP.

Alarms: 31, Intent: android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED

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

Alarms: 6, Intent: android.appwidget.action.APPWIDGET_UPDATE(3600 seconds)

Alarms: 11, Intent: com.google.android.gms/.checkin.EventLogService$Receiver

Tapped from my furious dogo ;)
[Android General] gregferns:
Ok Will try with a different ROM. Right now i am on CM nightlies for the YU YUPHORIA.

And i checked the ALARMS... All you have quoted are set..... Don't know why they didnt work...

You need an Xposed log ??

thanks for your help

Greg
[Android General] v7:
Post me a log from the Xposed Installer.

Tapped from my furious dogo ;)
[Android General] ShadowAndroidFanatic:
Awesome no rush you already helped me lots thank you :)
[Android General] v7:
First of all,the thread focuses on using Greenify+Amplify+PowerNap.AppOpsXposed and AdAway provides an additional push.

I've explained everything in detail in the OP.Greenify consumes less power,Amplify and PowerNap doesn't even show up in BBS(with filter on).

Denying permissions of GooglePlayServices is very effective.

In the case of AdAway,it uses hosts file to block ads.It never drains any battery.I hate these annoying ads which consume data and battery.

Tapped from my furious dogo ;)
[Android General] v7:
I've never used that app.Is the Xposed modules compaitable with it?Googled and found that it is an alternative for Xposed.

Tapped from my furious dogo ;)
[Android General] v7:
If you are following my guide,avoid Tasker.It helps in automating things,but definitely runs a bunch of alarms in the background.I can say that with my setup,you'd be good to go :thumbup:

Tapped from my furious dogo ;)
[Android General] Moondroid:
I can relate, and in fact just decided to go with an older Droid Maxx for the slightly bigger screen (and 3500mah battery) with older ROM. Hopefully it'll come with <=4.4, or at most the SU4-21 build of 4.4.4, which can be unlocked. Something I can work with.

I haven't yet read all of your

fantastic

and very worthy thread, but I will. It's a lot to digest and filter, so it'll take me some time.

For now, in regard to what I quoted and emphasized above:

I have a rooted Moto X 2013 with 4.4.4, sitting beside a rooted/unlocked Razr M running 4.4.2. In my limited experience with that comparison, there seems to be a big difference in what will work (or work easily) with 4.4.2 versus 4.4.4. There's even a difference of what is available on Play Store for 4.4.2 vs 4.4.4.

On the Razr M I'm using an aftermarket "App Opps" thing, which is great, and I can obviously do a lot more with that.

On the Moto X I'm running Xposed + Xprivacy, and I can easily add more modules. But the main issue is it can be a little annoying, because too often I find myself needing to tweak an Xprivacy setting for one reason or another.

The rest of the story (relating more to the major subject of this thread) is that I seriously want to get into dev'ing (tweaking) my own ROM, mostly for debloating, power savings & privacy.

So (getting back to the quote) here's the heart of my question: Is it easier to do any or all of this stuff (and make it work efficiently and predictably) on 4.4 than it would be on 4.4.4?

I expect to have a choice about which of those versions to run on an unlocked phone.

BIG THANKS for starting this very worthwhile conversation.
[Android General] v7:
I've used Xposed and the Modules listed here on various devices running 4.1+.Never had any major issues with them.XPOSED is stable for 4.0.3-4.4.4,so you can definitely try the apps mentioned in the thread efficiently.

Tapped from my furious dogo ;)
[Android General] Ramer:
Also, both my devices are running deodexed Lollipop roms with xposed alpha on Samsung devices. Have not had any problems other than some theming issues with BBS.
[Android General] -iHackerz-:
So basically since we now have PowerNap to do Amplify's job when the phone is off, is it still worth getting amplify? (For the fact that it still blocks services when the phone is on)
[Android General] v7:
He was asking about his devices running KK.That's why I mentioned KK only :)

Tapped from my furious dogo ;)
[Android General] v7:
Since GooglePlayServices and GoogleServicesFramework are in Power Nap whitelist for getting GCM Push,Amplify does the job blocking wakelocks/alarms from Google Services and Framework.

Tapped from my furious dogo ;)
[Android General] -iHackerz-:
Ah ok. Guess I'll keep the Amplify+Greenify+PowerNap combo, thx
[Android General] abrik:
anyone know which one of those services responsible for Google play music. The app itself works but i get notification Google play services' which... Requested by Google Play Music, how do i get rid of it but keep the notif of music playing at same time?

Thanks
[Android General] v7:
Re-enable WearableService and see if it fixes it.

Tapped from my furious dogo ;)
[Android General] abrik:
it did fix it, Thank you
[Android General] duowing:
Thanks for the heads up on Tasker. I'm going to try running without it. Would it be better to turn down the alarm time on Greenify or does it not matter. It seems like it's not really hibernating the apps with screen off due to the alarm firing so rarely. I also noticed that in the OP you have the deep hibernation setting unchecked. Is it better to leave it unchecked?
[Android General] v7:
Auto-Hibernation won't be affected.Make sure you've enabled Greenify in accessibility settings.

Deep Hibernation completely hibernates the app,and won't wakeup the app unless you open it manually.It breaks PUSH.

Tapped from my furious dogo ;)
[Android General] jhuff83:
Any tips to reduce the wakelocks for Wifi Calling? I would think not since it always has to be on.
[Android General] milojoseph:
And fix for ulrdispatching

Sent from my SM-G900T powered by Alliance Rom and ktoonsez kernel
[Android General] samuelaviv:
Hi

I followed some of the tips in the guide started to get play services FCs so I began checking things I changed according to the guide one by one (I didnt touch any location related things).

Turns out the FCs was caused by limitting this :"com.google.android.gms/.checkin.EventLogService$Receiver" in Amplify.

Just thought Ide put it out there in case someone is having the same issue and is trying to figure out the cause.

Anyway, thanks for the effort putting out this guide.
[Android General] v7:
I've limited "com.google.android.gms/.checkin.EventLogService$Receiver" to 84000 seconds.No freezes for me till now.Can you tell me what rom and gapps you use?

Tapped from my furious dogo ;)
[Android General] samuelaviv:
G3 d855 with Blisspop 3.3 the last one before the re-build to 3.4, and Slim Normal Gapps from just before they released the new slimmed versions.

Im moving tomorrow to the new Bliss build and Banks Gapps so Ill check that again and post back.
[Android General] v7:
Keep this setup:
[Android General] Mau669:
does amplify have to be always running? or once i block stuff i can just hibernate amplify and everything stays blocked?
[Android General] v7:
Amplify doesn't consume battery in background.There's no need to hibernate it.Hibernating may break it's functionality!