[Galaxy S Advance I9070 Original Android Developmen] Adi_Pat:
FAQ- (READ this well before asking me anything!)

1] I am not responsible for any hard/damage caused. You are choosing to make these modifications at your own risk!

2] Do not use any third party init.d scripts!

3] Configurable Tweaks- You can choose to enable/disable some of my Kernel implementations.

EASIER WAY TO TWEAK! READ THIS !!

OR

[*] Sound Boost-

By enabling sound boost, you can get a considerable improvement in the overall headset volume output.

Connect your headphones/earphones, then enable it with the below command.

echo "1" > /sys/kernel/sound_control/sound_boost
[B]To Disable, echo "0" .[/B]

[*] Touch Boost Feature-

Touchboost feature , when enabled boosts the CPU speed on touch input.

So, whenever you touch the screen or are scrolling through, the CPU speed will get boosted(locked) to a set frequency.

This could possibly improve the gaming performance.

echo "1" > /sys/kernel/touchboost/enable
[B]To Disable, echo "0" .[/B]

After enabling it. You can tweak some more stuff.

Boost Frequency

: Change the frequency of CPU boost. Default is 800Mhz.

echo "1000" > /sys/kernel/touchboost/freq_boost
[B]Above command sets it to 1Ghz boost. You can try 200, 400, 800 which are the supported values.[/B]

Boost Timeout

Time to keep CPU Boosted. Whenever the timeout ends, the CPU will be restored back to normal. Default is 0.

Max supported is 10 seconds. To change the value.

echo "3000" > /sys/kernel/touchboost/timeout
[B]Above command sets it to 1 seconds. Value is in milli seconds, 1000 milliseconds = 1 second.[/B]

[*] Enable Logger (Logcat)

Logger is disabled by default to improve performance.

However, app debugging won't work. Even the logcat command won't work.

insmod /lib/modules/logger.ko
[B]To enable Android logger.[/B]

rmmod logger.ko
[B]To disable Android logger.[/B]

[*] Fsync On/Off

Fsyncs are

enabled

by default in my Kernel for safety purposes.

You can choose to disable it-

Effects of disabling Fsyncs:

Pros:

When Fsyncs are disabled, the Filesystem I/O operations are reduced. This could result in a possible increase in I/O benchmarks.

Other advantages could be increase in device responsiveness,performance and battery improvements since the disk I/O is reduced.

Cons:

It can cause filesystem corruption if there is a system freeze. Could have other side effects too.

echo "0" > /sys/class/misc/fsynccontrol/fsync_enabled ("1" to enable, default is enabled)

[*] Charger Current Control-

You can increase the charger input current for fast charge.

The default for USB is 500mA and AC Charger is 600mA.

Max supported value is 900mA for safety!

You can try values between 300-900mA.

Example-

echo "700" > /sys/class/misc/charge_control/usb_current
echo "700" > /sys/class/misc/charge_control/ac_current

[*] Mali L2 Cache Max Reads-

Default: 28KB

You can try 48.

-> You can try other values.

Example-

echo xx > /sys/module/mali/parameters/mali_l2_max_reads

[*] TCP Congestion Avoidance-

You can now change the TCP Congestion Avoidance Algorithm used in the Kernel as per the one which works best for you!

Personally, I prefer using westwood as I get better speeds with it. But you are free to try others too.

Default is cubic.

Other supported ones in my Kernel are westwood, veno, vegas, illinios.

You could read more about it here.

Example-

echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control

Choose the options and configs that work best for you!

Settings get resetted on reboot.

For permanent settings, add the commands to a text file and push them to /system/etc/init.d .

This will preserve the settings every time you reboot.

[*] INSTRUCTIONS (READ THIS CAREFULLY! AND FLASH! )

-> Download the zip from Downloads Section (rc-4 and above)

-> Extract it, you will find two files.

-> I9070_CWM_FLASHABLE_SIRI_KERNEL_rc-XX.zip (This zip is a CWM/TWRP Flashable zip)

-> I9070_SIRI_KERNEL_rc-XX.bin.md5 (This is flashable via dd method or frapetis app)

Method 1: (Flash via Recovery)

rc-4 Onwards-

-> Make sure you have CWM or TWRP Installed, if no, then install the recovery.

-> Place zip in sdcard

-> Install zip via CWM Recovery

-> Enjoy!

Method 2:

Versions Before rc-4.

-> Download Kernel (.bin.md5)

-> Place it in your Internal sdcard.

-> Open terminal emulator or ADB Shell.

-> Run EXACTLY the commands given below.

-> Wrong command will brick, so be careful.

$ su
# dd if=/sdcard/I9070_SIRI_Kernel-rc-3.bin.md5 of=/dev/block/mmcblk0p15
# reboot

Method 3:

YOU CAN ALSO USE THIS EXCELLENT APP TO FLASH YOUR KERNELS! :D

Enjoy tweaking your device! :)