[Galaxy S 5 General] Android2003:
Today I want to present you a guide to become good batterylife on your device 

Im a owner of a Samsung Galaxy S5 G901F.

The update to Android 5.x was horrible because the battery lives no one day on the stock rom.

At Android 4.4 there was no problem….

Here is a blended guide to help improve your android battery experience.

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

In my case it’s a Galaxy S5 G901F….

It runs on SimpleGX Rom 1.4.1 (based on stock BOH4 firmware).

(I have finally tested it on my Motorola Xoom and Samsung Galaxy Tab)

I switch firmwares on my s5+ between dokdoCM, SimpleGX and CM12.1.

This #1 Post is specially for SimpleGX and NovaRom 5.0.2.

Batterysettings for CM12.1 and DokdoRom is on Post #9.

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

(Additionally)

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

7. Newest Play services and Playstore (recommended)

Basic Settings and tips:

Dont use the inbuild StamniaMode/BatterySaveMode of your Rom.

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.

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 store, set advanced options to “status always ignore”)

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

-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

- com.oasisfeng.greenify/.Cleanerservice

Alarms (Allow every 3600 seconds)

- android.appwidget.action.APPWIDGET_UPDATE

- org.zooper.zw.action.updateall

Alarms (Allow every 7200 seconds)

- android.content.syncmanager.SYNC_ALARM

- android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED

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

- 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

- ALARM_WAKEUP_ACTIVITY_DETECTION

- com.whatsapp.messaging.MessageService.Logout_Action

- com.whatsapp.messaging.MessageService.Client_Pinger_Action

- com.whatsapp.alarm.Client_ping_timeout

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

Alarms (Allow every 84000 seconds)

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

Wakelocks

Wakelocks (Allow every 800 seconds)

- RILJ0

- 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

Services

Services (Block/Deny)

- com.ebay.mobile/.analytics.AnalyticsService

- com.google.android.gms/com.android.location.internal.GoogleLocationManage rService

- com.facebook.orca/com.facebook.analytics.service.AnalyticsService

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

•BetterBatteryStats

•Greenify

•Greenify Donation Package

•Amplify

•Whatsapp

•Xposed Framework

•Ebay

•Messenger

•Adaway

•BusyBox

•GooglePlaystore

•Google Framework services

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)

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 with Android 5.0.2.

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.

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 

Update 2015-10-07:

Added new Services to Amplify.

Tested with NovaRom 5.0.2 , SimpleGX 1.4.1 and later

Update 2015-10-09:

Added New Services to Amplify.

Tested with NovaRom 5.0.2 , SimpleGX 1.4.1 and later