yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam General] gr8hifi:
Thank you for the link. I tried the above mentioned cab. I didn't realize that the missing function was actually called "Smart Dialer".... this didn't fix it either. I ended up HARD resetting. I didn't install anything at all and the smart dialer was working. I was wrong to blame the new ROM. I'm not sure if SPB mobile phone suite did it or the VC. I am going to install stuff back one by one checking the dialer after each install. Hopefully, it wont mess up again. or, at least if it does, i should be able to isolate it and fix it.

Thanks again,

Jason
[8525, TyTN, MDA Vario II, JasJam General] gr8hifi:
found my problem... the PTTfix broke the smart dialer on the new ROM that was released on HTC's site yesterday. Hopefully the bug will be squashed shortly.

Jason
[8525, TyTN, MDA Vario II, JasJam General] jcb_home:
Glad you got it fixed.
[G 2014 General] Duck86:
Hi all,​

Renewable Energy, batteries and efficient electricity is somewhat of a hobby of mine, and Android is another. So, I have combined the two to bring you better battery life. I have achieved 0.0%/h battery drain on idle with my Motorola Moto G 2 XT1068, running AOSP 5.1.1 and I am writing this tutorial to show you how you can potentially do the same on your device, without a significant sacrifice in functionality to your device.

This tutorial can very easily adapted to suit any rooted Lollipop phone with Xposed installed, the only major differences would be in the ‘Amplify’ section and for this you can have a look at this and this for guidelines on wakelocks and alarms for other devices.

First of all, I would to say that following this tutorial does not guarantee you the exact same battery life that I have gained. There are SO many different variables that can effect your battery life including the device you are using, the ROM you have installed, the apps you run and the amount of time you use your screen. Two very useful apps for measuring battery usage are BetterBatteryStats and Wakelock Detector

You should stay away from the so called ‘battery saver’ apps that flood the play store. At best most of them will simply have no effect, at worst they will drain your battery even further. See this for more details.

This tutorial is not just for root users. If you have not achieved root on your device, you can still use the tips in 'basic ROM settings', much of the tasker section (Anything involving secure settings requires root) and some of the greenify features.

For this tutorial you will need 7 apps:

Tasker

Greenify

Amplify

Intelli3G

Secure Settings (Tasker Plugin)

MinMinGuard

Kernel Adiutor

If you are having trouble starting Amplify you may need SELinux Mode Changer set to permissive in order for it to work, although according to the developer, as of v3.0.5 you shouldn’t have any problems.

For all the apps except tasker you will need a rooted device, and you will need the Xposed Framework installed for Greenify, Amplify, Intelli3G & MinMinGuard.

Remember, the steps in this tutorial are just guidelines. If you find that particular parameters aren’t working for you, you can change them.

NB THIS THREAD IS NOT FOR Q&A ON THE SPECIFIC WORKINGS OF THESE APPS. IF YOU ARE HAVING TROUBLE WITH THE APPS THEMSELVES, PLEASE HEAD OVER TO THESE RELAVENT THREADS:

Tasker

Greenify

Amplify

Intelli3G

MinMinGuard​

DISCLAIMER: I do not accept responsibility for any device or application failures resulting from the use of any of these apps​

But before we go into the use of these apps, I'll go through some basic ROM settings and how they may effect your battery life
[G 2014 General] Duck86:
Greenify​

Greenify is a very useful app and a great battery saver. Basically what it does is hibernate any apps you are not using, while still maintaining full functionality of your device. What is the difference between this and other task killers you might ask? Well, lifehacker describes this perfectly:

To get full functionality of the Greenify app you will need to have the newest version 2.6.1 (at time of writing) from the play store, with donation package installed as well as the Xposed framework installed. Once you install the app from the play store don’t forget to enable it in Xposed and reboot before you try to use it. You can use this app without Xposed and the Donation Package, but you will only have very limited functionality.

Once you have the app open for the first time you should click the three dots on the upper right corner and select Experimental Features. Go ahead and click all of the checkboxes in here.

​

Now you want to leave the app and in your app drawer select Settings > Apps > Running. Note the apps that are using the most RAM on your device.

