yashsingh1/xdaforums huggingface dataset:
[Android General] Celestial Fury:
[MENTION=2833620]vesparados150[/MENTION], your com.android.internal.telephony.data-stall and the alarm below it - related to your data connection? It keeps trying to connect. You have some setting or app that is doing this.

MCS_Heartbeat, GCM_RECONNECT can be limited (further) but do check your push notifications. All the location alarms (see Post #2, now coloured deepskyblue) can be limited (further). I'm even thinking of going up to 86400 secs for them. ANALYTICS_DESPATCH, limit to the max. I have not tested SEND_IDLE. android.net.netmon.lingerExpired, something to do with connectivity, I don't have this. Once you fix your connection problem they should go away. greenify.CLEAN.NOW, I have re-limited on my phone. google.quicksearchbox, you can limit this and check its functionality.

[MENTION=5867207]vaisakh7[/MENTION], his WhatsApp was also active for nearly 2 hours and THAT I know will definitely cause drain. Unless, network activity shows there was hardly any data transferred but even so. . .
[Android General] v7:
No,I found no fix.Then I Switched the rom.

Tapped from my furious Dogo ;)
[Android General] mupel:
Thanks for this.. Trying...

Edit : Sigh.. Amplify needs xposed.. And I'm on TW lollipop.. It looks like a dead end here.. But thanks anyway.. [emoji4]

Sent from my SM-N900
[Android General] vesparados150:
I'm suspecting intelli3g app that auto switch based on screen states but dont really know for sure. I'm gonna freeze that app and see how it goes. also i had greenified a couple of apps that was listed in bbs. and lastly, im gonna disable some google play services. Trying to stay as minimal as possible in making changes. Thanks alot for the input [MENTION=5401012]Celestial Fury[/MENTION] . Ill make those changes and try to run it overnight. ill update in this thread tomorrow.

*EDIT*

I managed to get rid of all the wakelocks caused by the aforementioned alarms except for for the send_idle alarm. intelli3g app wasnt the cause afterall..ill update after further testing.
[Android General] Celestial Fury:
Regrettably, ALARM_WAKEUP(#####) has reappeared. Fix does NOT work. Unticking everything in App ops for Google Play Services and Google Service Framework as well as Greenifying both of them does not stop the alarm and Google Backup also stops responding. Only thing I can think of is to freeze them but then both maps and Google Backup will stop working and both are important to me. Looks like this is it for now.
[Android General] Mudahuda:
Do not greenify those apps, notifications stop working if so.
[Android General] Celestial Fury:
They're greenified. Notifications for Gmail and WhatsApp still come through. You need GCM push for greenified apps.
[Android General] Mudahuda:
Strange, when I greenify them notifications stop working. Even if I have them enabled in special features.
[Android General] Celestial Fury:
In my experience, Greenify's GCM push is a hit and miss scenario depending on luck.
[Android General] wxfreak:
Do you recommend using App Ops as mentioned previously or uninstalling App Ops?
[Android General] Celestial Fury:
I've re-ticked everything for Google Play Services and Google Services Framework. No reason to uninstall App ops. It doesn't cause drain. Its functionality is already in the phone but disabled by default. App ops just re-enables it.
[Android General] v7:
Anyway to stop this *alarm* wakelock.It reappeared when I switched to PAC rom 5.Well it doesn't drain much battery but its annoying :mad:

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

I was also plagued by unreasonable alarm wake ups. This solved the problem for me

Did a dumpsys of what is causing this and discovered invariably it was Google services. Increased wake lock arrest duration using Amplify observing the ill effect which was zero for me till it is next to zero. It has been that way since two months

Instructions on doing dumpsys here

http://xdaforums.com/showthread.php?t=1684932

Hope this helps
[Android General] Celestial Fury:
Post #2 Expanded

Posted under "Not Recommended": Why WeChat can't be tamed? It's because it will create another wakelock with a different (number). It's a pointless exercise. Unrelatedly, WeChat also SPAMS you all the time with useless seasonal greetings and you can't block them within the app. Either freeze it, uninstall it, or live with it.

Added section on Services. They mostly don't cause drain that I noticed with the exception of CheckinService & EventLogService and perhaps others. If you turn off these services, you also need to turn off their related RECEIVERS (which Amplify can't do yet - you need another app to block receivers) or their related wakelocks will run wild and drain you battery. [MENTION=4858491]godlesplay[/MENTION], this may be your problem. Denying services (for me) is mostly for blocking ads as drain can be controlled through wakelocks & alarms. FetchVideoAds? No, thanks!
[Android General] godlesplay:
hi, maybe you are right because I enabled these services some time ago and now I don't have this wakelock :)
[Android General] godlesplay:
[MENTION=5401012]Celestial Fury[/MENTION] we can't change this:

Wakelocks (Allow every 7200 seconds / 2 hours)

- AlarmManager

because after that alarm is partially working, today it didn't wake me up...
[Android General] abhi08638:
AlarmManager is a system alarm which handles ALL alarms from all apps. Limiting this can cause unexpected behaviors such as your alarm clock not going off

sent from my amazingly awesome OnePlus One with Stereo Mod

Don't forget to hit thanks!
[Android General] Celestial Fury:
Ok, thanks. It's listed under Amplify as not safe actually. I didn't test the alarm clock as I have a human alarm clock. I'll modify the post.
[Android General] Celestial Fury:
Wow, post count was over 800 yesterday but today it's over 3000? :eek: Never saw such a sharp rise since this thread started.

Unfortunately, there's bad news. Somehow, my phone no longer has any cellular signal. I think it's a hardware problem because restoring two different nandroid backups that worked before didn't restore the signal. It's not my sim card as it works fine in another phone. A working sim card from another phone also doesn't get a signal in my phone. I can key in the sim password which means the sim card is recognised but there's no network name or signal. It's been this way for a day or two I think.

Unless someone has other ideas I can try it looks like I'll have to send it in for a warranty claim. :(
[Android General] droidkevlar:
Someone posted it on reddit. Thats how I found this. Thanks for doing this work. I hope you figure out the issue with your phone or able to get it resolved wtih no $$ out of pocket.
[Android General] ktetreault14:
What is your phone? Have you tried restoring imei? Or efs
[Android General] Stealthz:
Very cool. I was excited, then I saw the Xposed requirement. :crying:

No Lollipop love!
[Android General] bustedwings:
Verify under your status screen that your imei number is showing. if it is not you will need to restore your efs folder. hopefully you have a backup.
[Android General] Sporbillis:
Sorry to hear that your phone is not working , i was super hyped about this "hacks" until i reached the post about your phone that got me worried it happened due to this "hacks". I have one question, will this guide work only on stock rom and only stock? Example : I have samsung galaxy tab s 8.4 ( t700) rooted and flashed with CM11, will this work with that? or should i go back to touchwiz? If i go back to touchwiz to use this guide does it have to be the stock firmware or i can use a debloated rom based on touchwiz? I hope i didn't confuse you !! Thanks a lot
[Android General] Celestial Fury:
Cool. It's somewhat true what they said on Reddit. It's not disabling but increasing the trigger length of the alarms/wakelocks. Sync and backup will be affected. I don't need them to run multiple times a day but I also don't want to manually turn them on/off. And like I mentioned in the post Google backup can't be turned off. GPS is still near instantaneous with high accuracy with this method and doesn't need to be device only. This guide is so I can store the personal settings I've used and share them and also as an alternative guide that is less restrictive. If it sounds like a big advertisement, well - we use the tools that suit us best.

Xperia Z1. My imei shows up in status.

I keep forgetting lolipop can have root but not Xposed. Updated title thread.

Imei shows. Shouldn't restoring a working nandroid backup solve any software issues? It feels like a hardware issue.
[Android General] Celestial Fury:
You can use any ROM as long as you can install XPosed and Amplify. My problem isn't related to Amplify but actually, I suspect, denying location permission (except cell permissions) for Google Services. It seemed to be using GPS but there was no corresponding alarm or wakelock to limit. So the point was to let Google Services get location ONLY from cell info. Next thing I know the GPS is ACTIVE for HOURS even though GPS permission is denied. I think that was when the network signal was lost. Additionally, GPS is also no longer working. So, this is the main suspect.
[Android General] Phoenix232:
I wish I could get this to work on my S4 Mini. But I don't have most of the alarms and wakelocks you suggest delaying and I don't know what else to delay. Great job though.
[Android General] Karamvir Singh:
titanium backup needed

[MENTION=5401012]Celestial Fury[/MENTION] It would be	awsome if you post a titanium backup of amplify app data because that will surely contain all the settings.....I am really lazy one in stuff like this.....and if I would feel somethings wrong I would tweak it myself but doing it all in the first place is bothering me...though its not much but still .....a little titanium backup wouldn't hurt I think.....

Once again.....this is just awsome and i think google should learn something from this post.....for next versions of lollipop
[Android General] Sporbillis:
You might know !

Ah i see. I wish you can have it fixed ASAP so you have your phone back. I ll throw this here in case you can help me. I am currently using the tab s 8.4 with wifi never on while sleeping and lose 1-2% every 12hours. If i turn wifi on during sleep i lose 4% every 6-7hours . Do you know which wakeclocks i need to disable in order to get a better battery life while idle/sleep + wifi on? Thanks a lot!!
[Android General] Celestial Fury:
Post what you have and let's see. You just use BBS to see what the drain is, then limit the alarm/wakelock in question. There are explanations for some alarms/wakelocks within the app itself.

I use Google Backup and don't have Titanium backup. Unless you have the same phone and roughly the same apps as me, it might not be a good idea to limit exactly the same things. By limiting only that which causes drain, we keep functionality as high as possible. Also, some wakelocks/alarms are specific to a particular phone and I don't know what problems installing such a backup could cause.

You need to post screenshots of Other, Wakelock, & Alarm after sufficient idle time. Charge it to full first. Also see Post #3.
[Android General] snipersquad8:
Would this affect Hangouts functionality? The one thing I can't have dying off on me is Hangouts messaging.
[Android General] Celestial Fury:
I've already sent my phone in for repair so I can't check but this is how anyone can roughly check what alarms/wakelocks are used by an app.

Reset Amplify stats so it doesn't show any alarm/wakelock. Then start using Hangouts for a while. Go back into Amplify and see what alarms/wakelocks are shown. Identify what should most likely be used by Hangouts. Then take care not to limit those.
[Android General] Celestial Fury:
Just limit it in Amplify?

