Build Props Tweaks

Search This thread

matkali

Senior Member
Build Props Tweaks [For both rooting method (System & Systemless)]

Code:
I am NOT responsible for bricked devices, destroyed SD cards or any
damage that may happen to your device.
We need to add this code to the end of file "/system/build.prop"
I will add complete information in the future about these codes!

I try these in Lineage OS 17.1 and give good results! :D
To begging these tweaks:

1- Enable adb from developer options.
2- In recovery mode and mount System partition and connect your USB to your computer!
3- Open your computer terminal and type this (to pull(download) the file "/system/build.prop" to your Desktop):

adb pull /system/build.prop ~/Desktop/build.prop

4- Now come to your Desktop and first take a backup from this file then open the file "build.prop" with text editor and add all below codes to the end of file "build.prop" then save it! (don't try to edit other lines!)

Code:
#----------------------------------
#             Start
#----------------------------------

# Audio enhancer

persist.audio.fluence.mode=endfire
persist.audio.vr.enable=true
persist.audio.handset.mic=digital
af.resampler.quality=255
mpq.audio.decode=true

#----------------------------------

# Call delay

ro.telephony.call_ring.delay=800


#----------------------------------

# Video acceleration enabled

video.accelerate.hw=1

#----------------------------------

# Wifi scaning rate [every 60 --> 1 scan / min]

wifi.supplicant_scan_interval=180

#----------------------------------

# Deeper sleep/better battery life [for extrimmly power save] [kills all background apps]

ro.ril.disable.power.collapse=1
# pm.sleep_mode=1

#----------------------------------

# Improves audio and video recording quality

ro.media.enc.hprof.vid.fps=65
ro.media.enc.hprof.vid.bps=8000000

ro.media.capture.maxres=8m
ro.camcorder.videoModes=true


#----------------------------------

# Picture Quality Enhancer

ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000

#----------------------------------

# Disable Boot Animation [for Enable set 0]

debug.sf.nobootanimation=1

#----------------------------------

# Disable Camera Sound

ro.camera.sound.forced=0

#----------------------------------

# Better Scrolling

ro.min_pointer_dur=8
ro.max.fling_velocity=12000
windowsmgr.max_events_per_sec=120


#----------------------------------

# Disable strict mode checking

persist.android.strictmode=0

#----------------------------------

# Remain launcher in memory
ro.HOME_APP_ADJ=1

#----------------------------------

# Disable usb debugging popup in notification

# persist.adb.notify=0

#----------------------------------

# Proximeter delays

ro.lge.proximity.delay=25
mot.proximity.delay=10

#----------------------------------

# media enhancer [codecs]

ro.media.dec.aud.flac.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.dec.vid.avi.enabled=1
ro.media.dec.vid.wmv.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.dec.aud.mp3.enabled=1
ro.media.dec.vid.mp4.enabled=1
ro.media.dec.aud.flac.enabled=1
ro.media.dec.vid.H.264.enabled=1
ro.media.enc.aud.flac.enabled=1
ro.media.enc.vid.H.264.enabled=1
ro.media.enc.aud.wma.enabled=1
ro.media.enc.vid.wmv.enabled=1
ro.media.enc.aud.mp3.enabled=1
ro.media.enc.vid.mp4.enabled=1


#----------------------------------

# Improved performance

debug.performance.tuning=1

#----------------------------------

# DNS Servers [Quad9 & Cloudflare]

net.dns1=9.9.9.9
net.dns2=149.112.112.112
net.dns3=1.1.1.1
net.dns4=1.0.0.1

net.wlan0.dns1=9.9.9.9
net.wlan0.dns2=149.112.112.112
net.wlan0.dns3=1.1.1.1
net.wlan0.dns4=1.0.0.1

net.eth0.dns1=9.9.9.9
net.eth0.dns2=149.112.112.112
net.eth0.dns3=1.1.1.1
net.eth0.dns4=1.0.0.1

net.wcdma.dns1=9.9.9.9
net.wcdma.dns2=149.112.112.112
net.wcdma.dns3=1.1.1.1
net.wcdma.dns4=1.0.0.1

net.hspa.dns1=9.9.9.9
net.hspa.dns2=149.112.112.112
net.hspa.dns3=1.1.1.1
net.hspa.dns4=1.0.0.1

net.lte.dns1=9.9.9.9
net.lte.dns2=149.112.112.112
net.lte.dns3=1.1.1.1
net.lte.dns4=1.0.0.1

net.ltea.dns1=9.9.9.9
net.ltea.dns2=149.112.112.112
net.ltea.dns3=1.1.1.1
net.ltea.dns4=1.0.0.1

#----------------------------------

# Better Network Signals

persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1

#----------------------------------

# Better call voice quality

ro.ril.enable.amr.wideband=1

#----------------------------------

# Faster streaming videos

media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-rtsp=true
media.stagefright.enable-record=false


#----------------------------------

# Disables built in error reporting

profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1

#----------------------------------

# Disables kernel error checking

ro.kernel.android.checkjni=0
ro.kernel.checkjni=0

#----------------------------------

# Disable Logcat

logcat.live=disable

#----------------------------------

# Disables sending of usage data

ro.config.nocheckin=1

#----------------------------------

# Boost Booting Speed & hibernate mode

ro.config.hw_quickpoweron=true
persist.sys.shutdown.mode=hibernate

#----------------------------------

# Very fast reboot

persist.sys.purgeable_assets=1

#----------------------------------

# Disables locating

ro.com.google.locationfeatures=0
ro.com.google.networklocation=0

#----------------------------------

# Net speed enhancer[tcp buffersize]

net.tcp.buffersize.default=6144,87380,110208,6144,16384,110208
net.tcp.buffersize.edge=6144,26280,35040,6144,16384,35040
net.tcp.buffersize.evdo_b=6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.gprs=6144,8760,11680,6144,8760,11680
net.tcp.buffersize.hsdpa=6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.hspa=6144,87380,262144,6144,16384,262144
net.tcp.buffersize.lte=262144,524288,3145728,262144,524288,3145728
net.tcp.buffersize.umts=6144,87380,110208,6144,16384,110208
net.tcp.buffersize.wifi=262144,524288,1048576,262144,524288,1048576

#----------------------------------

# For Sensor Sleep Control
ro.ril.sensor.sleep.control=1

#----------------------------------

# DHA tunning
ro.config.dha_tunnable=1

#----------------------------------

# Faster Boot-Animation FPS
# boot.fps=20

#----------------------------------
#              END
#----------------------------------

5- Now we must push(upload) new file "build.prop" by typing this command in your terminal:

adb push ~/Desktop/build.prop /system/build.prop

:);)

