[For DEV][Build.prop Tweak's]All tweaks

Search This thread

luiseteyo

Senior Member
Oct 24, 2011
2,457
2,220
Madrid
Is just a therory, I did not google anything before I posted that, and for the first tweak it seems that it is something else. While a little google search I found this for the first line:
Code:
# 
# Increase SKIA decode memory capability for progressive jpg file
#
ro.media.dec.jpeg.memcap 	= 20000000
(Source: http://warm-z-twopointtwo-vendor.googlecode.com/svn-history/r21/trunk/incredible/system/build.prop)

Wikipeida says:


For the latter one I was probably right, because I have found this:

I understood some things but not other... What is the final conclussion? Thank u for your information :)

Enviado desde mi GT-I9003 usando Tapatalk
 

jago25_98

Senior Member
Jul 17, 2007
514
39
I don't use the any of the sensors so I'd like to disable them. But do you know the syntax?

Code:
gsm.proximity.enable=false

has worked well for me (check it with Elixar graph), but what is the syntax for the other sensors? Is there a reference somewhere because I can't see it in references here:
http://developer.android.com/reference/android/hardware/Sensor.html
(just to show I have searched)

For reference:
Code:
/sys/bus/i2c/drivers
is usually the location of the drivers.

If you've got any ideas on what I could try let me know and I'll keep trying until I hopefully guess the syntax
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 54
    Tweaks Increase download/upload/3G speeds
    Code:
    ro.ril.hsxpa=2	
    ro.ril.gprsclass=10
    ro.ril.hep=1
    ro.ril.enable.dtm=0
    ro.ril.hsdpa.category=8 (or 10,12,14) Still looking for more of these though.
    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
    
    net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960

    Power Save Tweak
    Code:
    Allows the phone to sleep better
    ro.ril.disable.power.collapse=0
    
    Saves power when phone is sleep
    pm.sleep_mode=1
    
    Allows your wifi to scan less, saving more battery
    wifi.supplicant_scan_interval=150 or 180 (your choice)
    
    Helps Scrolling Responsiveness
    windowsmgr.max_events_per_sec=150
    
    Increase overal touch responsivenss
    debug.performance.tuning=1
    video.accelerate.hw=1

    MEDIA TWEAKS
    Code:
    Makes streaming videos stream faster
    media.stagefright.enable-player=true 
    media.stagefright.enable-meta=true 
    media.stagefright.enable-scan=true
    media.stagefright.enable-http=true
    media.stagefright.enable-record=false
    
    Increases quality of photo and videos
    ro.media.dec.jpeg.memcap=8000000
    ro.media.enc.hprof.vid.bps=8000000
    
    Raises quality of JPEG images
    ro.media.enc.jpeg.quality=90 or 100 (your choice)

    BOOT TWEAKS
    Code:
    Gives your phone no boot animation
    debug.sf.nobootanimation=1

    SYSTEM TWEAKS
    Code:
    Forces your home launcher into memory
    ro.HOME_APP_ADJ=1
    
    Change the Dalvik VM heap size
    dalvik.vm.heapsize=64m #or 48mb
    
    To disable usb debugging popup
    persist.adb.notify=0
    
    To stop the phone from waking up when pressing the volume key
    ro.config.hwfeature_wakeupkey=0
    
    To make the phone ring faster when dialing out
    ro.telephony.call_ring.delay=800
    
    Disable black screen issue after call
    ro.lge.proximity.delay=25
    mot.proximity.delay=25
    
    dalvik.vm.startheapsize = 4м
    
    Screen ppi or font density
    [B]ro.sf.lcd_density=240

    Other Tweaks
    Code:
    mot.proximity.delay=150
    debug.sf.hw=1 #Render UI with GPU
    ro.kernel.android.checkjni=0
    persist.sys.purgeable_assets=1
    8
    i know it is for devs but i want to try it if there is a download link

    btw can you tell me how to flash it

    all hail the king of troll:)
    it has to be changed manually.not a flashable file.
    6
    For collection of scripts and tweaks look here

    send from gt-i9003 using android keyboard
    5
    Nice list. :)

    I think ro.ril.disable.power.collapse should read
    Code:
    ro.ril.disable.power.collapse=0
    because you want the power collapse to happen to save energy. Also, all commands should be lower case. Therefore it should be
    Code:
    debug.performance.tuning=1
    video.accelerate.hw=1
    with 'd' and 'v' instead of 'D' and 'V' at the beginning.

    Further, I use
    Code:
    dalvik.vm.startheapsize=4m
    which in my experience reduces RAM usage by approx. 15 MB on startup.
    2
    PhosgenMod init.d + build.prop

    PhosgenCharger
    Code:
    echo "0,3,5,7,14,15" > /sys/module/lowmemorykiller/parameters/adj; # OOM Grouping
    echo "1536,2048,4096,10240,12800,15360"> /sys/module/lowmemorykiller/parameters/minfree;

    PhosgenCore
    Code:
    if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
      then
        /system/xbin/echo "4096" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
    fi;
    	
    if [ -e /sys/devices/virtual/bdi/179:8/read_ahead_kb ]
      then
        /system/xbin/echo "4096" > /sys/devices/virtual/bdi/179:8/read_ahead_kb;
    fi;
    
    if [ -e /sys/devices/virtual/bdi/default/read_ahead_kb ]
      then
        /system/xbin/echo "4096" > /sys/devices/virtual/bdi/default/read_ahead_kb;
    fi;
    
    if [ -e /sys/module/lowmemorykiller/parameters/adj ]; then
    	echo "0,1,2,4,6,15" > /sys/module/lowmemorykiller/parameters/adj
    fi
    
    if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
    	echo "2560,4096,5632,10240,11776,14848" > /sys/module/lowmemorykiller/parameters/minfree
    fi
    
    if [ -e /proc/sys/vm/swappiness ]; then
    	echo "20" > /proc/sys/vm/swappiness
    fi
    
    if [ -e /proc/sys/vm/vfs_cache_pressure ]; then
    	echo "70" > /proc/sys/vm/vfs_cache_pressure
    fi
    
    if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then
    	echo "3000" > /proc/sys/vm/dirty_expire_centisecs
    fi
    
    if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then
    	echo "450" > /proc/sys/vm/dirty_writeback_centisecs
    fi
    
    if [ -e /proc/sys/vm/dirty_ratio ]; then
    	echo "10" > /proc/sys/vm/dirty_ratio
    fi
    
    if [ -e /proc/sys/vm/dirty_background_ratio ]; then
    	echo "2" > /proc/sys/vm/dirty_background_ratio
    fi
    
    
    
    LOG_FILE=/data/zipalign.log;
    ZIPALIGNDB=/data/zipalign.db;
    
    if [ -e $LOG_FILE ]; then
    	rm $LOG_FILE;
    fi;
    
    if [ ! -f $ZIPALIGNDB ]; then
    	touch $ZIPALIGNDB;
    fi;
    
    echo "Starting FV Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
    
    for DIR in /system/app /data/app; do
    	cd $DIR;
    	for APK in *.apk; do
    		if [ $APK -ot $ZIPALIGNDB ] && [ $(grep "$DIR/$APK" $ZIPALIGNDB|wc -l) -gt 0 ]; then
    			echo "Already checked: $DIR/$APK" | tee -a $LOG_FILE;
    		else
    			ZIPCHECK=`/system/xbin/zipalign -c -v 4 $APK | grep FAILED | wc -l`;
    			if [ $ZIPCHECK == "1" ]; then
    				echo "Now aligning: $DIR/$APK" | tee -a $LOG_FILE;
    				/system/xbin/zipalign -v -f 4 $APK /data/local/$APK;
    				busybox mount -o rw,remount /system;
    				cp -f -p /data/local/$APK $APK;
    				grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB;
    			else
    				echo "Already aligned: $DIR/$APK" | tee -a $LOG_FILE;
    				grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB;
    			fi;
    		fi;
    	done;
    done;
    
    busybox mount -o ro,remount /system;
    touch $ZIPALIGNDB;
    echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
    
    
    MODULES="ipv6"
    
    for i in $MODULES;
    do
        modprobe $i;
    done
    
    sysctl -p /etc/sysctl.conf;
    
    LOOP=`ls -d /sys/block/loop*`;
    blk0=`ls -d /sys/block/mmcblk0`;
    blk1=`ls -d /sys/block/mmcblk1`;
    MMC=`ls -d /sys/block/mmc*`;
    
    for j in $blk0 $blk1; do
    	echo "0" > $j/queue/rotational;
    	echo "4096" > $j/queue/read_ahead_kb;
    done;
    
    for k in $(busybox mount | grep relatime | cut -d " " -f3) ; do
    sync;
    busybox mount -o remount,noatime $k;
    done;
    
    for i in /sys/block/*/queue/scheduler ; do
    echo "noop" > $i;
    done;
    
    for a in $blk0 $blk1 $MMC ; do
    	echo "512" > $a/queue/nr_requests;
    done;
    
    
    for k in $(busybox mount | grep relatime | cut -d " " -f3) ; do
    	sync
    	busybox mount -o remount,noatime $k
    done
    
    
    STL=`ls -d /sys/block/stl*`;
    BML=`ls -d /sys/block/bml*`;
    MMC=`ls -d /sys/block/mmc*`;
    ZRM=`ls -d /sys/block/zram*`;
    MTD=`ls -d /sys/block/mtd*`;
    
    
    for i in $STL $BML $MMC $TFSR; do
    	echo 0 > $i/queue/rotational
    	echo 1 > $i/queue/iosched/low_latency
    	echo 1 > $i/queue/iosched/back_seek_penalty
    	echo 1000000000 > $i/queue/iosched/back_seek_max
    	echo 3 > $i/queue/iosched/slice_idle
    	echo 16 > $i/queue/iosched/quantum
    	echo 1 > $i/queue/iosched/fifo_batch
    	echo sio > $i/queue/scheduler
    done
    
    
    if [ -n ${up_threshold} ];
    	then echo ${up_threshold} > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
    fi
    
    if [ -n ${sampling_rate} ];
    	then echo ${sampling_rate} > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
    fi
    
    if [ -e /sys/module/lowmemorykiller/parameters/adj ]; then
    	echo "0,1,2,4,7,15" > /sys/module/lowmemorykiller/parameters/adj
    fi
    
    if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
    	echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree
    fi
    
    if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then
        echo "3072" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
    fi
    
    
    	echo "deadline" > /sys/block/mmcblk0/queue/scheduler
    	echo "0" > /sys/block/mmcblk0/queue/rotational
    	echo "2048" > /sys/block/mmcblk0/queue/nr_requests
    	echo ${READ_AHEAD_KB} > /sys/block/mmcblk0/queue/read_ahead_kb
    	
    	echo "deadline" > /sys/block/mmcblk1/queue/scheduler
    	echo "0" > /sys/block/mmcblk1/queue/rotational
    	echo "2048" > /sys/block/mmcblk1/queue/nr_requests
    	echo ${READ_AHEAD_KB} > /sys/block/mmcblk1/queue/read_ahead_kb
    
    	for i in \ `find /data -iname "*.db"` do \ sqlite3 
    	
    	$i 'VACUUM;' 
    	
    	done
    
    echo "6144 87380 524288" > /proc/sys/net/ipv4/tcp_wmem
    echo "6144 87380 524288" > /proc/sys/net/ipv4/tcp_rmem
    
    setprop ro.telephony.call_ring.delay 0
    setprop ring.delay 0
    setprop windowsmgr.support_rotation_270 true
    setprop ro.HOME_APP_ADJ 1
    setprop ro.HOME_APP_MEM 2048
    
    echo "500" > /proc/sys/vm/dirty_expire_centisecs
    echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
    
    echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
    echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
    echo "1" > /proc/sys/net/ipv4/tcp_sack;
    echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
    echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
    echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
    echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
    echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
    echo "404480" > /proc/sys/net/core/wmem_max;
    echo "404480" > /proc/sys/net/core/rmem_max;
    echo "256960" > /proc/sys/net/core/rmem_default;
    echo "256960" > /proc/sys/net/core/wmem_default;
    echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
    echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;

    PhosgenKNZO
    Code:
    b="busybox"; _e () { echo "$1" > "$2"; };
    _m () { $b mount -o $mop -t $fs $1 $2 > /dev/nul 2>&1; };
    _t1 () { tune2fs -o $1 $2; }; _t2 () { tune2fs -O $1 $2; };
    _mt () { mount -o rw -t tmpfs tmpfs /data/data/$1; };
    qa="com.aurorasoftworks.quadrant.ui.standard"; 
    qs="com.aurorasoftworks.quadrant.ui.advanced";
    
    
    _e "Smartassv2" /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;
    for i in /sys/block/*/queue/scheduler; do sync; echo "sio" > /$i; done;
    
    
    sd="/sys/devices/virtual/bdi";
    _e "1024" $sd/179:0/read_ahead_kb; _e "1024" $sd/default/read_ahead_kb; 
    if [ -e "$sd/179:16/read_ahead_kb" ]; then _e "1024" $sd/179:16/read_ahead_kb; else _e "1024" $sd/179:17/read_ahead_kb; fi;

    PhosgenLoopy
    Code:
    ###### Loopy Smoothness Tweak for PhosgenMod (Experimental) #######
    
    sleep 3
    renice 18 `pidof kswapd0` # please give credit and thanks to loopy for this line if it works
    
    ##### Set nice levels for smoothness loop BEGIN #####
    ### Let's loop this in the background for a bit
    for i in {1..20}
    do
        sleep 5
    
        ### Phone dialer app ###
        renice -20 `pidof com.android.phone`
    
        ### Launcher apps ###
        renice -20 `pidof com.sec.android.app.twlauncher` # TouchWiz Launcher
        renice -20 `pidof org.adwfreak.launcher` # ADW Launcher Ex
        renice -20 `pidof org.zeam.core` # Zeam launcher
    
        ### System apps ###
        renice -19 `pidof com.android.mms` # Text message app
        renice -19 `pidof com.swype.android.inputmethod` # Swype keyboard
        renice -15 `pidof com.sec.android.app.controlpanel` # Task manager
        renice -15 `pidof com.android.systemui` # Status bar
        renice -9 `pidof com.android.settings` # Settings menu
        renice -9 `pidof com.android.browser` # Browser app
        renice -9 `pidof com.android.vending` # Market app
        renice -20 `pidof com.sec.android.app.camera` # Camera app
        renice -6 `pidof com.sec.android.app.fm` # FM Radio app
        renice -6 `pidof com.google.android.youtube` # YouTube app
        renice -6 `pidof com.google.android.apps.maps` # Maps
        renice -3 `pidof android.process.acore`
        renice -3 `pidof android.process.media`
    
        ### Memory management kernel thread ###
        renice 19 `pidof kswapd0` # please give credit and thanks to loopy for this line if it works
    done

    PhosgenTouch
    Code:
    echo 7035 > /sys/class/touch/switch/set_touchscreen;
    echo 8002 > /sys/class/touch/switch/set_touchscreen;
    echo 11000 > /sys/class/touch/switch/set_touchscreen;
    echo 13060 > /sys/class/touch/switch/set_touchscreen;
    echo 14005 > /sys/class/touch/switch/set_touchscreen;

    PhosgenTune
    Code:
    if [ -e /sys/class/misc/gpu_clock_control/gpu_control ]; then
    	echo "100 200 267" > /sys/class/misc/gpu_clock_control/gpu_control;
    	echo "85% 45% 85% 70%" > /sys/class/misc/gpu_clock_control/gpu_control;
    	#echo "800000 850000 950000" > /sys/devices/virtual/misc/gpu_voltage_control/gpu_control;
    fi;
    if [ -e  /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
    	#echo "1400 1300 1175 1075 975 850 825 825 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table;
    fi;
    
    for i in \
    `busybox find /data -iname "*.db"`; 
    do \
    	/system/xbin/sqlite3 $i 'VACUUM;'; 
    	/system/xbin/sqlite3 $i 'REINDEX;'; 
    done;
    
    if [ -d "/dbdata" ]; then
    	for i in \
    	`busybox find /dbdata -iname "*.db"`; 
    	do \
    		/system/xbin/sqlite3 $i 'VACUUM;'; 
    		/system/xbin/sqlite3 $i 'REINDEX;'; 
    	done;
    fi;
    
    
    if [ -d "/datadata" ]; then
    	for i in \
    	`busybox find /datadata -iname "*.db"`; 
    	do \
    		/system/xbin/sqlite3 $i 'VACUUM;'; 
    		/system/xbin/sqlite3 $i 'REINDEX;'; 
    	done;
    fi;
    
    
    for i in \
    `busybox find /sdcard -iname "*.db"`; 
    do \
    	/system/xbin/sqlite3 $i 'VACUUM;'; 
    	/system/xbin/sqlite3 $i 'REINDEX;'; 
    done;
    
    if [ "`grep 'quadrant.*true' $p`" ]; then
      echo "`date` Enabling Quadrant hack..." >>$LOG
      dd="/data/data"
      qs="com.aurorasoftworks.quadrant.ui.standard"
      qa="com.aurorasoftworks.quadrant.ui.advanced"
      if [ -d "$dd/$qs" ]; then mount -t tmpfs tmpfs $dd/$qs; renice -20 `pidof $qs`; fi
      if [ -d "$dd/$qa" ]; then mount -t tmpfs tmpfs $dd/$qa; renice -20 `pidof $qa`; fi
      mount |grep quadrant >>$LOG
    fi
    
    if [ -e /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq ]; then
    
    		echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
    		if [ "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`" -eq 200000 ]; then
    			echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
    		else 
    			echo "100000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
    		fi;
    		
    		echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq;
    
    		echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
    		echo "75" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
    
    		echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
    		echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
    
    	fi;