[Galaxy S 4 i9505 Android Development] lawyer_06:
HOW TO GET A BETTER BATTERY LIFE?

:

(INITIAL NOTE: Please note that this guide had been prepared on a Kitkat Rom base and hasn't been updated for Lollipop base, so i can't guarantee that all tips will 100% work on Lollipop Roms. But i think most of them should work.. And please remind that the pointed Kernels in the tutorial were for Kitkat Roms.)

*** Here is my guide to get a better battery life.. :). Firstly, i want to state that i am just sharing my knowledge and experiences that i have acquired while i was researching in this area.. I am not an expert in this area and i do not claim to be an expert. So take this tutorial as a sum and summary about battery life.. In this tutorial i mostly aimed to help newbie members, beginners and who has intermediate knowledge on this subject (but i think also advanced members could find some useful informations for them in it).. I aimed to bring in the basic knowledge to the members who are looking for an effective method regarding a better battery life. Because i see that how people look around for a stable and effective method as i did before. [emoji23] I know having a poor battery life how a pain :eek:. I understand they are in which situation and they are searching of what.. :) Before applying this method i had poor battery life and battery draining problem as lots of people.. And i didn't know what to do to get a better battery life.. After a long search process and after a testing adventure [emoji23] i think i found my stable method.. :) After i constituted my method and after i got good results i thought to share my experiences with community and i wrote my knowledge about this topic elaborately, so lots of members could apply this method.. Thus this post was created on this aim and updated several times by me and it will be updated again and again if it needs arrangements (and if i have time).. Life and developement are not standing static in their positions; they always go forward.. So we should always be on the way of learning.. :) In my life, i always try to make my works as good as possible; this is my philosophy of life, so if i learn any other methods to get the better, i will share it too.. My aim is to help people who are searching an effective method.. So i will be very happy if i would help you.. Enjoy and good luck.. ;)
​

LET's START:

I will write the steps one by one:

1-

Calibrating your battery:

a) First, calibrate your battery.. You can find one of battery calibration app from Google Play Store, from here:

=> Battery Calibration app

When you launch the app you will see the battery calibration instructions in app itself. Read it and apply literally. You will see the results of battery calibration after a 2-3 cycles of full charge-discharge..

b) There is a little-known method that is similar with battery calibration and sometimes it fixes some battery draining issues. I want to share it.. This method is being apply via phone dialer and it help us to reset our battery fuelgauge:

Firstly charge your battery until it charged to 100% and the fully charged notification appears on notification bar. Then unplug your charger and go to your dialer and dial *#0228# code, when you dial this code, a window with the header "BatteryStatus" will pop-ups. And in the bottom of this window there is a "Quick Start" button. Press on that button. A "Warning" notification will pop-ups again, press on "OK" button. Your phone will be screen off. Then unlock your screen and look at your battery's percentage again. If it has been decreased and if it doesn't show 100% then again plug your charger and charge your phone until it reaches to 100%. Then once again follow the dialing code procedure i have explained above and reset your battery. I think in the second resetting, your battery percentage shouldn't decrease or if it decrease it shouldn't decrease as the first one..

I have applied this method several times and after my battery is being fully charged i dial that code and my battery generally decreases to 94%. Then i charge it again to 100% and i observe my battery goes longer..

I recommended this method to some members who had battery issues before and after implementing this method they got good results. So this little-known method also could be used as an alternative for battery calibration..

Here are the experiences of that members after using this method:

1- http://xdaforums.com/showpost.php?p=56358251&postcount=3219

2- http://xdaforums.com/showpost.php?p=56503158&postcount=1551

2-

Changing your Kernel:

a) Sometimes changing your Kernel can improve your battery life. There are many Kernels for S4 i9505 model phones on Xda forums. Look at them and analyze which feautures and tweaks they have. And try the one that suits you.. You will find "your best" kernel according to your expectations (performance, battery life) from that kernel and your phone usage.. I have two favorite kernels. One of them is "Googy-Max3" and the other one is "Alucard Kernel".. So i suggest these kernels for a good battery life. (You can find the screenshots of my battery statistics below..)

b) If you want to flash a new Kernel, first flash a Kernel Cleaning Script to clean the remains of your previous Kernel, then just after it flash the new Kernel you want. You can find the Script and the flashing instructions from here:

=> http://xdaforums.com/showthread.php?t=2492144

3-

Using some beneficial apps to regulate the battery life:

a) To regulate my battery life, i use some apps.. For example i have "

Greenify-Pro

" app from Xposed Installer. And i use "Idle Time Connection Manager" to disconnect automatically my wifi, mobile data and bluetooth when the screen is off. (You can also use "Better Wifi On/Off" app from Google Play Store). And i have "SD Maid-Pro" app installed on my phone from Google Play Store.. SD Maid-Pro also has lots of beneficial features for your phone..

b) The Greenify app is very important to prevent wakelocks and prevent battery consumption while your phone is in use and not in use.. So i strongly recommend using this app.. Besides that, the Greenify app has two widgets in Widget Drawer, one of them is "Hibernate+Lock Screen" and the other one is "Hibernate Now".. I recommend to put the "Hibernate+Lock Screen" widget on home screen and when you want to lock your screen, just press it instead of pressing power button.. This widget will hibernate the apps and will lock the screen..

c) In SD Maid-Pro app there is an option called "AppControl". Open it and wait untill it list all apps on your phone.. A list of apps will be shown.. In that list there are "Autostart", "System" and "Running" inscriptions on the right side of some apps.. And when you tap on apps there it shows a drop down menu which has some options. From that options i have toggled lots of apps that cause wakelocks.. For example i have toggled all of "Google Play services" autostart components. To make it, tap on "Google Play services" app from the list. Then find "Toggle autostart components." option in the drop down menu. Tap on it and switch all the components to "OFF". I have done the same process for "Google Services Framework" app from the list. And with this procedure you can toggle off lots of app's autostart setting.. I have done many of them.. But be careful while choosing the apps. It is more safe to work on custom apps. I don't suggest to toggle the apps that you are not sure and that you don't know its function. And try to avoid from toggling system apps as possible.