If you have a problem with these tweaks use backup file to restore your first file "/system/build.prop"

If you have any suggestion to improve this thread please tell me!
 
Last edited:
You know several of these properties are long deprecated and can be removed outright. No point in keeping them circulating as they do on every build.prop tweaks thread.

There is also the possibility, though maybe not the case with Samsung devices since I've never owned one to know first hand, that some of these properties are read from separate build.prop files. You'll have the usual prop under /system but you may also have one under /vendor, where some props like audio/gfx related, build device or patch dates, among others won't have an effect unless it is also present in the /vendor prop file. Otherwise you'll see the props "loaded" when you run 'getprop' in terminal, but whether the system actually read and set them in time in the appropriate boot stage is another issue.

Again, not certain how Samsung has these setup, there may be additional prop files that are pulled during boot like /odm. At any case, usually your best bet is not to edit the one build.prop file itself but rather add the configured properties you want to edit as a boot script using 'setprop', like under init.d or in an existing init file, if allowed, because as I understand depending on your device's init sequence those are loaded before it pulls the props from their respective mounts which would not guarantee them not being overwritten soon after, and you could remove conflicting props if it's really an issue, but it would at least allow an easy recovery without touching the prop files themselves.
 

ant24

Member
Nov 16, 2020
40
0
Jakarta, Indonesia
Dear Sir @matkali, I just want to know the proper permissions for this build.prop file before and after the editing. And - Why there are differences permissions according to differences roms and android versions ?
 

matkali

Senior Member
Dear Sir @matkali, I just want to know the proper permissions for this build.prop file before and after the editing. And - Why there are differences permissions according to differences roms and android versions ?
You can check this file permissions by this command:

Code:
ls -l /system/build.prop

This permissions applied from rom's builder security policy!
 
  • Like
