yashsingh1/xdaforums huggingface dataset:
[Android General] xdasree:
Attached Screenshots and BBS dump of 9h:25:m idle time. I have email sync and couple of whatsapp messages came in.

Phone completely untouched in mentioned time.

lost almost 25% in idle time . but BBS shows 99% deep sleep.

And also got NFC wakeclock in partial wakeclock though NFC off and I disable the services related to NFC.

Also attached battery health screenshot which seems Good.
[Android General] dingdong3000:
Hi again [MENTION=5867207]vaisakh7[/MENTION] / [MENTION=5901790]orville87[/MENTION] ,

On my other phone (note3, kitkat) i'm running LightFlow because of set blinking duration. Is there any way of limiting the number of wakeups as I see on it with powernap? I have white-listed it fearing it might break it + no hibernating in greenify. Any thing i can do on amplify without breaking Light Flow?
[Android General] v7:
There's nothing wrong with the stats.But the drain is unacceptable.Either there's something really wrong with the phone or the battery is dead.

Tapped from my furious dogo ;)
[Android General] v7:
Limiting the alarms of it may break it.Does it show up in the battery stats?Does it drain significantly?

Tapped from my furious dogo ;)
[Android General] dingdong3000:
Will post a BBS dump tomorrow and see what stat i'll get..

Cheers!
[Android General] f0xy:
https://www.dropbox.com/s/2impct4nwxc2vvf/BetterBatteryStats-2015-07-22_082101071.txt?dl=0

This was in airplane mode :)
[Android General] Portgas D. Ace:
Even in airplane mode you lost 0.7% per hour. Normally, you should loose up to a maximum of 2% per day while in airplane mode.

[MENTION=5867207]vaisakh7[/MENTION], any recommendations from your side?
[Android General] v7:
I was looking into it.Stats seems fine,yet the drain is high.I suspect a bad battery.

Tapped from my furious dogo ;)
[Android General] Javi22:
Hello mate, please take a look at my stats... I have been trying different configurations several weeks, but I'm not able to make a good battery

https://www.dropbox.com/s/gctjse7jnrcp995/BetterBatteryStats-2015-07-22_121640056.txt?dl=0

Sync is on and location is off

I'm not using powernap and apps ops, because both of them seem to increase my drain (yes it does.. I've done tests and battery drops quickly)

Thanks a lot mate, appreciate your work!
[Android General] v7:
You're having msm_hsic_host Kernel wakelock for 8 minutes.Try to use a different Kernel.

Tapped from my furious dogo ;)
[Android General] Javi22:
I have had high hsic wakelock in every kernel I've tried...

Anyway I'll do tests and compare between them

I will try '2g only' too

Do you think it's the only drain culprit? With Wifi I'm having bad battery too

Thanks :)

Enviado desde mi HTC One mediante Tapatalk
[Android General] v7:
Other Wakelocks and Alarms are under control.Only the hsic wakelock is dominant.

Tapped from my furious dogo ;)
[Android General] agbazinga:
Hi vaisakh7

Most of the wakelocks and alarms seem to be fine except for two alarms in system ui. Currently I am using SlimSaber ROM as the battery drain while using phone (screen on) is pretty good as compared to other .

I will do idle state analysis tonight but till then I am uploading a screenshot of BBS , could you provide any suggestions from that or have you encountered these alarms before. ?

Also previously you told that idle drain may be due to Low connectivity but by switching to 2g also (in which signals are good) idle drain was same.
[Android General] f0xy:
Is the audiomix anything to be alarmed about? I don't listen to music hardly and on this charge, I've had my phone on silent!
[Android General] v7:
Do you have ambident display enabled? Might be a bug in the ROM.

Tapped from my furious dogo ;)
[Android General] v7:
Are you getting this wakelock for the first time? Try to reboot and see if it shows up again.

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

I've joined a college for a degree in Computer Science and my class starts tomorrow.So I won't be around during daytime.I'll be active during night and will reply to posts only then.Hope you all are comfortable with that :)

Cheers :highfive: :good:

Tapped from my furious dogo ;)
[Android General] shsagnik:
Good luck,
[Android General] agbazinga:
Congrats buddy [emoji3]

All the best [emoji106]
[Android General] Purerawenergy:
I just wanted to say good luck to you [MENTION=5867207]vaisakh7[/MENTION] and let you know how grateful I am for this thread when it comes to my battery life now. Not only were your tips effective, you replied to every single cry for help, unlike some threads where helpfulness is selective. Anyway,

I wish you all the best my friend!

Sent from the slippery slope.
[Android General] Lasantha:
All the very best buddy!!!
[Android General] m0han:
greenified all apps that you suggested till now. installed gapps too. turned off ambient display. i'd appreciate it if you can let me know what's left to be done using amplify or other tools. although i go through your thread regularly, some things go straight over my head. all the best for your studies! god bless.

the above quote is a pm i sent this morning. if this is all too much for you, i'll understand. many thanks for all the help. anyway, i've some screenshots of amplify ready.
[Android General] lepa71:
Just wondering if somebody knows an app that will turn off data(not calling feature) when wifi is connected to a white list of SSIDs with less of # of bars.

I tried Intelli3g and smartnetwork, but those are just switching networks.

I'm on verizon btw.

Thanks
[Android General] Mr.Elmmyr:
Is it safe to Greenify AppOpsXposed after i've made every change i need? our should it be running to work?
[Android General] jaibar:
Just make sure you don't misuse greenify- if you use it on any app that you have, you'll end up worsening battery consumption, instability etc. It is intended to be used only on apps that really misbehave and abuse the device's deep sleep with wakelocks.
[Android General] dingdong3000:
Greetings,

Any improvements needed or is it all sweet?

This is with 3G, Wifi on and all the suggested app tweaks suggusted in OP. Let me know if i've missed out any tweeks..

Cheers!
[Android General] v7:
Hey sorry for missing out.I somehow missed the PM :(

See your Inbox.

Tapped from my furious dogo ;)
[Android General] v7:
This is good!Everything seems fine and I believe you'll get a bit less idle drain on 2G.

Cheers for your battery life :)

Tapped from my furious dogo ;)
[Android General] abeloman:
Here's my log, I didn't limit anything in the guide, just some wakelocks from whatsapp... I'll be very grateful if you help me to improve my battery life :)

Thanks for your work [MENTION=5867207]vaisakh7[/MENTION]

http://pasted.co/f8ff19d2

No contesto privados, cualquier cosa mandar mensaje Hangout a xxabelomanxx@gmail.com
[Android General] v7:
Limit:

*com.android.internal.telephony.data-stall to 600 seconds.

*com.facebook.analytics.service.a.ACTION_ALARM to 9999999 seconds.

And for the private group,PM me your Whatsapp contact.

Tapped from my furious dogo ;)
[Android General] abeloman:
Any other recommendations? Should I limit everything else according to the OP?

And about the PM, that's my signature xD

No contesto privados, cualquier cosa mandar mensaje Hangout a xxabelomanxx@gmail.com
[Android General] v7:
Yeah!Follow the OP.
[Android General] abeloman:
Thanks, I'll follow and report back... You are the best!

No contesto privados, cualquier cosa mandar mensaje Hangout a xxabelomanxx@gmail.com
[Android General] marbertshere:
[MENTION=5867207]vaisakh7[/MENTION] thank you for all your hard work and dedication to this thread! Can someone suggest a good governor/scheduler combo for battery life? Currently I'm using smartmax/fiops and it seems OK, just curious.
[Android General] SoulReaver75:
Hi.

Everything ok, just a little but annoying problem with the alarm clock.

In the morning it does not ring until I pick up the mobile.

I tried to do some test during the day and it looks ok, but in the morning... no.

Yesterday it rang when I switched on the display, today (but I was still sleepy so I'm not sure) I think it rang as soon as I picked the mobile in my hand.

For sure I limited or freezed something wrong, but I can't find it. Any tip about what i should look for?

Thank you.
[Android General] dingdong3000:
If you're using Powernap - whitelist clock, android system and trebuchet.
[Android General] SoulReaver75:
Hi.

Yes, I'm using powernap.

Clock and Nova (I use this) are already in whitelist.

In the list I have "Android System WebView", not just "Android System". I'll try with it.

thanks.
[Android General] dingdong3000:
Don't think it's anything to do with WebView. Should white list that said's ''Android System''

I also use Nova Launcher but there's no need to white list that as it works fine for me.
[Android General] SoulReaver75:
I don't have it...
[Android General] v7:
Smartmax is good for battery life.

Tapped from my furious dogo ;)
[Android General] milojoseph:
What is a normal drain for daily usage. Per hr... less Tham 2%?

Sent from my SM-G900T powered by AllianceROM

and boosted by speedy kernel

Lollipop ?
[Android General] Portgas D. Ace:
Depends on your usage behaviour. If you turn on your screen every five minutes to check for notifications or playing games, surfing the web and other stuff like this, you could easily reach 5 to 10% per hour battery loss.
[Android General] beeshyams:
Hi

Taking pot shots since I don't know what you are using

If Greenify, make sure that alarm clock is NOT Greenfied

