[Android Software/Hacking General [Developers Only]] stonemano1:
There are many guides available for battery enhancement and performance in xda forums.But none of them gave me great battery and performance so i have combined these tweaks/mods available and sharing the same.THESE WILL DEFINITELY IMPROVE BATTERY LIFE OF UR DEVICE.

Disclaimer-I am not the developer of any of the mentioned tweaks/mods...just sharing it for the fellow users to get max battery and performance on their devices.

* Your warranty is now void.

* I am not responsible for bricked devices, dead SD cards, corrupted partition, nuclear disasters

* Please do some research before using this mod!

* YOU are choosing to make these modifications,

* If you point the finger at me for messing up your device, I will laugh at you.

Requirements

latest busybox

rooted phone

init.d support

xposed framework

twrp or any custom recovery

permissive selinux is preferred(if needed check this-link[tested by me] or this-link[not tested]

any cm or aosp rom<6.0.1(not tested on miui and nougat)

terminal emulator app

Xposed Apps for battery saving

greenify- Surely everyone is using it already...if not then install it.also check the module option for it in xposed.the settings i use for greenify are below:

View attachment 3957865View attachment 3957866View attachment 3957867

prevent running -another great module for xposed.what does it do?the apps checked in module will not restart on their own once removed from recents.also new apps installed r automatically added for preventing by module.link to download is below.

Build.prop additions[ALL TWEAKS EVER MADE THAT REALLY WORK]

open root explorer.

make backup of default build.prop(just incase).

Remove any build.prop tweak(if added) except the default ones.

copy all paste it at the last of your build.prop:

ro.config.hw_power_saving=1
debug.egl.swapinterval=-60
ro.ril.gprsclass=10
ro.ril.hsdpa.category=10
#ADD
# Better Responsiveness & Speed
windowsmgr.max_events_per_sec=90
ro.max.fling_velocity=15000
ro.min.fling_velocity=8000
touch.pressure.scale=0.1
# More RAM
persist.sys.purgeable_assets=1
#Hardware Power Saving
ro.config.hw_power_saving=true
#Disable Miscellaneous Android Logging Stuff
debugtool.anrhistory=0
profiler.debugmonitor=false
profiler.launch=false
profiler.hung.dumpdobugreport=false
#Enable ADB Debugging By Default & Disable USB Debugging Popup
persist.adb.notify=0
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
#Disable Logers
ro.config.htc.nocheckin=1
ro.config.nocheckin=1
#Disable Kernel Error Checking
ro.kernel.checkjni=0
# Other Tweaks:
ro.config.combined_signal=true
#DHA tunning
ro.config.dha_tunnable=1
#Disable Strict Mode Checking
persist.android.strictmode=0
#Better signal reception
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1
#For Sensor Sleep Control
ro.ril.sensor.sleep.control=1
#Faster Boot-Animation FPS
boot.fps=20
#Enable Quick Power-On Mode To Reduce Boot-Time
ro.config.hw_quickpoweron=true
persist.sys.shutdown.mode=hibernate
#Disable Scrolling Cache For Faster Scrolling
persist.sys.scrollingcache=3
ro.securestorage.knox=false
# Video Acceleration Enabled And HW debugging
debug.performance.tuning=1
# Dialing Tweaks
ro.lge.proximity.delay=25
mot.proximity.delay=25
# Smoother video streaming and tweak media
media.stagefright.enable-record=false
# Increase camera's photo and video recording quality
ro.media.dec.aud.wma.enabled=1
ro.media.dec.vid.wmv.enabled=1
# Support For IPV4 and IPV6
persist.telephony.support.ipv6=1
persist.telephony.support.ipv4=1
# Better image quality, lower performance.
persist.sys.use_dithering=1
# Better call voice quality.
ro.ril.enable.amr.wideband=1
debug.enabletr=true
debug.overlayui.enable=1
debug.qctwa.preservebuf=1
ro.fb.mode=1
ro.sf.compbypass.enable=0
# System prop to select MPQAudioPlayer by default on mpq8064
mpq.audio.decode=true
# Better Scrolling responsiveness and speed
ro.min_pointer_dur=1
# Miscellaneous Tweaks for performance
ro.config.hw_menu_unlockscreen=false
ro.mot.eri.losalert.delay=1000
ro.telephony.sms_segment_size=160
# Hardware 2D & 3D Rendering
hw2d.force=1
# 3d performance
ro.secure=0
# Other Tweaks
ro.config.hw_new_wifitopdp=1
vm.dirty_ratio=90
vm.dirty_background_ratio=70
vm.vfs_cache_pressure=10
vm.min_free_kbytes=4096
#Minimum brightness of your screen
ro.lcd_min_brightness=1
# System Tweaks
ro.HOME_APP_ADJ=1
# Qualcomm Tweaks
debug.qctwa.statusbar=1
debug.qc.hardware=true
com.qc.hardware=true
# Disables data sent and logging
# DalvikVM
dalvik.vm.verify-bytecode=false
dalvik.vm.execution-mode=int:fast
dalvik.vm.checkjni=false
dalvik.vm.dexopt-data-only=1
dalvik.vm.lockprof.threshold=250
dalvik.vm.dexopt-flags=m=y
dalvik.vm.jmiopts=forcecopy
# Performance
debug.kill_allocating_task=0
force_hw_ui=true
ro.debuggable=1
# Saves some battery without reducing performances
power.saving.mode=1
# Battery save
ro.ril.disable.power.collapse=0
ro.ril.power_collapse=1
power_supply.wakeup=enable
profiler.force_disable_ulog=true
profiler.force_disable_err_rpt=true
profiler.force_disable_ulog=1
# Increase some Performance
ENFORCE_PROCESS_LIMIT=false
ro.wmt.blcr.enable=0
# Bass audio props for Lolipop
tunnel.decode=false
persist.sys.media.use-awesome=1
sys.keep_app_1=com.bel.android.dspmanager
ro.audio.samplerate=48000
ro.audio.pcm.samplerate=48000
af.resample=52000
# Game tweaks
# Force GPU Rendering on 2d Operations
debug.sf.hw=1
#NEW
pm.sleep_mode=1
wifi.supplicant_scan_interval=180
ro.com.google.networklocation=0
ro.kernel.android.checkjni=0
dalvik.vm.execution-mode=int:jit
profiler.force_disable_err_rpt=1
# Increase jpg quality to 100%
ro.media.enc.jpeg.quality=100
persist.sys.use_dithering=0
persist.sys.use_16bpp_alpha=1
persist.sys.NV_FPSLIMIT=60
persist.sys.NV_POWERMODE=1
persist.sys.NV_PROFVER=15
persist.sys.NV_STEREOCTRL=0
persist.sys.NV_STEREOSEPCHG=0
persist.sys.NV_STEREOSEP=20
ro.telephony.call_ring.delay=0
debug.composition.type=c2d
persist.sys.composition.type=c2d
dev.pm.dyn_samplingrate=1
hw3d.force=1
ro.product.gpu.driver=1
hwui.render_dirty_regions=false
persist.sampling_profiler=0
persist.sys.ui.hw=1
ro.config.disable.hw_accel=false
video.accelerate.hw=1
debug.egl.profiler=1
debug.egl.hw=1
ro.vold.umsdirtyratio=20
hwui.disable_vsync=true
persist.service.lgospd.enable=0
persist.service.pcsync.enable=0
touch.pressure.scale=0.001
windowsmgr.max_events_per_sec=200
ro.min_pointer_dur=8
ro.max.fling_velocity=12000
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
#3G tweaks [skip if it causes any performance drop]
ro.ril.hsxpa=2
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=28
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.gprsclass=12
ro.ril.hsupa.category=7
ro.ril.enable.a52=1
ro.ril.set.mtu1472=1
net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.lte=524288,1048576,2097152,5242 88,1048576,2097152
net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,8 7380,1048576
net.tcp.buffersize.hspa=6144,87380,524288,6144,163 84,262144
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.evdo_b=6144,87380,1048576,6144, 87380,1048576
media.stagefright.enable-http=true
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-scan=true
media.stagefright.enable-record=true
#Indicator_Hack
captive_portal_detection_enabled=0
dalvik.vm.dex2oat-filter=interpret-only
dalvik.vm.image-dex2oat-filter=speed

Save it and reboot.

[PROJECT DARK BOOSTER] ABS Tweaks

Introduction

ArkayNine Boost Script is a Tweak that combines many scripts and tweaks in one package which is aimed to improve performance, reduce lags and expand battery life, improve stability, improve sound quality.

This mod will work on any device.

All you need to ensure is that your phone is running android!

It doesn't matter which ROM, which version, which device etc.

It will work from Android 2.3 GingerBread to Android 6.0 Marshmallow

OFFICIAL THREAD-xda link.

Note-clean your init.d folder before proceeding.

Instructions

Download the ABS tweaks zip from below.

Flash in TWRP and reboot.

open terminal emulator app(download from playstore).

Enter the following code:

su
ABS

5.select option 2 from menu.

6.set/turn on the options as shown in screenshots below.

View attachment 3957868

7.close terminal emulator.

Gov-Tuner Project

official thread-link

Download gov tuner.zip from below.

Flash in TWRP and reboot.

open terminal emulator and enter following code

Code:

su

govtuner

The script runs in background and check periodically if the governor was changed, so it update the governor tunables for the new governor in case of changed governor or the tweaks were removed by the system.

choose balanced option(2nd option).

the loop after you selecting a profile isn't a bug. just close the terminal emulator in the x on the top right and it will be over.

Important note

[/SPOILER]

Downloads

prevent running.apk- link

ABS tweaks-link||uninstaller-inside script

gov tuner-link ||uninstaller-link

CREDITS

Vipul Jha(xda) for [PROJECT DARK BOOSTER] ABS Tweaks

Debuffer(xda) for Gov Tuner Project

rovo89 for xposed framework

Me for this guide:)

anyone else i have forgot to mention :oops::confused:

HIT THANKS BUTTON IF I HELPED;)