#
# Optmzr
#

# Dalvik/ART (base)
dalvik.vm.image-dex2oat-flags=speed
dalvik.vm.image-dex2oat-filter=everything
dalvik.vm.dex2oat-filter=everything
dalvik.vm.usejit=true
dalvik.vm.usejitprofiles=true
dalvik.vm.dexopt.secondary=true
pm.dexopt.first-boot=speed
pm.dexopt.boot-after-ota=speed
pm.dexopt.post-boot=extract
pm.dexopt.install=speed
pm.dexopt.install-fast=speed-profile
pm.dexopt.install-bulk=speed
pm.dexopt.install-bulk-secondary=speed
pm.dexopt.install-bulk-downgraded=speed
pm.dexopt.install-bulk-secondary-downgraded=extract
pm.dexopt.bg-dexopt=speed-profile
pm.dexopt.ab-ota=speed-profile
pm.dexopt.inactive=speed-profile
pm.dexopt.shared=speed
dalvik.vm.dex2oat-resolve-startup-strings=true

# Multitasking
ro.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_enable=true
ro.sys.fw.bservice_age=5000
ro.vendor.qti.sys.fw.bservice_age=5000
ro.sys.fw.bg_apps_limit=128
ro.sys.fw.bservice_limit=128
ro.vendor.qti.sys.fw.bg_apps_limit=128
ro.vendor.qti.sys.fw.bservice_limit=128
ro.config.sdha_apps_bg_max=128
ro.config.max_starting_bg=64

# Random
kernel.random.read_wakeup_threshold=128
kernel.random.write_wakeup_threshold=896

# Image quality
ro.media.enc.jpeg.quality=100

# Volume
ro.config.vc_call_steps=30
ro.config.vc_call_vol_steps=30
ro.config.media_vol_steps=30

# Voice Call Clarity
ro.ril.enable.amr.wideband=1

# Google assistant
ro.opa.eligible_device=true

# Memory
persist.sys.shutdown.mode=hibernate
ro.warmboot.capability=1



#
# Mobile
#

# Signal cheating
persist.sys.oem_smooth=1
persist.vendor.radio.ignore_dom_time=0
persist.vendor.radio.rat_on=combine
persist.data.iwlan.enable=true
persist.vendor.radio.data_ltd_sys_ind=1
persist.vendor.radio.data_con_rprt=1

# ECC call
persist.radio.enhance_ecall=true

# Tethering
net.tethering.noprovisioning=true

# Combined signal
ro.config.combined_signal=true

# SMS
ro.telephony.sms_segment_size=160

# Radio
persist.data.qmi.adb_logmask=0
persist.radio.apm_sim_not_pwdn=1
persist.radio.data_no_toggle=1
persist.radio.no_wait_for_card=1
persist.radio.sib16_support=1
persist.radio.alt_mbn_name=tmo_alt.mbn
persist.radio.fsg_reload_on=1
persist.radio.oem_socket=false
persist.radio.mcfg_enabled=1
persist.qcril_uim_vcc_feature=1

# VoLTE/VoWifi
telephony.lteOnCdmaDevice=1
net.lte.volte_call_capable=1
persist.sys.cust.lte_config=1
persist.data.iwlan.enable=1
persist.lg.data.iwlan.enable=1
persist.ims.volte=1
persist.dbg.ims_volte_enable=1
persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1
persist.data.iwlan=1
persist.data.iwlan.enable=1
persist.data.iwlan.ipsec.ap=1
persist.lg.data.iwlan=1
persist.lg.data.iwlan.ipsec.ap=1
service.qti.ims.enabled=1
persist.volte_enabled_by_hw=1
persist.radio.volte.dan_support=1
persist.radio.rat_on=combine
persist.radio.data_ltd_sys_ind=1
persist.radio.data_con_rprt=1
persist.radio.calls.on.ims=1
persist.radio.csvt.enabled=true
persist.radio.jbims=1
persist.radio.ROTATION_ENABLE=1
persist.radio.VT_ENABLE=1
persist.radio.VT_HYBRID_ENABLE=1
persist.radio.VT_USE_MDM_TIME=1
persist.radio.ignore_ims_wlan=1
ro.lge.radio_gpri=1
ro.lge.amrwb_gpri=1

