[Galaxy S 5 General] Android2003:
Here is a blended guide to help improve your android battery experience.

This should work to many other Android devices, phones, tablets too.

This post is specially for G901F with Dokdo 7.1.0 and later, CM12.1 latest, Android 5.1.1.

Not for Samsung based Roms like SimpleGX and Nova 5.0.2

Lets start…

Prerequisite is ROOT and Xposed framework for your firmware.

There are other posts and threads about. Im not sure.

Maybe Im looking out for the links.

Use BetterBatteryStats to make logs and see batterystats.

I don’t need Wakelock detector….

Requirements:

1.Greenify (Pro)

2.Amplify (Pro)

3.AppOpsXposed

4.PowerNap

5.Smart Network

6. init.d Script for Google Play batterydrain (when the installed rom don’t have it)

7. Newest Play services and Playstore (recommended)

8. MyAndroidTools (Pro)

9. NoFrillsCPUcontrol

Basic Settings and tips:

You can use the inbuild StamniaMode/BatterySaveMode of your Rom additionally.

Display

Display brightness is an important factor in your batterys life. The more brighter the screen is, the more battery it drains. So keep the brightness under control or use automated brightness, but switch one level darker. Or you can try manually adjusting the screen brightness to dark. Without needing a headlight lol….

Cell Network/3G/LTE/2G

Switch LTE/3G to 2G while not in use.(while on WiFi). Use Smart Network to switch between networks.

Wifi

-Even if your wifi is off, the phone searches for signal. To switch off this feature, go to Settings > Wifi > Options in top right corner > Advanced > Scanning always available > Off

-Make sure u use a static IP. Switch to “static” as follow:

Tap long on your Wifi-network, select “advanced settings”, scroll down and change “DHCP” to “static” in IP-line.

Location

Standard juice sucker in Android is the Location Services. You can turn it off while not in use. That saves a lot of battery. You can also set the location to “Device Only" in settings.

In my case, I never used location services.

Google Sync

Enable GoogleSync

Bluetooth

Disable Bluetooth when not in use.

This is a little bug to SmartNetwork. When using SmartNetwork your Bluetooth is always on.

Go to SmartNetworkApp and then click "advanced", then "Keep manual settings(BETA)"

Now you can shut down Bluetooth manually. It keeps off then.

Greenify

Use Greenify to hibernate apps that are not in use.

You must buy or download Donation Package of Greenify to use all features. Once you have a Donation Package, you need to activate the Greenify Xposed Module in your Xposed Framework. Once done, setup as follow:

-enable the Boost mode on top

-enable Experimental Features

-select ALL other stuff.

Important:Set Greenify as Admin in settings/security/greenify automator

(for Samsung G901F the “deep hibernation alpha” works perfect, at some other

Devices it should not work)

--Screenshots—

When installed and activated, open the Greenify app.

Select “show all” on top right corner to see ALL stuff on your phone.

Greenify all apps that suck battery in background.

For example:

-Maps

-Hangouts

-Browser

-Facebook

-Games

-Instagram

-Google play services, set advanced options to “status always ignore”

-Google Play Games

-AliExpress

-UCCW

-NHL2K

Its not recommended to greenify Google play services.

I can say, on my device it works well.

You must try it….

--screenshots--

Do not greenify apps as follow:

-Amplify

-Android system

-CyanogenModSystem

-Greenify itself

-Better Battery Stats

-Xposed

-System apps

-Smart Network

-PowerNap

-AppOpsXposed

--Screenshots—

Amplify

It is a must have app for all devices running Xposed Framework.

You'll need a donation package to control wakelocks and alarms.

This is very specific to every device, because everyone have different apps on his phone/tablet.

Limit the following:

(Warning: Be careful, read it twice before set up, you should know what you do)

Alarms

Alarms (Allow every 600 seconds)

- com.android.internal.telephony.data-stall -

Alarms (Allow every 1800 seconds)

- com.oasisfeng.greenify.CLEAN_NOW-

Alarms (Allow every 7200 seconds)

- android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED-

- com.facebook.common.executors.WakingExecutorService.ACTION_ALARM.com.facebook.katana.Mqtt_Wakeup-

- com.whatsapp.alarm.Available_timeout-

- com.Android.vending/.com.google.Android.finsky.services.contentsyncservice-

Alarms[LOCATION] (Allow every 40000 seconds)

- com.google.android.intent.action.SEND_IDLE-

- com.whatsapp.messaging.MessageService.Logout_Action-

- com.whatsapp.messaging.MessageService.Client_Pinger_Action-

- com.Google.android.intent.action.MCS_heartbeat-

- com.facebook.rti.mqtt.keepalive.Keepalivemanager.ACTION_INEXACT_ALARM.MqttLite.com.facebook.katana-

- com.google.android.gms.gcm.ACTION_CHECK_QUEUE-

- com.facebook.push.mqtt.keepalive.KeepaliveManager.ACTION_INEXACT_ALARM.com.facebook.katana-

- com.android.providers.calendar.intent.CalendarProvider2-

Alarms (Allow every 84000 seconds)

- com.google.android.gms/.checkin.EventLogService$Receiver-

Alarms (Allow every 99999999 seconds)

- com.google.android.gms.common.receiver.LOG_CORE_ANALYTICS-

Wakelocks

Wakelocks (Allow every 800 seconds)

- RILJ

- NetworkStats-

Wakelocks (Allow every 3600 seconds)

- SyncLoopWakeLock-

- GPSlocationProvider-

Wakelocks (Allow every 7200 seconds)

- NfcService:mRoutingWakeLock-

- Connectivityservice-

- wake:com.whatsapp/.alarmservice-

- Startingdockservice-

- alarmservice#updateNtp-

Wakelocks (Allow every 40000 seconds)

- LocationManagerService-

Wakelocks (Allow every 9999999 seconds)

- *job*/com.facebook..katana/com.facebook.analytics2.logger.LollipopUploadService-

- JobSchedulerHack-com.facebook.analytics2.logger.LollipopUploadService-client-2

Services

Services (Block/Deny)

- com.ebay.mobile/.analytics.AnalyticsService-

- com.google.android.gms/com.android.location.internal.GoogleLocationManagerService-

- com.facebook.katana/com.facebook.analytics.logger.LollipopUploadService-

- com.facebook.katana/com.facebook.analytics2.logger.GooglePlayUploadService-

- com.google.android.gms/icing.service.IndexWorkerService-

- com.cyanogenmod.lockclock/.weather.WeatherUpdateService-

- com.google.android.gms./.ads.social.GcmSchedulerWakeupService-

Attention:

I never used Location Service. That's why I have disable the location services. If you are using Location services, do not disable the services with location- and GPS tag.

Power Nap

In order to download the app you need to join the alpha testers community in Google+ from here http://xdaforums.com/showthread.php?t=3077520 to become a Tester. Then you'll be able to download and run the app.

Set the Endurance Mode to Always ON.

To get Push messages you should whitelist this apps.

In my case the whitelisted apps are (Varies according to users):

-AndroidSystem

-Adaway

-BusyBox

-Cyanogenmod-System

-GooglePlayservices

-GoogleServicesFramework

-MyAndroidToolsPro

-BetterBatteryStats

-Greenify

-Greenify Donation Package

-Amplify

-Whatsapp

-PNFroot

-Smartnetwork

-Zooper

-Xposed Framework

-Ebay

-Messenger

-NoFrills

AppOpsXposed

AppOps is a permission manager in android.

Navigate to Settings/Hacks/Check FIX OP_WAKE_LOCK

Disable the following Permissions of Google Play Services :

•OP_ALARM_WAKEUP/Wake Up

•Keep Awake

•(Location if u don’t need google locations)

Disable the following permissons of Google Services Framework

-Keep Awake

-(Location if u don´t need google locations)

Disable the following Permissions of Google Play Store:

-(Location if u don’t need google location)

-keep awake

PNF Push Notifications Fixer

If you encounter any delayed Push Notification from any app after using this thread,

try the PNFroot Fix from Playstore. Setup to Mobile 6/WiFi 5 minutes.

Init.d to fix batterydrain

Especially for our G901F.

A few roms already have this https://mega.nz/#!a8lX2BTJ!RoeyURaXMkYZmnWzZV3q4uuf9fQMW4cU2gral5DhSMk fix. (Nova 1.3, SimpleGX 1.4.1)

Your Rom should have init.d support.

Place this script to etc/init.d folder as root and set permissions to 755.

MyAndroidTools (Pro)

A wakelock called "location service" drains my battery like hell.

There was no wakelock in Amplify found.

But in Greenify the "location service" stays always on.

To fix this issue please load the app MyAndroidTools Pro from Playstore.

When granted SU permissions, open the app and go to SERVICE.

Then to SYSTEM at the top.

Scroll down to LocationServices and tap it.

Set "GeoFenceService" and "LocationService" to "off".

The two keeps RED.

NoFrillsCPUcontrol:

Install from Playstore.

Get SU permissions and set:

Max.CPU: 2266Mhz

Min.CPU: 300Mhz

Governor: interactive

I/O: row

Tap the box to set your changes on next boot.

https://www.dropbox.com/s/a4p83tf1sifw6zc/Screenshot_2015-11-07-21-57-17.png?dl=0

You should wipe cache and reboot the phone when the changes are done.

Make them step by step.

done!

Thanks to

[MENTION=1330150]chamonix[/MENTION] for BetterBatteryStats

[MENTION=4376588]oasisfeng[/MENTION] for Greenify

[MENTION=526666]cryptyk[/MENTION] for Amplify [MENTION=4477302]caspase[/MENTION] for AppOpsXposed

[MENTION=4504254]waylaidwanderer[/MENTION] for Power Nap [MENTION=2790445]andQlimax[/MENTION] for PNF

[MENTION=5867207]vaisakh7[/MENTION] for his BatterylifeThread and his great support

And many others 

Updated 2015-11-07