If power nap, alarm clock should be ticked as excluded by default, check that. If alarm clock is NOT shown separately, then TRY white listing Android system.

If servicely, make sure you have NOT disabled it

In Amplify, there are wake locks dealing with this but unfortunately don't recall

All the best
[Android General] m0han:
'amplify post-install' log.txt:https://www.dropbox.com/s/epg173ke6t65k7i/xposed_error_20150723_080020.log.txt

2.5%/h bbs dump: https://www.dropbox.com/s/bgorl4fjozwnih6/BetterBatteryStats-2015-07-23_073526296.txt

[MENTION=5867207]vaisakh7[/MENTION], please check your inbox when you have time. thanks.
[Android General] Portgas D. Ace:
Search for the italian name for AndroidSystem then, maybe check if it is named something like System Android. Another italian member had the same problem, afaik.

If you are using Amplify, make sure you haven't limited AudioMix. It is responsible for sound notifications.

---------- Post added at 11:01 AM ---------- Previous post was at 10:55 AM ----------

Try limiting the following alarms as per OP:

android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED

com.android.internal.telephony.data-stall

You can also limit the following alarms, but they affect push notifications and Gmail sync:

android.content.syncmanager.SYNC_ALARM to 1800 (syncing will take place every 30 minutes)

com.google.android.intent.action.GCM_RECONNECT to 300 (you can increase this value if you do not encounter problems with delayed notifications)

One alarm I haven't come across yet, so I don't know if it is safe to limit:

com.android.internal.telephony.dataconnection.DataConnection.DC-1.action_retry
[Android General] dingdong3000:
like [MENTION=5901790]orville87[/MENTION] mentioned. White-list 'Sistema Android' if your rom is italiano.
[Android General] m0han:
thanks. excuse me if this has been answered before, how can i get amplify to block wakelocks/alarms/wakelock-times? i've looked around a fair bit and tried whatever i could. my rom is a 5.1.1_r8 one and selinux status has been 'made permissive'.
[Android General] SoulReaver75:
Hi.

It's non greenified.

In powernap clock (com.lge.clock) is correctly excluded by default (I have just clock, not alarm clock)

Android System is not listed, I have Android System WebView.

I don't have servicely.

Maybe the problem is in amplify, but I don't know which wakelock is related to alarm clock.

thanks.

---------- Post added at 11:51 AM ---------- Previous post was at 11:48 AM ----------

Sistema Android!!!

Thank you very much!

Ok, I feel a little stupid right now. :o
[Android General] xdasree:
here is another idle dump for about 5hours of sleep time.

I managed to get down to 1%/hr on deep sleep. Which is much better than my previous stats.

Major change I did was changing the ROM and Kernel. Is there any areas I can improve by looking at BBS dump file.

PowerManagerService.WakeLocks in Kernel wakelocks got about 4 minutes of time in complete idle time.

And also should mention that my notification light flashing in whole sleep time due to couple of texts arrived.

Thanks again guys.
[Android General] Portgas D. Ace:
You need the donation version of Amplify to be able to limit non-standard alarms/wakelocks. The free version lets you limit location-related stuff, but only a few things. The donation version allows you to limit every alarm/wakelock with every time-value you like. Definitively worth the donation. In addition you can also block battery-draining services.

---------- Post added at 12:32 PM ---------- Previous post was at 12:28 PM ----------

Your major culprit for drain seems to be your notification LED (related alarm: com.android.systemui.doze.notification_pulse). This consumes quite an amount of battery. Another dump without any notification would be good. This way the other drainers can be identified.

You could ask your friends not to send you any message during this time, but I guess they will definitively do so if you ask them ;)
[Android General] m0han:
not happening, despite having that installed. can you tell me how to proceed?
[Android General] v7:
Since you're on the latest LP build ie 5.1.1_r8 there is a possibility that Amplify isn't compatible with your ROM.It's might be because Amplify was updated about two months ago.There hasn't been any update since then.

Tapped from my furious dogo ;)
[Android General] jmfinity:
i think he just need to update his xposed framework(sdk)
[Android General] v7:
He's on the latest 20150716 build from romracer.

Tapped from my furious dogo ;)
[Android General] jmfinity:
i see. i'm on lollipop too using android one. i'm using the 20150702 and its working well. did he try to used that build 20150702?
[Android General] v7:
It is not an issue with Framework.I'm also running Amplify on 20150716 build.It depends on devices and the ROM builds coz Xposed doesn't work on my dogo with RR and Tesla while it works on my Tab with latest SlimLP,Bliss and Omni.It depends on builds over different devices.

Tapped from my furious dogo ;)
[Android General] jmfinity:
actually there is a technique or trick on this. i am using this always

1. used a titanium backup and backup the working amplify in your ROM/previous ROM

2. when you encounter that amplify is not working in your favorite ROM even if you installed the latest xposed installer and framework, just install/flash them and restore your working amplify in titanium backup

3. reboot and your amplify is working again

:cool:
[Android General] v7:
He indeed tried that before clean installing again.So that fix isn't working.

Tapped from my furious dogo ;)
[Android General] jmfinity:
works for me all the time :D

no luck on him :(
[Android General] davidjumani:
My phone keeps waking up because of a load of alarms. Could you help me solve this??
[Android General] m0han:
didn't work for me on 5.1.1_r6 too, if i remember right.

what rom? stock or custom? version and build?

btw, thanks to you both for trying to help me out. if there's anything more i can try, please let me know.

on another note, if amplify can work only thus for me, should i continue to run it? is servicely any good here?

[MENTION=5867207]vaisakh7[/MENTION], wasn't there anything you could gather from the pm's i sent?
[Android General] la2o:
Thank u for your wonderful guide
[Android General] v7:
See your Inbox.

Tapped from my furious dogo ;)
[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.

If you want me to look into your battery,read post #4 and post me a dump later.

Tapped from my furious dogo ;)
[Android General] fazi78:
Hi.

Before I have good stats but now just empty page.

Why?
[Android General] davidjumani:
But the awake time is an hour or two more than the screen on time. Isn't that a problem???
[Android General] Grzesiek1010:
WTF Is this ?![emoji33]

Wysłane z mojego XT1095 przy użyciu Tapatalka
[Android General] jrbmed08:
BBS shows a lot of alarms from Google play services. Can I limit any of these safely and still have full functionality of hangouts, gmail, maps, play music, Google Now, and play store? I don't use Google play books, games, magazines, etc.
[Android General] v7:
Reinstall BBS.

Tapped from my furious dogo ;)
[Android General] v7:
ALARMWAKEUPxxxxx is a random number of alarms that show up in the some version if the latest Play Services.There isn't a fix for that till now.

Tapped from my furious dogo ;)
[Android General] v7:
They are Alarms that on which important services like PUSH Notifications depends.Limiting may break it's functionality.

Tapped from my furious dogo ;)
[Android General] v7:
Read Post #4 and post me a dump.

Tapped from my furious dogo ;)
[Android General] jrbmed08:
Thanks! I'll leave them alone then.
[Android General] Traxex_:
I already posted a log some time ago and my battery life gets worse and worse every day because play services keeping my device awake.
[Android General] fazi78:
Oh I forgot to mention that this is in Power Nap :)
[Android General] v7:
Follow the OP.It seems that you haven't limited things according to the OP.

Tapped from my furious dogo ;)
[Android General] v7:
Have you changed ROMs?Is the Selinux status Permissive now?If not, set it to permissive.

Tapped from my furious dogo ;)
[Android General] Traxex_:
OK I updated some settings in Amplify and blocked keep awake of play services, let's see if that helps.

//edit: it still seems to wake up my device very often..
[Android General] marbertshere:
Do you see any loss of functionality after denying it the keep awake permission?

---------- Post added at 04:08 AM ---------- Previous post was at 03:55 AM ----------

@vaisakh7 what value should I use in Amplify to block or deny those services that you've listed? Or should I use another app?
[Android General] gregferns:
BBS Idle dump

Hi,

Please check this dump and advise if anything needs to be done.

I THINK i have done nearly all things specified in OP.

But still check and let me know if anything needs to be done.

Thanks

Greg
[Android General] Portgas D. Ace:
Try limiting the following alarms:

android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED to 7200

com.google.android.gms/.checkin.EventLogService$Receiver to 84600

com.google.android.googlequicksearchbox/com.google.android.sidekick.main.TrafficIntentService to 7200

com.oasisfeng.greenify.CLEAN_NOW to 1800
[Android General] gregferns:
The 1st 2nd and 4th alarms are limited... So i dont know why they are not sticking....
[Android General] Portgas D. Ace:
Strange. Check within Amplify, whether alarms are being blocked or not.

You could also limit com.google.android.apps.gsa.kato.ACTION_ALARM to 7200.
[Android General] Rix70:
Hi guys, meanwhile thanks for this helpful thread.

In the last days after optimizing my battery drain.. recents app sometimes get SystemUI fc :(

Anyone know because this happened?

I use Viper on my M7.

Much thanks in advanced
[Android General] v7:
Whitelist SystemUI in PowerNap.

Tapped from my furious dogo ;)
[Android General] dingdong3000:
Ahh yes Android System in Power Nap is most likely the culprit- whitelist it...

you didn't mention using that on Viperone thread ;)

PS. In your case it'll be under as 'Sistema Android' if you're Italino
[Android General] Rix70:
Thank you :) Yes, I'm Italian and yes Sistema android was checked in the whitelist..

Unfortunately SystemUI fc sometimes happened when I open recents apps and I don't understand why :(

Now I try other solutions...

Only when I disabled xposed solving the issue... Probably is other module.

However, much thanks to you both

Inviato dal mio HTC One utilizzando Tapatalk
[Android General] gregferns:
In the DEVICE STATS of Amplify it shows Alarms blocked = 0 and Wakelocks blocked = 0.

I think i will have to change the rom and try one where there is SELINUX permissive. I think that may be the cause.

Thanks [MENTION=5901790]orville87[/MENTION]
[Android General] mvlad:
Is the app on internal storage? If not, move it to internal. Xposed modules dont seem to work if they're on external storage (they mostly don't recognize xposed support)

Sent from my GT-I9105P using RR ROM
[Android General] Traxex_:
No not yet, but it somehow keeps waking up my device even if I've denied the keep awake permission :/
[Android General] v7:
Turning Off "Keep Awake"doesn't completely turn off all the functionality of GooglePlayServices.It still handles all the functions well.So inorder to make moat things work,there should be some wakelocks and alarms running.

If you're not sure of GooglePlayServices is the culprit,post me a dump later.Let me see.

Tapped from my furious dogo ;)
[Android General] gregferns:
App is on internal storage only..
[Android General] gregferns:
Please check this dump.

Now it has SELINUX as permissive....

Let me know if Amolify settings are working or no, cos i have applied all the settings in the OP...
[Android General] v7:
I think still it isn't working.

Post me a log from Xposed Installer now.

Tapped from my furious dogo ;)
[Android General] agbazinga:
I had ambient display enabled. I disabled it. I took a dump from BBS and alarms and wakelocks seem fine to me. But I am still not able to get less than 1%/h . When I checked CPU states deep sleep is around 96% , so something is keeping the CPU awake that is why deep sleep is not close to 99%/100% .

Could you check the stats once.

Thanks

https://www.dropbox.com/s/txxtqkc6l4z81kq/BetterBatteryStats-2015-07-25_085104998.txt?dl=0
[Android General] v7:
I donno if it's related to the ROM.

(): 3 m 38 s -A nameless Kernel Wakelock.I'm not sure what it is.Stats look good.Maybe you could try a different Kernel.

Tapped from my furious dogo ;)
[Android General] gregferns:
Here's the xposed log.
[Android General] cornelito:
Hi.

I'm having pretty bad battery drain during deep sleep (0.9% per hour) even though i tried to follow OP.

Can you please have a look at the log and advise?

Thank you very much in advance.
[Android General] adrian13th:
So what I've learned from using all three of Greenify, Amplify and Power Nap together, that they work in hierarchical manner, that should not overlapping one to another.

At first I've tried to use these apps separately and tried to freeze all apps and block all alarms and wakelocks that stated by OP, but the result is worsening my battery life.

So what I have done for now is :

1. Greenified only running apps that doesn't need to run on background

2. Whitelisted apps that should run on background with Power Nap, I have lots of them, like BBM, WhatsApp or Gmail.

3. Set custom reference on BBS and put the phone to sleep for hours.

4. Checkout BBS log result and limiting alarms and wakelocks that ONLY showed up on BBS with Amplify app.

This way the phone sleep much better. Greenify and Amplify will work efficiently without causing additional battery drain.

What do you guys think about this?
[Android General] v7:
That's what we do here :)

Greenify apps,allow PowerNap to block wakelocks/alarms excluding the ones in the Whitelist.Block the alarms/wakelocks of these whitelisted apps using Amplify.

Tapped from my furious dogo ;)
[Android General] v7:
Limit the following:

*ConnectivityService to 7200 seconds.

There are Kernel wakelocks that keeps your device awake.

alarm (): 21 m 44 s Cnt:(c/wc/ec)2790/525/0 5,3%

radio-interface (): 17 m 26 s Cnt:(c/wc/ec)885/12/0 4,2%

Try to switch your Kernel.

Btw,during the test,WiFi was off most of the time.Change the Kernel and post me an idle dump later with WiFi running.

Tapped from my furious dogo ;)
[Android General] v7:
Amplify is not blocking things.Most probably it is incompatible with your ROM.

Tapped from my furious dogo ;)