Reactions: ant24

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Build Props Tweaks [For both rooting method (System & Systemless)]

    Code:
    I am NOT responsible for bricked devices, destroyed SD cards or any
    damage that may happen to your device.
    We need to add this code to the end of file "/system/build.prop"
    I will add complete information in the future about these codes!

    I try these in Lineage OS 17.1 and give good results! :D
    To begging these tweaks:

    1- Enable adb from developer options.
    2- In recovery mode and mount System partition and connect your USB to your computer!
    3- Open your computer terminal and type this (to pull(download) the file "/system/build.prop" to your Desktop):

    adb pull /system/build.prop ~/Desktop/build.prop

    4- Now come to your Desktop and first take a backup from this file then open the file "build.prop" with text editor and add all below codes to the end of file "build.prop" then save it! (don't try to edit other lines!)

    Code:
    #----------------------------------
    #             Start
    #----------------------------------
    
    # Audio enhancer
    
    persist.audio.fluence.mode=endfire
    persist.audio.vr.enable=true
    persist.audio.handset.mic=digital
    af.resampler.quality=255
    mpq.audio.decode=true
    
    #----------------------------------
    
    # Call delay
    
    ro.telephony.call_ring.delay=800
    
    
    #----------------------------------
    
    # Video acceleration enabled
    
    video.accelerate.hw=1
    
    #----------------------------------
    
    # Wifi scaning rate [every 60 --> 1 scan / min]
    
    wifi.supplicant_scan_interval=180
    
    #----------------------------------
    
    # Deeper sleep/better battery life [for extrimmly power save] [kills all background apps]
    
    ro.ril.disable.power.collapse=1
    # pm.sleep_mode=1
    
    #----------------------------------
    
    # Improves audio and video recording quality
    
    ro.media.enc.hprof.vid.fps=65
    ro.media.enc.hprof.vid.bps=8000000
    
    ro.media.capture.maxres=8m
    ro.camcorder.videoModes=true
    
    
    #----------------------------------
    
    # Picture Quality Enhancer
    
    ro.media.enc.jpeg.quality=100
    ro.media.dec.jpeg.memcap=8000000
    
    #----------------------------------
    
    # Disable Boot Animation [for Enable set 0]
    
    debug.sf.nobootanimation=1
    
    #----------------------------------
    
    # Disable Camera Sound
    
    ro.camera.sound.forced=0
    
    #----------------------------------
    
    # Better Scrolling
    
    ro.min_pointer_dur=8
    ro.max.fling_velocity=12000
    windowsmgr.max_events_per_sec=120
    
    
    #----------------------------------
    
    # Disable strict mode checking
    
    persist.android.strictmode=0
    
    #----------------------------------
    
    # Remain launcher in memory
    ro.HOME_APP_ADJ=1
    
    #----------------------------------
    
    # Disable usb debugging popup in notification
    
    # persist.adb.notify=0
    
    #----------------------------------
    
    # Proximeter delays
    
    ro.lge.proximity.delay=25
    mot.proximity.delay=10
    
    #----------------------------------
    
    # media enhancer [codecs]
    
    ro.media.dec.aud.flac.enabled=1
    ro.media.dec.aud.wma.enabled=1
    ro.media.dec.vid.avi.enabled=1
    ro.media.dec.vid.wmv.enabled=1
    ro.media.dec.aud.wma.enabled=1
    ro.media.dec.aud.mp3.enabled=1
    ro.media.dec.vid.mp4.enabled=1
    ro.media.dec.aud.flac.enabled=1
    ro.media.dec.vid.H.264.enabled=1
    ro.media.enc.aud.flac.enabled=1
    ro.media.enc.vid.H.264.enabled=1
    ro.media.enc.aud.wma.enabled=1
    ro.media.enc.vid.wmv.enabled=1
    ro.media.enc.aud.mp3.enabled=1
    ro.media.enc.vid.mp4.enabled=1
    
    
    #----------------------------------
    
    # Improved performance
    
    debug.performance.tuning=1
    
    #----------------------------------
    
    # DNS Servers [Quad9 & Cloudflare]
    
    net.dns1=9.9.9.9
    net.dns2=149.112.112.112
    net.dns3=1.1.1.1
    net.dns4=1.0.0.1
    
    net.wlan0.dns1=9.9.9.9
    net.wlan0.dns2=149.112.112.112
    net.wlan0.dns3=1.1.1.1
    net.wlan0.dns4=1.0.0.1
    
    net.eth0.dns1=9.9.9.9
    net.eth0.dns2=149.112.112.112
    net.eth0.dns3=1.1.1.1
    net.eth0.dns4=1.0.0.1
    
    net.wcdma.dns1=9.9.9.9
    net.wcdma.dns2=149.112.112.112
    net.wcdma.dns3=1.1.1.1
    net.wcdma.dns4=1.0.0.1
    
    net.hspa.dns1=9.9.9.9
    net.hspa.dns2=149.112.112.112
    net.hspa.dns3=1.1.1.1
    net.hspa.dns4=1.0.0.1
    
    net.lte.dns1=9.9.9.9
    net.lte.dns2=149.112.112.112
    net.lte.dns3=1.1.1.1
    net.lte.dns4=1.0.0.1
    
    net.ltea.dns1=9.9.9.9
    net.ltea.dns2=149.112.112.112
    net.ltea.dns3=1.1.1.1
    net.ltea.dns4=1.0.0.1
    
    #----------------------------------
    
    # Better Network Signals
    
    persist.cust.tel.eons=1
    ro.config.hw_fast_dormancy=1
    
    #----------------------------------
    
    # Better call voice quality
    
    ro.ril.enable.amr.wideband=1
    
    #----------------------------------
    
    # Faster streaming videos
    
    media.stagefright.enable-player=true
    media.stagefright.enable-meta=true
    media.stagefright.enable-scan=true
    media.stagefright.enable-http=true
    media.stagefright.enable-rtsp=true
    media.stagefright.enable-record=false
    
    
    #----------------------------------
    
    # Disables built in error reporting
    
    profiler.force_disable_err_rpt=1
    profiler.force_disable_ulog=1
    
    #----------------------------------
    
    # Disables kernel error checking
    
    ro.kernel.android.checkjni=0
    ro.kernel.checkjni=0
    
    #----------------------------------
    
    # Disable Logcat
    
    logcat.live=disable
    
    #----------------------------------
    
    # Disables sending of usage data
    
    ro.config.nocheckin=1
    
    #----------------------------------
    
    # Boost Booting Speed & hibernate mode
    
    ro.config.hw_quickpoweron=true
    persist.sys.shutdown.mode=hibernate
    
    #----------------------------------
    
    # Very fast reboot
    
    persist.sys.purgeable_assets=1
    
    #----------------------------------
    
    # Disables locating
    
    ro.com.google.locationfeatures=0
    ro.com.google.networklocation=0
    
    #----------------------------------
    
    # Net speed enhancer[tcp buffersize]
    
    net.tcp.buffersize.default=6144,87380,110208,6144,16384,110208
    net.tcp.buffersize.edge=6144,26280,35040,6144,16384,35040
    net.tcp.buffersize.evdo_b=6144,262144,1048576,6144,262144,1048576
    net.tcp.buffersize.gprs=6144,8760,11680,6144,8760,11680
    net.tcp.buffersize.hsdpa=6144,262144,1048576,6144,262144,1048576
    net.tcp.buffersize.hspa=6144,87380,262144,6144,16384,262144
    net.tcp.buffersize.lte=262144,524288,3145728,262144,524288,3145728
    net.tcp.buffersize.umts=6144,87380,110208,6144,16384,110208
    net.tcp.buffersize.wifi=262144,524288,1048576,262144,524288,1048576
    
    #----------------------------------
    
    # For Sensor Sleep Control
    ro.ril.sensor.sleep.control=1
    
    #----------------------------------
    
    # DHA tunning
    ro.config.dha_tunnable=1
    
    #----------------------------------
    
    # Faster Boot-Animation FPS
    # boot.fps=20
    
    #----------------------------------
    #              END
    #----------------------------------

    5- Now we must push(upload) new file "build.prop" by typing this command in your terminal:

    adb push ~/Desktop/build.prop /system/build.prop

    :);)

    If you have a problem with these tweaks use backup file to restore your first file "/system/build.prop"

    If you have any suggestion to improve this thread please tell me!
    2
    Last update 2021/4/4
    2
    You know several of these properties are long deprecated and can be removed outright. No point in keeping them circulating as they do on every build.prop tweaks thread.

    There is also the possibility, though maybe not the case with Samsung devices since I've never owned one to know first hand, that some of these properties are read from separate build.prop files. You'll have the usual prop under /system but you may also have one under /vendor, where some props like audio/gfx related, build device or patch dates, among others won't have an effect unless it is also present in the /vendor prop file. Otherwise you'll see the props "loaded" when you run 'getprop' in terminal, but whether the system actually read and set them in time in the appropriate boot stage is another issue.

    Again, not certain how Samsung has these setup, there may be additional prop files that are pulled during boot like /odm. At any case, usually your best bet is not to edit the one build.prop file itself but rather add the configured properties you want to edit as a boot script using 'setprop', like under init.d or in an existing init file, if allowed, because as I understand depending on your device's init sequence those are loaded before it pulls the props from their respective mounts which would not guarantee them not being overwritten soon after, and you could remove conflicting props if it's really an issue, but it would at least allow an easy recovery without touching the prop files themselves.
    1
    Dear Sir @matkali, I just want to know the proper permissions for this build.prop file before and after the editing. And - Why there are differences permissions according to differences roms and android versions ?
    You can check this file permissions by this command:

    Code:
    ls -l /system/build.prop

    This permissions applied from rom's builder security policy!