[Android Software Development] digyvijaykumar123:
TWEAKING&MODIFICATION​

BUILD.PROP TWEAKS

HOW TO ADD:-Open Build.prop with Notepad++ and copy and paste these tweaks lines and save it.

Force launcher into memory

ro.HOME_APP_ADJ=1

Raise JPG quality to 100%

ro.media.enc.jpeg.quality=100

VM Heapsize; higher the RAM, higher the hp can be.

dalvik.vm.heapsize=48m

Render UI with GPU

debug.sf.hw=1

Decrease dialing out delay

ro.telephony.call_ring.delay=0

Helps scrolling responsiveness

windowsmgr.max_events_per_sec=150

Save battery

wifi.supplicant_scan_interval=180
pm.sleep_mode=1
ro.ril.disable.power.collapse=0

Disable debugging notify icon on statusbar

persist.adb.notify=0

Increase overall touch responsiveness

debug.performance.tuning=1
video.accelerate.hw=1

Raise photo and video recording quality

ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000

Signal (3G) 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

Net speed tweaks

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

Disable blackscreen issue after a call

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

Fix some application issues

ro.kernel.android.checkjni=0

Phone will not wake up from hitting the volume rocker

ro.config.hwfeature_wakeupkey=0

Force button lights on when screen is on

ro.mot.buttonlight.timeout=0

Disable boot animation for faster boot

debug.sf.nobootanimation=1

Miscellaneous flags

ro.config.hw_menu_unlockscreen=false
persist.sys.use_dithering=0
persist.sys.purgeable_assets=1
dalvik.vm.dexopt-flags=m=y
ro.mot.eri.losalert.delay=1000

Init.d TWEAKS

HOW TO ADD:-

-->>For adding init.d tweaks you must add init.d support from kitchen by using option "14" then you will see a new folder will be created under system/etc/"init.d"

-->>Now open a empty file with notepad++ and add- " #!/system/bin/sh " at top and then add below lines then save it with name as you wish.Make separate file for each tweak.

[*]Strict minfree handler tweak

echo "2048,3072,6144,15360,17920,20480" > /sys/module/lowmemorykiller/parameters/minfree

[*]Internet speed tweaks

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;

[*]Vm management tweaks

echo "4096" > /proc/sys/vm/min_free_kbytes
echo "0" > /proc/sys/vm/oom_kill_allocating_task;
echo "0" > /proc/sys/vm/panic_on_oom;
echo "0" > /proc/sys/vm/laptop_mode;
echo "0" > /proc/sys/vm/swappiness
echo "50" > /proc/sys/vm/vfs_cache_pressure
echo "90" > /proc/sys/vm/dirty_ratio
echo "70" > /proc/sys/vm/dirty_background_ratio

[*]misc kernel tweaks

echo "8" > /proc/sys/vm/page-cluster;
echo "64000" > /proc/sys/kernel/msgmni;
echo "64000" > /proc/sys/kernel/msgmax;
echo "10" > /proc/sys/fs/lease-break-time;
echo "500,512000,64,2048" > /proc/sys/kernel/sem;

[*]Battery tweaks

echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

[*]EXT4 tweaks (greatly increase I/O)

(needs /system, /cache, /data partitions formatted to EXT4)

tune2fs -o journal_data_writeback /block/path/to/system
tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data

[*]Perfect mount options

busybox mount -o remount,noatime,noauto_da_alloc,nodiratime,barrier=0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /cache

[*]Flags blocks as non-rotational and increases cache size

LOOP=`ls -d /sys/block/loop*`;
RAM=`ls -d /sys/block/ram*`;
MMC=`ls -d /sys/block/mmc*`;
for j in $LOOP $RAM
do
echo "0" > $j/queue/rotational;
echo "2048" > $j/queue/read_ahead_kb;
done

[*]MicroSD card speed tweak

echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

[*]Defrags database files

for i in \
`find /data -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
done

[*]Remove logger

rm /dev/log/main

[*]Ondemand governor tweaks

SAMPLING_RATE=$(busybox expr `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency` \* 750 / 1000)
echo 95 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

[*]Auto change governor and I/O Scheduler

echo "vr" > /sys/block/mmcblk0/queue/scheduler
or
echo "sio" > /sys/block/mmcblk0/queue/scheduler

[*]Governor (Best: Minmax > SavagedZen > Smoothass > Smartass > Interactive) - needs kernel with these

echo "governor-name-here" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

[*] Disable normalize sleeper

mount -t debugfs none /sys/kernel/debug
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features

GPS.conf TWEAKS

How To:-Create or edit your /system/etc/gps.conf with a Notepad++.

Benefit:-For improving GPS lock time and signal.

-->>SE supl for A-GPS (better than Nokia's or Google's)

SUPL_HOST=supl.sonyericsson.com
SUPL_PORT=7275

Or DOWNLOAD this patched gps.config

APN TWEAKS

-->>apns-conf.xml located at system/etc/"apns-conf.xml"

-->>Edit apns-conf.xml with notepad++ to add desired apns.

-->>Use CyanogenMOD's APN list file - it's one of the most complete.Download from google.

-->>You can use Mine one too- Downlaod

ADS BLOCK TWEAK

(Lots of developers are supported Through it so please think twice before adding it.)

-->>You can use mine hosts file.Download

-->>You can refer these url for getting file content-

http://www.mvps.org/winhelp2002/hosts.txt

http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts

-->>hosts file are located to system/etc/"hosts"

USE LATEST SUPERUSER APP AND SU BINARY

Downlaod From here

USE PORTED APPS IN YOUR ROM

HERE IS LINK OF HUGE COLLECTION OF PORTED APPS:-CLICK

How to Implemant Ported Apps?

->Download it and open its zip.

->Now open system folder in zip and drag and drop all files to port rom means copy all system folder contents only to port system folder.

More things will be added soon.