Saturday, March 4, 2017

Build.prop and defualt.prop File in android

                             please like & Subscribe our youtube channel

         https://www.youtube.com/playlist?list=PLQzJncZC8PUwCTcniu_akzp0N0oDx7l1n







We already know that how we can extract any ROM and how we can customize it because customize ROM improve android ROM performance. In this chapter, we will discuss ROM performance improvement by editing some ROM files like build.prop file, default .prop file and some other customization.


Build.prop file



Basically, build.prop is system or firmware properties file which is located in /system folder. System Directory consists of all necessary information for your ROM specific build.




We are going to edit this file and many custom ROM developers edit these files to free up existing RAM. Editing should be carefully done and once small changes can be harmful to your mobile device. Backup all your data before you make any changes. 

 Fast Reboot
              persist.sys.purgeable_assets=1
 Faster boot
               ro.config.hw_quickpoweron=true
Increasing Video Recording Quality
               ro.media.enc.hprof.vid.bps=8000000
Change Screen Rotate To 270 degree
              windowsmgr.support_rotation_270=true;
 change Heap Size
                dalvik.vm.heapsize=64m
 Render UI With GPU
                debug.sf.hw=1
 Make device much Smoother
               windowsmgr.max_events_per_sec=150
Video Acceleration Enabled And HW debugging.
                video.accelerate.hw=1
                debug.sf.hw=1
                debug.performance.tuning=1
                debug.egl.profiler=1 ( Measure rendering time in adb shell dumpsys gfxinfo)
                debug.egl.hw=1
               debug.composition.type=gpu (Disable hardware overlays)
 Increase Performance
                debug.performance.tuning=1
Disable Sending Usage Data
                ro.config.nocheckin=1
Deeper Sleep/Better battery life
               ro.ril.disable.power.collapse=1
               pm.sleep_mode=1
 Ringing Will Start Immediately
                  ro.telephony.call_ring.delay=0
                  ring.delay=0
 Enable/Disable Error Checking
                  ro.kernel.android.checkjni=0
 change Media Streaming Quality
                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
          15)  Enable/Disable Boot Animation
             debug.sf.nobootanimation=1
 Force To Remain Launcher In Memory
                  ro.HOME_APP_ADJ=1
 Enable/Disable Waking by Volume Buttons
                ro.config.hwfeature_wakeupkey=0
Off The Proximity Quickly After Call
              mot.proximity.delay=25
              ro.lge.proximity.delay=25
Better Signal Tweaks
                  ro.ril.hsxpa=2
                 ro.ril.gprsclass=10
                 ro.ril.hep=1
                ro.ril.enable.dtm=1
                ro.ril.hsdpa.category=10
               ro.ril.enable.a53=1
              ro.ril.enable.3g.prefix=1
              ro.ril.htcmaskw1.bitmask=4294967295
              ro.ril.htcmaskw1=14449
             ro.ril.hsupa.category=5
            persist.cust.tel.eons=1
           ro.config.hw_fast_dormancy=1
 NetSpeed Tweaks
                 net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
                net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
                net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
                net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
               net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960
 Google DNS Tweak
                 net.rmnet0.dns1=8.8.8.8
                 net.rmnet0.dns2=8.8.4.4
                net.dns1=8.8.8.8
                net.dns2=8.8.4.4
Photo And Video Quality
                 ro.media.enc.jpeg.quality=100
                ro.media.dec.jpeg.memcap=8000000
                 ro.media.enc.hprof.vid.bps=8000000
                 ro.media.capture.maxres=8m
                    ro.media.panorama.defres=3264x1840
                    ro.media.panorama.frameres=1280x720
                    ro.camcorder.videoModes=true
                   ro.media.enc.hprof.vid.fps=65
 change Touch Responsiveness
                  debug.performance.tuning=1
                  video.accelerate.hw=1
 Scrolling Responsiveness
                  windowsmgr.max_events_per_sec=500
 Power Save Tweaks
                 pm.sleep_mode=1
                ro.ril.power_collapse=1
               wifi.supplicant_scan_interval=180
               ro.mot.eri.losalert.delay=1000 (could brake tethering)
 Enable/Disables Debug Icon On Status Bar
                 persist.adb.notify=0
Faster Scrolling
                ro.max.fling_velocity=12000
               ro.min.fling_velocity=8000
              windowsmgr.max_events_per_sec=150
              ro.min_pointer_dur=8
 wifi to scan less frequently
               wifi.supplicant_scan_interval=180
 improve battery under no signal
                ro.mot.eri.losalert.delay=1000
 makes apps load faster and frees ram
              dalvik.vm.dexopt-flags=m=v,o=y
 Off The Proximity Quickly After Call
                 ro.lge.proximity.delay=25
              mot.proximity.delay=25 
 Enable/Disables built in error reporting
                  profiler.force_disable_err_rpt=1
                  profiler.force_disable_ulog=1
 3G Network tweaks.
                  ro.ril.hep=0
                 ro.ril.hsxpa=2
                ro.ril.gprsclass=12
                ro.ril.enable.dtm=1
               ro.ril.hsdpa.category=8
              ro.ril.enable.a53=1
              ro.ril.enable.3g.prefix=1
             ro.ril.htcmaskw1.bitmask=4294967295
            ro.ril.htcmaskw1=14449
            ro.ril.hsupa.category=6
 Enable/Disables logcat
                 logcat.live=disable
 Screen recognizes only two fingers.
                  ro.product.multi_touch_enabled=true
                 ro.product.max_num_touch=2
 Support for ipv4 and ipv6.
               persist.telephony.support.ipv6=1
               persist.telephony.support.ipv4=1
 Enable/Disables blackscreen issue after a call.
                ro.lge.proximity.delay=25
               mot.proximity.delay=25
 Better call voice quality.
             ro.ril.enable.amr.wideband=1


 Dalvik Virtual Machine tweaks.
                  dalvik.vm.checkjni=false
                 dalvik.vm.dexopt-data-only=1
                 dalvik.vm.heapstartsize=5m
                dalvik.vm.heapgrowthlimit=48m
               dalvik.vm.heapsize=64m
               dalvik.vm.verify-bytecode=false
              dalvik.vm.execution-mode=int:jit
             dalvik.vm.lockprof.threshold=250
            dalvik.vm.dexopt-flags=m=v,o=y
           dalvik.vm.stack-trace-file=/data/anr/traces.txt
          dalvik.vm.jmiopts=forcecopy
 Enable/Disable notification while adb is active
                  persist.adb.notify=0
Change LCD density
               ro.sf.lcd.density=240
 Key lights stay on while screen is on.
               ro.mot.buttonlight.timeout=0
Enable/Disable notification sound for SD storage insert
                persist.service.mount.playsnd=0
 Enable display dithering
                persist.sys.use_dithering=1
change volume steps in the call.
                 ro.config.vc_call_steps=20
Lock app in memory.
               sys.keep_app_1=com.your.app.app
Enables MTP mode.
                   persist.sys.usb.config=mtp


Smooth UI
                 persist.service.lgospd.enable=0
                persist.service.pcsync.enable=0
Wireless Tweaks
                net.ipv4.ip_no_pmtu_disc=0
               net.ipv4.route.flush=1
               net.ipv4.tcp_ecn=0
               net.ipv4.tcp_fack=1
              net.ipv4.tcp_mem=187000 187000 187000
             net.ipv4.tcp_moderate_rcvbuf=1
            net.ipv4.tcp_no_metrics_save=1
           net.ipv4.tcp_rfc1337=1
           net.ipv4.tcp_rmem=4096 39000 187000
           net.ipv4.tcp_sack=1
          net.ipv4.tcp_timestamps=1
         net.ipv4.tcp_window_scaling=1
         net.ipv4.tcp_wmem=4096 39000 18700
        wifi.supplicant_scan_interval=180
Change android device name and version
               ro.build.display.id=Your ROM name
              ro.build.version.release=4.4.2 (Android version)


Defalt.prop


Default.prop file is also specified android ROM properties and it is located in init folder both boot.img as well as recovery.img file. This also consists of all necessary information for your ROM specific build.
ro.secure=0 it means adbd running as root by default. ro.debuggable=1 and service.adb.root=1 will allow you to run adbd as root via the ADB root command.


Once you are able to run ADB as root via ADB root, you will be able to remount the /system/ directory as writable and can install anything which you want.



when we open this default.prop file we get as


Root/Unroot ROM

This line show either a device is rooted or not 1 indicate the device is unrooted and 0 rooted.
ro.secure=1( 1 unroot,0 root)

USB Enable/Disable

This line indicated that device is USB enable by default or not. 0 indicate the device by default USB debugging and 1 not.
ro.debuggable=0

Storage

persist.sys.usb.config=mass_storage

Adb enable/disable

persist.service.adb.enable=1( 1 enable, o desable ).

No comments:

Post a Comment