4-

Freezing some system apps which are working in background and using so much RAM:

Some system apps use so much RAM and Andoid System.. So i froze that apps (e.g. SFinder, SNote, E-mail, Quick Qonnect, WatchON) and around 10-12 apps by using SD Maid.. I don't use those apps much, so it is not a deficiency for me not to have them.. I can unfreeze them when i need them already.. After i froze these apps i also had less RAM usage (between 45% - 65% with using "Clean Master" app)..

5-

Switching off Wi-Fi/Mobile Data when you don't need them:

The most important step and the magic formula is when you don't use your Bluetooth, GPS, Wi-Fi/Mobile Data and Sync, always keep them switched off. These components consume lots of battery, especially wi-fi/mobile data; so

when you don't use

them

, always switch off

them

! I experienced clearly during my tests, when Wi-Fi is on, although you don't use it, it drains the battery very fast, because there are lots of apps that use wi-fi in background.. So, when your screen is on but you don't use wi-fi, just switch off it. And when you switch off it, you will see the good results clearly.. Less wi-fi usage means a better battery life!

6-

Changing your modem (baseband):

Sometimes changing your modem can reduce battery drain and can give you better network signals. If you have issues about GSM and Wi-Fi and if your battery is draining dramatically consider to change your modem (baseband). For me; after i flashed a new modem, i observed i have less battery drain and better network signals according to my previous baseband.. But you will try and find by yourself which modem is better for your country and for your carrier.. Be careful and read the flashing instructions carefully if you are flashing a modem via ODIN for the first time..

You can find modems (baseband) for i9505 and more information from here:

=> Modem (baseband) / Wi-Fi Fix for S4 (i9505)

7-

Some tips from your phone settings

to save battery:

a) When we look at our battery consumption graphics, we see that telephone screen uses most of the battery and it is always on the top of the list. So reducing the brightness can save some battery.. Because of this case, i advice to set the screen brightness to "Auto -5" while outdoors and to minimum while indoors. While outdoors, the screen is being affected by sun shines, so because of Super Amoled Screen that our phone's has, setting the screen brightness to minimum will make the screen dark and cause not seing the screen.. :)

b) Use Power Saving Mode (PSM) in phone settings.. And in PSM, from "Restrict performance" menu, tick/activate "CPU performance", "Screen output", "Turn off touch key light" and "Turn off GPS" options. After activating this options if you observe your phone becomes too slow/ laggy then deactivate/untick that options again.

c) In phone settings go to "App ops" and find "Google Play services" and "Google Services Framework". Tap on them and turn off "Keep awake" option.. You can turn off more apps' options to prevent them keeping your device awake..

d) In your phone settings go to "Wi-Fi -> (Menu options) -> Advanced". From this menu, untick/deactivate "Always allow scanning" and in "Keep Wi-Fi on during sleep" option, select "Never (increases data usage)"..

8-

Finding out what causes your battery drain:

After following the above steps if you don't observe a better battery life, then it could be some apps causing wakelocks on your phone thus causing battery drain. For finding out what causes battery drain there are some apps you can use. For example "BetterBatterystats" app, "Wakelock Detector" app, "GSam Battery Monitor" app (etc.).. You can use one of these apps to find out what causes battery consumption on your phone.. (These apps' links are below)..

9-

For more information about "battery" topic y

ou can also look at the threads below:

a) [GUIDE] Insanely Better Battery Life When Idle - Battery Life Thread

b) [Battery Life Help] Troubleshoot battery issues here! (Noob friendly)

c)The BEST Google Play Services/ Google Search battery drain fix - AMAZING BATTERY LIFE

=>

YOU CAN FIND the KERNELs/APPs that I HAVE MENTIONED ABOVE FROM THESE SITES:

1) Googy-Max3 Kernel (You should download the "TW" version of this Kernel)

2) Alucard Kernel (You should download the "TW" version of this Kernel)

3) Idle Time Connection Manager (Phoenix Rom users can find this app on their phone from here => Settings -> Device -> Phoenix Extra -> Idle Wifi Time Manager

4) Better Wifi On/Off

5) SD Maid-Pro

6) Greenify (Donation Package) (You should have "Xposed Installer" on your phone to use Greenify)

=> Greenify's Thread on Xda

7) BetterBatteryStats On XDA

(Please press THANKS button on the original thread because of this gorgeous app.) (You can also find the app from Google Play Store from here --> BetterBatteryStats on Google Play Store )

8) Wakelock Detector

9) GSam Battery Monitor

NOTE:

If you feel this post is useful, please press "THANKS" button. So we understand if this method is useful and effective or not.. Thus maybe it can be a stable and effective method for all different ROM users who have poor battery life..

BATTERY STATISTICS WITH

"ALUCARD KERNEL"

:

1- Statistics with less wi-fi and phone usage;

- 3 day 18 hour 32 min Standby Time,

- 3 hour 42 min Screen On Time,

2- Statistics with daily normal usage;

- 2 day 0 hour 13 min Standby Time,

- 4 hour 22 min Screen On Time,

BATTERY STATISTICS WITH

"GOOGY-MAX3 KERNEL"

:

1- Almost 6 hours (5 hours 57 min) Screen On Time and "1 day 1 hour 40 min" Standby Time:

2- "5 hours 40 min" Screen On Time and "21 hours 26 min" Standby Time: