What are wakelocks, how they affect the battery life of your Android device, and how to "Greenify" them
Have you ever gone to bed with your phone's battery well over 50% and woken up to find out that it has depleted overnight and the device has switched itself off? There are several causes for this abnormal behavior, and among the biggest culprits are the unwanted system wakelocks.
So, what exactly are these? Wakelocks are power-managing software mechanisms, which make sure that your Android device doesn't go into deep sleep (which is the state that you should strive for), because a given app needs to use your system resources. There are several types of wakelocks:
Unfortunately, some poorly-coded, malicious, or simply buggy apps might create an abnormal amount of undesirable wakelocks. Other apps require constant Internet access in order to operate in a normal fashion - Facebook and Messenger are probably the most popular representatives. They persistently request information from the web (the so-called "polling" for new events), which is causing subsequent wakelocks.
In other cases, an update to a given app can also cause certain issues, which usually result in partial wakelocks. The latter keep your CPU constantly humming in the background, sometimes without your knowledge, and prevent your device from "going to sleep". That's a pretty substantial prerequisite for anomalous battery drain. Thus, it is advisable to regularly monitor the wakelocks on your device and see which of your apps go harsh on our system's resources.
So, we'll show you the ropes on how to do this. First, we should find out what app or process might be causing these wakelocks.
Spotting the culprit(s) for excessive wakelocks
1. The tool
Oh, and it's free.
Downlod: Wakelock Detector
2. The data
3. Let's get down to business
4. Getting to know your device's wakelocks
5. Spotting a potential culprit
6. Fixing the problem
If that doesn't help, the Internet will most probably provide you with several guides on how to deal with the battery-draining wakelock issue.
Now, after we've found out which app is causing the device to stay awake and discharge its battery at the same time, we can do several things in order to get rid of the issue. As we mentioned before, uninstalling the app is one way to do this, but let's face it - that's a pretty harsh and barbaric method, isn't it? One of the more sophisticated, yet elegant ones is by using Greenify.
This amazing little tool that allows you to put a given app in "hibernation" when you are not using it. What Greenify does is simple - it literally hides the hibernated app from the prying eyes of Android, preventing it from polling, using your hardware resources, and most importantly, causing any partial or full wakelocks. The app will only run if you open it. Neat, right?
Greenify can work on non-rooted devices, but for best results, your Android smartphone should be rooted. You'll also need a running Xposed framework if you want to make use of some of Greenify's experimental features. Note that the free version of Greenify only allows you to hibernate non-system apps, while the premium one has no such restrictions. You should know that it is not advisable to use this tool on certain system apps that you rely on or know nothing about, as this can make your system pretty unstable.
With that being said, let's see how one should put Greenify to good use!
Pulling the reins of abnormal Android wakelocks
1. Picking the leaf
2. Aiming at the "targets"
Now, you have to tap on the apps that you want to put into hibernation. You can select multiple ones, and after you are done, you should hit the "Check" icon, located rightmost on the top bar.
3. Hibernating the apps
And that's it! Don't forget to check out some of our essential tips & tricks on how to save even more of your battery's juice!
reference: Android Developers (1), (2), XDA
1. justsayit (Posts: 213; Member since: 09 May 2013)
just go to dev option,then check "Dont keep activities" or somethings like that
3. TylerGrunter (Posts: 999; Member since: 16 Feb 2012)
That's a bad practice! Using that kills the apps as soon as you are out, which deletes all the information for the session. Doing that slows your phone a lot as it needs to get the information again next time you go into the app.
Also killing services is a bad practice, as they restart themselves afterwards, so you spend even MORE battery doing that.
In fact I have been using "Geenify" and the "Wakelock Detector" every time I have issues with the battery, and the comibitaion (if you are root) works like a charm.
12. justsayit (Posts: 213; Member since: 09 May 2013)
but my g2,i enable this function and left it overnight,no battery used LoL i didnot bluff
13. justsayit (Posts: 213; Member since: 09 May 2013)
yup it did slow down phone a little bit
only notice when opening an apps,just not as snappy but still fast
geenify need to root right? i still didnt want to root yet maybe after lg stop giving g2 update,then i root
4. TylerGrunter (Posts: 999; Member since: 16 Feb 2012)
Just in case you don't belive me:
5. joey_sfb (Posts: 3003; Member since: 29 Mar 2012)
I get by the large part of my Android experience without these tools.
However, once i learn to use them i am able to control every aspect of my Android usage experience.
6. DavvyGhotra (Posts: 11; Member since: 24 Jul 2014)
i m allready getting 1.5 day on htc one m7 with high usage and in my opinion A app can't save battery it will consume even more !
7. murali_v_2000 (Posts: 17; Member since: 31 Jan 2012)
6 days since full charge and still at 52% - Note 3, low usage. Used every possible power save option that there is (incl undervolt, greenify etc).
8. vishalaestro (Posts: 47; Member since: 08 Dec 2013)
does hibernating apps like whatsapp makes delivering messages in a late manner?
10. SellPhones82 (Posts: 520; Member since: 11 Dec 2008)
I would test it, but pretty sure the messages will not come through until you open the app. I hibernate the FB Messaging app as it was waking my phone up all the time and I only get notifications when it's not hibernating. Never tested it with whatsapp though.
9. harigrg33 (Posts: 159; Member since: 20 May 2013)
I install this app but it says 'kitkat need root access as permission changes by google' and my phone is not rooted.
11. SellPhones82 (Posts: 520; Member since: 11 Dec 2008)
You can try this if you don't want to root. However, I'd think rooting would be an easier option.
tation/d/1r3VlhZIZVSufZlAeICJe t6QBtyAF7z06_ysl1kUKME4/edit#s lide=id.p
16. Anonn (Posts: 75; Member since: 04 Jun 2014)
Try "My Battery Drain Analyser"
It can detect abnormal activities