# 3G/4G
ro.ril.gprsclass=12
ro.ril.hsdpa.category=14
ro.ril.hsupa.category=6
ro.ril.hsxpa=5
ro.ril.enable.dtm=1
ro.ril.enable.a52=1
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.enable.amr.wideband=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=268449905
ro.ril.set.mtu1472=1
ro.ril.fast.dormancy.rule=1
ro.fast.dormancy=1
ro.config.hw_fast_dormancy=0
ro.ril.enable.sdr=1
ro.ril.enable.gea3=1
ro.ril.enable.fd.plmn.prefix=23402,23410,23411
ro.semc.enable.fast_dormancy=false
ro.ril.def.agps.feature=1
ro.ril.def.agps.mode=2
persist.cust.tel.eons=1
persist.radio.add_power_save=1
persist.radio.fill_eons=1
persist.ril.uart.flowctrl=10



#
# Network
#

# Better signal
persist.cust.tel.eons=1
persist.radio.fill_eons=1
ro.config.hw_fast_dormancy=1

# ECC call
persist.radio.enhance_ecall=true

# Combined signal
ro.config.combined_signal=true

# IPv4
persist.telephony.support.ipv4=1
net.ipv4.tcp_rfc1337=1
net.ipv4.tcp_timestamps=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_sack=1
net.ipv4.tcp_fack=1
net.ipv4.tcp_dsack=1
net.ipv4.min_pmtu=68
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_keepalive_time=300
net.ipv4.tcp_keepalive_probes=5
net.ipv4.tcp_keepalive_intvl=15
net.ipv4.ip_default_ttl=65
net.ipv4.tcp_ecn=2
net.ipv4.tcp_reordering=3
net.ipv4.icmp_ignore_bogus_error_responses=1
net.ipv4.tcp_retries1=3
net.ipv4.tcp_retries2=15
net.ipv4.tcp_syn_retries=2
net.ipv4.tcp_synack_retries=2
net.ipv4.xfrm4_gc_thresh=131072
net.ipv4.tcp_max_syn_backlog=4096
net.ipv4.tcp_max_tw_buckets=1440000
net.ipv4.tcp_no_metrics_save=1

# TCP buffers
net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.hspa=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.hspap=4096,87380,1220608,4096,16384,393216
net.tcp.buffersize.hspda=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.hsupa=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.evdo=4096,87380,563200,4096,16384,262144
net.tcp.buffersize.hsdpa=6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.evdo_b=6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.lte=262144,524288,3145728,262144,524288,3145728
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960

# Streaming
media.stagefright.enable-aac=true
media.stagefright.enable-http=true
media.stagefright.enable-meta=true
media.stagefright.enable-player=true
media.stagefright.enable-qcp=true
media.stagefright.enable-record=true
media.stagefright.enable-rtsp=true
media.stagefright.enable-scan=true
media.stagefright.enable-fma2dp=true
media.aac_51_output_enabled=true
persist.mm.enable.prefetch=true
mmp.enable.3g2=true

# Wifi
wifi.supplicant_scan_interval=180
ro.wifi.channels=13

# Bluetooth
ro.qualcomm.bluetooth.pbap=true
ro.qualcomm.bluetooth.ftp=true
ro.qualcomm.bluetooth.nap=true
ro.qualcomm.bluetooth.opp=true
ro.qualcomm.bluetooth.hfp=true
ro.qualcomm.bluetooth.hsp=true
ro.qualcomm.bluetooth.map=true
ro.bluetooth.sap=true
ro.bluetooth.dun=true
persist.bt.enableAptXHD=true
persist.service.btui.use_aptx=1
