[Xperia Z3 Android Development] shamsul007:
Battery Life / SoT

After tinkering with the values I've got a fairly decent SoT on my device. It's increased at least an hour from stock kernel. Not quite as good Lollipop days (I could reach 6+ hours SoT on stock kernel) But I think this is quite respectable. Browsing Reddit, Internet. Watching videos on YouTube and streaming stuff on Netflix. It's worth mentioning that I don't play games on my device at all but I assume it would drain battery faster.

Hardly any drain whilst in deep sleep. I was walking around with 4G and Location on throughout most of the day (the only times I turn these on is when I leave my home) whilst listening to music.

Love this kernel. Hope there's another update coming!

EDIT: These are my settings, only mentioning what I've changed, if I haven't mentioned it, then leave default values.

CPU

CPU Max Frequency: 1574MHz
CPU Min Frequency: 268MHz
CPU Governor: Interactive
Multicore Power Saving: Aggressive

CPU Hotplug

ThunderPlug Only (default values)

Thermal

Intellithermal Only (default values)

GPU

Simple GPU Algorithm (default values)
Adreno Idler (default values)

Build.prop Tweaks (theres quite a few tweaks, too lazy to explain, they're pretty common tweaks, a simple Google will explain it)

ro.config.hw_quickpoweron=true
persist.sys.shutdown.mode=hibernate
ro.ril.power_collapse=1
pm.sleep_mode=1
wifi.supplicant_scan_interval=180
power.saving.mode=1
ro.com.google.networklocation=0
ro.kernel.android.checkjni=0
ro.config.nocheckin=1
dalvik.vm.checkjni=false
dalvik.vm.execution-mode=int:jit
profiler.force_disable_err_rpt=1

net.dns1=8.8.8.8
net.dns2=8.8.4.4
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.gprs.dns1=8.8.8.8
net.gprs.dns2=8.8.4.4
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.wlan0.dns1=8.8.8.8
net.wlan0.dns2=8.8.4.4
net.eth0.dns1=8.8.8.8
net.eth0.dns2=8.8.4.4

debug.performance.tuning=1
persist.sys.use_dithering=0
persist.sys.use_16bpp_alpha=1
ro.mot.eri.losalert.delay=1000

debug.enabletr=true
debug.overlayui.enable=1
debug.qctwa.preservebuf=1
dev.pm.gpu_samplingrate=1
ro.fb.mode=1
ro.sf.compbypass.enable=0

debug.composition.type=gpu
persist.sys.composition.type=gpu
debug.sf.hw=1
persist.sys.ui.hw=1
persist.sampling_profiler=0
ro.config.disable.hw_accel=false
video.accelerate.hw=1
debug.egl.profiler=1
debug.egl.hw=1
hw3d.force=1
ro.product.gpu.driver=1
hwui.render_dirty_regions=false
hwui.disable_vsync=true

persist.service.lgospd.enable=0
persist.service.pcsync.enable=0
touch.pressure.scale=0.001

windowsmgr.max_events_per_sec=500
ro.min_pointer_dur=8
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
boot.fps=25

I also have Greenify (donate version) and Greenify apps that should be greenified. I also use Tasker to hibernate apps when display state is off.

Aggressive Doze enabled

In Xposed features

Doze on the go enabled

Wakeup timer coalescing enabled

Greenify system apps enabled

Reveal hidden sync enabled

Stamina mode is set to auto start at 25% and i only activate location and data when I'm outside, rather than having it on all the time.

I've also removed quite a few system apps, stuff I'm never going to use. Use titanium backup for this and your common sense. Remove the apps your never going to use and don't need. For example I'm never going to use the camera effects and stuff, so they've been removed and alot of other stuff. I use Gmail so I have no need for the in-built email app etc.

I also have a weird habit. Basically after phone has charged to 100 percent, I immediately reboot. Maybe it's a placebo effect? I've just noticed that my device lasts longer. Can somebody else try this and let me know if you have the same results or wether I'm being an idiot?

Make a nandroid backup if you're going to use this. If your phone explodes, I will point and laugh.