[Galaxy S I9000 Android Development] RyanZA:
[size=+2]This version is now deprecated in favor of the 2.0 APK version. Please see this link: http://xdaforums.com/showthread.php?t=784691[/size]

This version is not recommended for use any longer.

Details about what this fix does:

Creates a VIRTUAL EXT2 filesystem inside the stock RFS filesystem on the internal SD card, with a 4KB block size. This means that this lag fix creates a buffer between the real filesystem and the android system. This buffer should reduce the amount of disk I/O required for all operations by utilizing EXT2 buffering, as well as not writing file access times to disk, etc.

Folders that are currently supported:

/data/data

/data/system

/data/dalvik-cache

/data/app

/data/app-private as a symlink to /data/app/app-private

/dbdata/databases is not supported. It appears to be ROM backed, and can cause problems if overwritten.

Benefits over version 1

1.5GB of application data available, with no data loss.

e2fsck of the EXT2 partition on each boot.

Correct busybox version included! YES!

/app and /app-private directory included in the fix for faster application installs.

/dbdata/databases included in the fix, expected to give a big performance boost for apps that use it.

Mounts instead of symlinks for extra performance as OS does less work (about 100 or so more quadrant).

Benefits over other lag fixes

Open source, with full comments and ease of editing.

Works on any and all firmware versions, including any yet unreleased froyo versions (that don't change file structure).

Credits

Big thanks to mimocan for putting us all on the right track in how to sort out lag problems!

Big thanks to ykk_five for showing us all how well loopback filesystem mounting works!

Big thanks to cyanogen mod for e2fsck

Requirements for One Click Lag Fix 2.0

Rooted phone - http://www.addictivetips.com/mobile...t-samsung-galaxy-s-i9000-with-a-single-click/

Windows computer with SGS Drivers (Samsung Kies), or the ability to read through the batch file and run it yourself.

(Beta Release) The ability to reflash your device if something goes wrong.

No other lag fix installed. If you installed One Click Lag Fix 1.0, then use the uninstall function which came with that lag fix before running this lag fix. (Untested but assumed to be working, please help out here.)

1.5GB of freespace on Internal SD Card for swap files while the fix is working (/sdcard).

"Internal phone storage" in Settings->SD Card must read greater than 500mb (0.5GB) of free space.

How to run One Click Lag Fix 2.0

Place your phone into USB debugging mode: Settings->Applications->Development

Attach your device to your computer. :rolleyes: Do not mount the drives.

Download the attached ZIP file.

Unzip to a folder of your choice.

Double click "lagfixme.bat".

Don't double click "unlagfixme.bat". :rolleyes:

Wait for it to complete.

You will need your phone to be unlocked when it runs the script, so that you can accept the permissions request that will appear on your device.

How to remove One Click Lag Fix 2.0

Double click "unlagfixme.bat"

Wait for it to complete.

Known Issues For All Versions

Some custom firmwares use up all available space in /system. This fix requires some libraries to be placed in /system/lib. These libraries are used to create the filesystem properly, and to check it for errors on every boot.

If your firmware does not have the available space (around 1mb) in /system, do not use this fix! Your phone will not boot and will have to be restored from backup / reflashed.

Current known firmwares with this issue: None yet. Please provide the firmware version+mods if you encounter this issue. It will show up as an out of space error in the log, under 'Copying libraries'.

Known Issues 2-1, 2-2

Paid apps from the market have issues.

Google maps and other pre-installed ROM-backed applications have issues.

2-3 Changes from 2-2

/dbdata has been removed. This fixes maps issues.

/app-private is now a symlink to /app/app-private. This fixes paid apps issues.

Alternate installation methods for similar fixes

Tayutama has made an update.zip version that is easy to install - http://xdaforums.com/showpost.php?p=7632258&postcount=208

Chainfire has a .NET version of this fix with some nice features - http://xdaforums.com/showthread.php?t=751513