Can you do a dumpsys to find out what exactly is creating ALARM_WAKEUP(#####)? I know it's Google Play Services but can it be be more exact?
[Android General] beeshyams:
[MENTION=5401012]Celestial Fury[/MENTION]

Guess should have clarified... I am on 4.4.2 and this wake lock with a number doesn't turn up. Was suggesting a possible way. Worked beautifully for me
[Android General] infectedorganism:
Is the guide correct in that there is no management of the radios? In other words, is there no significant battery drain in leaving wifi on (even when not connected) and no disabling of data to minimize drain?

Thanks in advance.
[Android General] beeshyams:
In continuation to above BBS screen shot added
[Android General] Celestial Fury:
Amplify only manages the alarms/partial wakelocks/services (software side) and not the radios (hardware side). Provided that the WiFi is not really used, it has been shown that leaving WiFi on has negligible drain at 0% [0.0%/h] which means drain from [0.01 to 0.09%/h].

I can't say the same if you now have Google Play Services lastest ALARM_WAKEUP(#####), which btw is now capable of up to EIGHT digits.
[Android General] Celestial Fury:
2 hours idle time is too short. Need 7 hours (overnight when you're asleep). Need a minimum of other, partial, and alarm screenshots. If partial wakelocks are 0, what about alarms? If nothing stands out, then need to check network for activity and battery history details as well.

See Post #3 for more details.
[Android General] beeshyams:
Thanks OP for a quick reply.

Will study more in detail and provide inputs. Meanwhile am flying with idea of clean flashing again... It can't hurt
[Android General] vesparados150:
IM happy with the results!

though id give an update about my netmon.linger wakelock. I manage to rid of it finally!.. what was different from my last setup was i flashed a new kernel (boeffla) and flash a different radio.

I was on 2g the entire night, i forgot to turn on my wifi..=(.. I also excluded greenify from being amplified. and my alarm rang in the morning.. but if there is any improvements that can be made, please do let me know. Thanks op! very happy with the results.
[Android General] Celestial Fury:
[MENTION=2833620]vesparados150[/MENTION], even though you've used the phone for nearly half an hour, your stats are really very good. I'd only suggest you charge it to 100% and leave it idle overnight. Then take screenshots immediately before using the phone.
[Android General] vesparados150:
Will do a test tonight with full charge when I get the chance. I also notice that If I greenify google play store I'd loose my paid subscription of amplify every now and then. Also I'm going to try limiting greenify clean now alarm to an hour. Im not sure whether its just me but I notice that some apps aren't greenified when I limit to 2 hours which let me to unlimit that alarm previously
[Android General] brooker88:
Don't know if you know but there's 2 new apps servicely & power nap. These apps and your setup for amplify work so well.

I usually have clock disabled (on my nexus 7) but I enabled while phone was on charge, so wouldn't have had them alarm wakeups
[Android General] Celestial Fury:
I greenified Play Store but didn't notice any problem. Greenify will show you what woke up your apps as in "app woken by. . ." So, check there.

The alarm wakeup in question isn't about the alarm clock but Google Play Services alarm. I'm using a Sony Xperia so I have the original Stamina Mode ;). It doesn't help with that alarm. I'm testing Servicely now and it's great! I got 0% [0.0%/h] again (but not on a full charge). I can post screenshots if anyone wants to take a look. Google Play Services was NOWHERE in sight in BBS. It can also disable more Analytics stuff.
[Android General] bungadudu:
That sounds awesome!

A way to get close to that 0% with just root necessary and without impacting functionality is what Google should be after (excepting the root part).

There was talk about project Volta but it seems talk was all it is from Google.

Really interested in this!
[Android General] edbassman23:
Can i control the red one?
[Android General] Dawgtrix:
Does anyone know if I can still use my existing antenna, I have a chevy trailblazer with gpa and wanted to keep the antenna on the roof. Can I just plug it in?
[Android General] beeshyams:
Thanks OP and need your help in understanding

Let me start by confessing that i hadnt read Post #3 earlier earnestly, wish i had , It is very sytematic and the first measurement matrix, which is rational and well explained

So wanted to do it the right way and been on it for last two days. First, i clean flashed the ROM and restored nandroid data on to my new note 2 from my earlier cell (also note 2, which was giving me 36 hours with 9 hours of SOT and 1 hour of talk time,giving an average of 2 .1% per hr over 36 hours).Then i carried out out the tests as recommended

1. Battery with cell switched off in 5.5 hours of testing---> 1.4 % drain (cell showed 8% drop from 100 to 92%)

2. Cell on and in Airplane mode for 7 hours ----> 1.4% drain

3. Cell on normal mode for 8 hours----> 1.5% drain . All snapshots (except for first case) and BBS log files attached

what i am confused ( been up most of the night doing this and other stuff so am unable to think this through) about is this:

a) Going by the logic in your post the performance seems OK but the drain of 1.4 0r 1.5 isnt it too high? In my previous cell, it used to typically show around 0.4 % per hr.

b) In case 3, to me everything looks ok, except network where mobile 0 ( dont know what it is ) is nearly active for 50% ...is this causing the drain? but then drain is similar in case 2 too !!! Is mobile 0 something to be worried about and needs action