​

The trick with Greenify is NOT to ‘Greenify’ any apps that you want to receive notifications for, like Viber etc. (As of the latest release you can check a box in ‘Experimental Features’ which will allow phone calls and SMS/MMS messages through, so it is now safe to Greenify the Dialler and Messager apps)

To Greenify your apps, simply click on the + in the top right of the screen. This will open the ‘App Analyzer’ Click the 3 dots at the top right again and select ‘show all’, then go to the bottom of the page and click ‘Show more apps’. You now have a full list of all the applications and processes on the system. You can multi select apps in this app, simply work your way down the list clicking the apps you want to Greenify. The apps I have Greenified on my device are as follows, yours will obviously be different. I do not have gapps installed on my device and avoid Google apps and services as much as I can:

*WhatsApp is safe to greenify, and you'll still receive messages when your phone syncs according to your tasker settings, but Viber cannot be greeified as you will not receive messages when the app is in hibernation.

I could have Greenified the Motorola Services that are packaged as system apps too, but I have no need as I have used Titanium Backup to freeze them. If you do not need Facebook/G+/Twitter notifications you could Greenify these too. I haven’t got them on my list because I don’t have Twitter/FB/G+ accounts!

You can also create a tasker profile to automatically greenify apps when you switch the screen off and/or at certain time intervals if you prefer.

For more info on Greenify you can see this link
[G 2014 General] Duck86:
Amplify

​

Amplify is an amazing app. It controls how often apps and services can wake up your device and how long they will stay awake for. You will need the Xposed Framework installed and if you are on Lollipop and having any trouble you will need SELinux Mode Changer set to Permissive in order for it to work, although according to the developer, as of v3.0.5 you shouldn’t have any problems. You may also need to do a soft reboot from within the Xposed Installer if Amplify does not start.

Once again, to unleash full control of this app, you must donate to the developer. The donate buttons can be found at the bottom of the homescreen. Once you have donated, reboot your phone and you will be able to configure all of your alarms and wakelocks. There is a list of safe wakelocks, alarms and recommended times available on this database that is regularly maintained here

To configure your individual wakelocks and alarms, click the Amplify icon in the top left of the screen.

​

Select Wakelocks and you will get a full list of all wakelocks that are currently on your device. Click an individual wakelock to configure it:

​

My setup for my Moto G XT1068 is as follows:

(The numbers here refer to how many seconds interval amplify allows the process to perform a wakelock, not the amount of wakelocks)

Please note, I haven't got gapps installed on my phone so there are several other wakelocks and alarms that are safe to modify on our devices that are gapps related. Please see this post by [MENTION=5412841]matzeko[/MENTION] for extra Moto G 2014 wakelocks and alarms that you can use on your device.

WARNING: Modifying Wakelocks and Alarms can potentially cause apps to stop working and in some cases your device may even fail to boot. In such an instance you will need to disable the module at boot. To do this you have to repeatedly tap one of the hardware buttons (Power, Volume, or Home) on your device during startup. During boot, your device will vibrate twice when it detects the first key press. You'll then have five seconds to press that same button four more times, with each keystroke producing a short single vibration. After ending with a long vibration, your device will disable and prevent most of Xposed's actions, allowing you to go back to Amplify settings and fix whatever it was that you broke.

For more information on Amplify , and for detailed questions about the running of the app, please head over to the Original Amplify Thread
[G 2014 General] Duck86:
Intelli3G​

Intelli3G was designed to save battery by intelligently switching your phone between 2G and 3G depending on the parameters that you set. 2G is a far less power hungry network type (You may have seen the difference in battery life in manufacturers specifications between 3G and 2G talktime). It will not change the network type if you are in the middle of a call. (If it did your call would drop). You can install Intelli3G via the play store, just remember to activate the module and reboot after installation.

FIRST ENSURE THAT YOUR CARRIER SUPPORTS 2G NETWORKS​

Play around with the settings for yourself and see what way you like it to be set up.

I have mine set up as follows:

So basically, the only time the 3G network is being used is when I have no WiFi access, the screen is on, and particular apps (for me it is Opera Browser, Flipboard, VOIP calling, Play Store, K9 Mail) are open. At all other times the phone is using the 2G network and saving a LOT of battery life. If there are other apps that you use that you need a faster Internet speed for, you should add these to your list too.

​

---

MinMinGuard​

I'm tagging this section on to the end because I have no more reserved posts ;)

I have added an ad blocker to this tutorial because of an article I read in Forbes:

"Apps powered by advertisements can eat up as much as 33% more energy than those without while draining significant amounts of a phone’s central processing unit and network data, according to a new study from the University of Southern California and Rochester Institute of Technology. The drain from the ads also contributes to higher costs for phone users with limited data plans, as well as key drops in average app rating scores for developers."

MinMinGuard is the best Ad Blocker that I have come across BY FAR, you just have to remember to manually configure the settings for any new app you install. It couldn't be easier, install MinMinGuard via the Xposed Installer, reboot the phone, then from within the select the apps that you want MinMinGuard to monitor and block ads on. And it just works. There is no grey empty space where the ad should have been, MinMinGuard compensates for this (see the original app thread linked in the OP).

---

So, there is my tutorial for achieving maximum battery life out of your device, WITHOUT using any of the useless 'battery saving task killer' apps from the play store.
[G 2014 General] DroidBr:
good thread

Good Thread, I will test later. but I have no root. :(

But I have a doubt: Google Now consumes a lot of battery? The microphone is on the whole day, I believe that it costs a lot of battery.

Anyone have test disable it?
[G 2014 General] Imperious Rooster:
A well written and excellent guide for battery-saving. Knew many facts mentioned above but learned a lot more too. Thank you!
[G 2014 General] Duck86:
Google now probably would consume quite a bit of battery. I don't use it myself, and don't have gapps flashed on my device, just the playstore, so I don't have any way of testing. To be honest the idea of google potentially being able to listen in on everything I say terrifies me :P If you wanted to check how much battery it would use BetterBatteryStats would give you an accurate percentage. However, all of the above methods will still improve your battery life even if you did have google now enabled

Thank you :)
[G 2014 General] DiamondBond:
Mod please sticky this :) excellent guide! You deserve more thanks!

Sent from my Motorola Titan
[G 2014 General] :
Thanks for your guide, will try it later. :)

As I have already experimented with amplify, I have some questions:

- Do you get push messages, e.g whatsapp, in realtime to your device while in deepsleep?

- Does a-gps still work for you or does it take a long time until you get a gps fix?
[G 2014 General] Duck86:
Because of my tasker settings (as described in the OP) I have my phone set to background sync every half hour, so because of this I get Whatsapp/Viber messages on the half hour (unless my screen is unlocked, in which case I'll get them in real-time). As stated in the OP, if this sync interval doesn't suit you, you can shorten it, but it will effect your battery savings

When I open an app that needs GPS fix, like Maps or Zombies Run I get a GPS fix usually within 4-5 seconds. (I also have a tasker profile to turn on GPS whenever either of these apps turn on)
[G 2014 General] btb55:
Thanks for this brilliant guide, agreed it should be made a sticky.

(Slightly off-topic, but for anyone who doesn't have Tasker and now wants to buy it you can get it for free. Pay for it with PayPal before the end of March and you will get the cost refunded. May be UK only, see PP for details)
[G 2014 General] laureano97:
Changing RILJ doesnt broke anything? I mean, if it has so many wakes, maybe its important to be always on. Could you explain it?
[G 2014 General] Duck86:
Everything is working fine. RILJ actually has over 9000 wakelocks on my system, it is high because I have blocked Dialler Location permissions in AppOps. It cannot get a lock on my location, hence the higher wakelocks. Amplify is helping to keep it in check. The number after each wakelock in the OP referrs to the number of seconds interval I have set for Amplify to allow the process, not how many wakelocks there are.
[G 2014 General] Duck86:
Hi guys,

I have added another section to the tutorial. This part is about basic ROM settings and how they effect your battery life. You can see it in post #2 Screenshots will follow
[G 2014 General] laureano97:
Those tutorials are amazing man! Just one thing about this new post: Lollipop stock battery saver turns off animations. Thats helps saving battery right?
[G 2014 General] Duck86:
Yes, it does, but you can also do that manually in Developer Options by turning off 'Window Animation Scale', 'Transition Animation Scale' and 'Animator Duration Scale'. I had forgotten about that because I like to keep the animations on.

EDIT: Added to OP
[G 2014 General] v7:
The highlight of this thread is the way he explained Tasker and Secure Settings profiles.Most of them around here are confused with it.

And btw thank you for such a good guide :)

Tapped from my furious ZR ;)
[G 2014 General] Gabboplano:
been messing around for 1 hour, finally finished everything, rebooted my phone, bootloop. gg

this is when life makes me happy
[G 2014 General] Duck86:
You got a bootloop? What ROM are you running? What exactly did you do? The only thing in this tutorial that could *potentially* cause a bootloop are certain wakelocks or alarms in amplify. But everything in the op is safe to apply. I even got the amplify developer to look it over before I published the tutorial. Did you apply any extra ones?

---

Devices:

Motorola Moto G 2014 - Titan Prime Unified v1.0 Beta

Asus Nexus 7 2013 - Screw'd Android
[G 2014 General] anterus:
Amazing tutorial, thank you for the effort you put into it. Got a question for you:

Tasker Tutorial post, First Profile to be added (Airplane Mode at Night):

When I am on Step 1, clicking + at the bottom of the screen, Tasker doesn't provide a way to enter new profile name ("Airplane mode at night"), it asks me to specify first context (application, day, event, location, state, time). What do I choose? I can select time, and have many profiles with time repeated. But when I try to add several tasks to one time based entry, it seems to treat them as "and" - that all entries must be met. Please clarify Step #2 - what to select, Time? And then rename the profile to the name that you have?

THanks!
[G 2014 General] v7:
Yeah exactly.Choose time in step 2.Then rename the profile.

I think he messed up with the order.

No issue anyway :)

Tapped from my furious ZR ;)
[G 2014 General] Duck86:
If Tasker does not automatically ask you to name your profile directly after hitting that '+', go to the profiles screen, hit the menu button (3 dots in top right) and select Preferences > Main Screen > Check the box that says 'Ask for new profile name'. That will fix it so that it is in the order that is given in the tutorial

EDIT: Added to OP
[G 2014 General] :
I made airplane mode at night profile, same as described in OP but with the specified time the phone still doesnt go to airplane mode. i have to run it within app to move it to airplane. any specific settings? sorry but i am new to this apparently
[G 2014 General] Duck86:
Is the toggle switched to on in the main screen? Try rebooting the phone and see if it goes into airplane mode then
[G 2014 General] Duck86:
Or did you do this?
[G 2014 General] :
Sorry for the trouble

I didnt activate it. Just now i did. Screen on and screen off function with data getting on and off, having trouble setting it up on tasker. Can you give me a small tutorial once again if possible

Sent from MicroTitan :P
[G 2014 General] Duck86:
Will do, it'll be up later today

---
[G 2014 General] lledo54:
[emoji106]
[G 2014 General] anterus:
Followed your recommendations yesterday, today at 2:30pm after moderate use battery life is 85%!! Your recommendations are amazing. Can you please share any other ideas of how to use Tasker for additional battery saving profiles, as most of the battery savings seem to come from Tasker -> Data off when screen is off (and on for 1 minute every 20 mins to download mail), and Greenify.

Still have to get donation based Amplify and configure it, but even without it - amazing results!!

Unfortunately Wind Mobile in Canada uses only 3G network for voice and data, so Intelli 3G can't be used.
[G 2014 General] Duck86:
Even with just one person getting back with their positive review and great results has made this worth while for me :) You have just made my day :)

Amplify donate package will give you even better results. Its well worth it!

I posted a few links at the bottom of the tasker tutorial for other ideas of what you can use tasker for.

My other personal profiles include:

Silent mode when you flip the phone

Send a low battery warning text to the wife @ 5% battery

Send SMS #findmyphone and phone will automatically start ringing at full volume (even if it was previously on silent)

Scheduled reboot at 5am every morning

Car mode: When I have phone plugged in to car charger and orientation is *left* Bluetooth & GPS will automatically start, it will connect to my car stereo, launch music app and start playing, and the Maps app will launch in full screen navigation mode

When in 'Car Mode' and a text comes in, I will get a voice message telling me who texted me and a menu will pop up asking me if I would like the text read aloud

When in 'Car Mode' my phone will automatically sent a text to the last sender telling them I am driving and will get back to them as soon as I can

If a call comes in when in 'Car Mode' Maps app will reload automatically after I hang up (Still fiddling with this one trying to get it right)
[G 2014 General] Duck86:
So, to do that you need 5 separate profiles (see screenshot). The screen on/off profiles are easy enough, the 'ping net on' task is the tricky one. The second screenshot is of what that task should look like.

If you need more detail again just let me know

---
[G 2014 General] apacher:
Pls make a video about tasker because i don't know how to use its :(
[G 2014 General] Duck86:
The tutorial here is about as basic as you can get, the basic premise is all there in the OP. I don't know if I'm going to get time to do a video. Maybe on one of my days off, but it won't be this week. I'm Irish and Paddy's Day is coming up! ;)
[G 2014 General] CopKiller76:
Just try using the million other tutorials about tasker to get started. Its not that hard.
[G 2014 General] :
Isnt there a backup and restore functionality in tasker? XD

Confusing but i will try to get it right :)

Sent from MicroTitan :P
[G 2014 General] :
Is this perfect one?

Sent from MicroTitan :P
[G 2014 General] apacher:
Better to see the OP version :)
[G 2014 General] Duck86:
There is. In the profiles tab, click the menu button (3 dots, upper right corner) > Data > Backup > Ok
[G 2014 General] :
You've a pm ;)

Sent from MicroTitan :P
[G 2014 General] metalrules321:
[MENTION=5338090]Duck86[/MENTION]

A very excellently detailed and useful guide , and Im having really good results with it.

Thanks for taking the time to create this awesome piece . Thanks a lot :)

The only problem I seem to have is, the google play service wakes up from hibernation again and again. Ive severed a lot of its wake-up paths but I fear this may cause some unknown issues or trouble with updating apps

Also I feel that, the constant auto wake-up and hibernation of play services may take a toll on battery life too (?!)

Any insights??,

and once again thanks :)
[G 2014 General] Duck86:
Thanks for your feedback :) I was actually going to update the OP today regarding Google Play Services. Two things have happened recently and I am unsure which is the cause. First, I received a new update from Play Services, and secondly I have updated my ROM. But whichever was the cause, I have fouund that greenify will no longer hibernate Play Services automatically. As a result I'm removing Play Services from my greenified list.

I haven't had any problems with the Play Store with my set up, I still receive app update notifications and as far as I can see, there is no perceptible increase in battery drain since I have degreenified the app.

The thing with this sort of guide is that as various apps get updated, and new android versions come out the setup will change as time goes on. I'll be maintaining this thread as much as I can to ensure all the info is as up to date as possible.
[G 2014 General] anterus:
Duck86: Another observation - charged the phone at 10pm at night, now it's 10am, and the battery is at 86%! These figures are without Intelli3G as I can't use it. This is much better than fiddling with custom kernels and finding the most effective ROM - any basic CM12 will do! Many thanks for additional profile ideas too.

It looks like 30 seconds, or even 1 minute of "ping data/turn data on" are not sufficient for GMail sync to kick in or for the GMail server to push the update notification to the device. Do you know any way to programmatically trigger Google sync via Tasker or any of its plugins? Which other Tasker plugins did you find useful?
[G 2014 General] rffslow:
Great guide mate!

Just one thing, i noticed that my wifi keeps "turning off", the wifi is still on but with no conection.

Sometimes when i turn the screen on it conects again, sometimes not. Then i need to turn it off and on again.

I followed all the steps exactly as stated on OP, except by the tasker part.
[G 2014 General] Duck86:
Hi guys, just a quick message to say that I've started moving house today, so will deal with any queries and questions when things calm down next week.

Thanks for your patience!

---