[Galaxy S II Android Development] Unexist6969:
Made some init.d scripts and added bunch of build.prop lines(I think I've collected them all now :PP), if you guys like you can dl it here (for latest 801 slim) =P

for me it's feeling damn smooth and keeps my /data clean and fast :D

- build.prop

https://dl.dropboxusercontent.com/s...e2X2i6UmjbAaOsUHlKeoIv99kZ3-H49UN2CzUcBw&dl=1

- init.d (flash in recovery)

https://dl.dropboxusercontent.com/s...dkYk2uRjZXJ85t_c2-aFYiH71858_iw-O06felSw&dl=1

this is what script 1 does (removing all the logsss and disabling debug ;p)

#!/system/bin/sh

#DAYMAR SCRIPT1

#DISABLE DEBUG

su

mount -o remount,rw /

rm /dev/log/main

rm -rf /dev/log

echo "0" > /sys/module/ump/parameters/ump_debug_level

echo "0" > /sys/module/mali/parameters/mali_debug_level

echo "0" > /sys/module/kernel/parameters/initcall_debug

echo "0" > /sys//module/lowmemorykiller/parameters/debug_level

echo "0" > /sys/module/earlysuspend/parameters/debug_mask

echo "0" > /sys/module/alarm/parameters/debug_mask

echo "0" > /sys/module/alarm_dev/parameters/debug_mask

echo "0" > /sys/module/binder/parameters/debug_mask

echo "0" > /sys/module/xt_qtaguid/parameters/debug_mask

#REMOUNT RW

su

mount -o remount,rw /

mount -o remount,rw /system

mount -o remount,rw /data

mount -o remount,rw /cache

#REMOVE SH$T

busybox rm -rf /cache/*

busybox rm -rf /data/adrenaline

busybox rm -rf /data/anr

busybox rm -rf /data/app-asec

busybox rm -rf /data/app-private

busybox rm -rf /data/backup

busybox rm -rf /data/crontab

busybox rm -rf /data/dontpanic

busybox rm -rf /data/drm

busybox rm -rf /data/gps

busybox rm -rf /data/local

busybox rm -rf /data/log

busybox rm -rf /data/lost+found

busybox rm -rf /data/media

busybox rm -rf /data/pxtmpdir

busybox rm -rf /data/radio

busybox rm -rf /data/resource-cache

busybox rm -rf /data/rngd.pid

busybox rm -rf /data/ssh

busybox rm -rf /data/system/uiderrors.txt

busybox rm -rf /data/system/cache

busybox rm -rf /data/system/dropbox

busybox rm -rf /data/tombstones

busybox rm -f /data/.layout_version

busybox rm -f /data/.mac.info

busybox rm -f /data/.psm.info

busybox rm -f /data/dnsmasq-local.conf

busybox rm -f /data/gesture_set.sh

busybox rm -f /data/local.prop

busybox rm -f /data/recovery_cb.log

busybox rm -f /data/zipalign.log

busybox rm -f /data/S50-vacuum-databases.log

busybox rm -f /data/*.log

busybox rm -f /data/dalvik-cache/*.apk

busybox rm -f /data/dalvik-cache/*.tmp

busybox rm -f /data/local/*.apk

busybox rm -f /data/local/tmp/*.apk

busybox rm -f /data/system/dropbox/*.txt

busybox rm -f /data/backup/pending/*.tmp

busybox rm -f /sdcard/LOST.DIR/*

#REMOVE JOURNALISM

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

#REMOUNT;)

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

#SQLITE VACUUM

VAC_LOG_FILE=/data/S50-vacuum-databases.log

# do nothing if less than 5 days

find $VAC_LOG_FILE -type f -mtime +5 -exec rm '{}' \;

if ! test -f $VAC_LOG_FILE; then

touch $VAC_LOG_FILE

busybox mount -o rw,remount /

if [ -e $VAC_LOG_FILE ]; then

rm $VAC_LOG_FILE;

fi;

echo "Starting Sqlite Vacuum $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $VAC_LOG_FILE;

for i in \

`find /data -iname "*.db"`

do \

sqlite3 $i 'VACUUM;';

echo Vacuum $i | tee -a $VAC_LOG_FILE;

done;

for i in \

`find /dbdata -iname "*.db"`

do \

sqlite3 $i 'VACUUM;';

echo Vacuum $i | tee -a $VAC_LOG_FILE;

done;

for i in \

`find /sdcard -iname "*.db"`

do \

sqlite3 $i 'VACUUM;';

echo Vacuum $i | tee -a $VAC_LOG_FILE;

done

echo "Sqlite Vacuum finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $VAC_LOG_FILE;

fi