c) Is it a calibration issue of cell showing high drain values while it is not actually so and guessing that BBS also picks up the values from cell (though never heard of such a thing before)

d) is the high drain hardware related? if it is ,:crying:

[MENTION=5401012]Celestial Fury[/MENTION].... Please help and suggest next steps..praying it is not hardware related (not in warranty and getting a competent guy isnt easy)

Thanks in advance

EDIT: figured a part of it, obviously drain cannot be lower than the when cell is switched off. How dumb of me. Only way to confirm my calibration suspicion is try to with a new battery. Having said that, would still request your views and suggestions... Thanks
[Android General] Celestial Fury:
Currently, I'm using Servicely just to kill Google Play Services and analytics services. I've even re-enabled everything for Google Play Services, Google Services Framework, and Google App in App ops and that ALARM_WAKEUP(#####) still doesn't show. Only 2 or 3 alarms are now active during idle when previously alarms took up more than the screen.

Google Maps is working, Google Now is working, only push notifications need more testing. And I'm even thinking of activating "Ok Google" voice detection and see how much drain occurs. But I think I can update the guide with this fix.
[Android General] Celestial Fury:
android.content.jobscheduler.JOB_DELAY_EXPIRED

This class sets an alarm for the next expiring job, and determines whether a job's minimum delay has been satisfied.

More importantly, if it doesn't cause drain as reported by BBS, no need to limit it and reduce functionality. Red in Amplify

doesn't

mean battery drain.
[Android General] Celestial Fury:
Thanks. I'd like to think so but had no way of knowing if people thought so too. :good:

It is too high. With phone off, it should hardly drain. In airplane mode (without any custom restrictions), 0.2-0.4 %/h sounds about right.

I don't know what mobile 0 is - I can't find it in the screenshots or Text Dumpfile.

If you noticed the battery % level 'jumping' a few points up or down as you use it, then it could be a misreading. I've personally seen this 'jumps' before but I'll let others decide on the merits or not of battery calibration.

As it's a new phone with a new battery, you probably need to give it time to settle in but don't quote me on this.

In your screenshots I couldn't tell which ones were in airplane mode and which ones weren't. I could see one Titanium backup wakelock for nearly 5 minutes which should account for the drain.

In your Text Dumpfile, besides the Titanium backup wakelock, the phone was awake for nearly 20 mins with some CPU activity at the highest state and even more CPU activity at the lower states.
[Android General] beeshyams:
Text file was saved last, after taking screen shots and studying them so am guessing that shows the increased activity levels. In the CPU state screen shot, which was not fully captured activity at higher levels was 0

Thanks for your help and will update in a few days. For now, let me know if mode of using servicely is fine ( kill all google in sleep mode)
[Android General] wxfreak:
Still trimming down

I'm down to about 0.7%. Appreciate any suggestions to get lower. Many thanks!
[Android General] justjr:
When I kill the app Google Play Services with Servicely, somehow, it deletes my google account, 2 times I already had to add my google account again to entire android. :eek:

Very weirdo.
[Android General] abhi08638:
Are you sure you don't have deep hibernation with greenify on? That used to delete my accounts as well
[Android General] justjr:
Not the Play Service, for sure. When I took play services off of Servicely list, it stopped deleting my account.
[Android General] Celestial Fury:
Kernel wakelock wlan_rx_wake - are you using Dropbox? Puzzle this: wlan_rx_wake wakelock on SGSII - a collection

Kernel wakelock sec-battery-monitor - I can't find out what this is. Are you using any battery monitoring app?

These are the two kernel wakelocks that seem to be keeping your phone awake. Amplify can't help with kernel wakelocks.
[Android General] Celestial Fury:
[MENTION=5188092]justjr[/MENTION], [MENTION=4732904]abhi08638[/MENTION] & everyone else: killing Google Play Services with Servicely doesn't affect my Google account but it looks like it affects my Google Backup and Google Contact Syncs. Also, got a random reboot after a day or two. So, I've stopped killing it and only use it to disable individual services. I'll see how it goes.