[Galaxy S I9000 Android Development] Chainfire:
THIS TOOL HAS BEEN DISCONTINUED. IF YOU REALLY NEED A LAGFIX, USE VOODOO. HOWEVER, WITH LATEST ROMS I DONT PERSONALLY FEEL A LAGFIX IS STILL NEEDED, THUS I DON'T USE ONE, AND WILL NOT CONTINUE DEVELOPING ONE

About

Here it is, yet another LagFix tool. It's certainly not the first, but it does offer some things others do not (at the time of this writing).

This patch uses the ext2/ext3 image in /data method.

IMPORTANT NOTICE FOR FROYO USERS

(1) Use ext2. ext3 is NOT supported on Froyo, only Eclair

(2) The installation will fail if you apps installed to SD. Go to Settings -> Applications -> Manage -> On SD card. Click each app and click "Move to phone". In the end, the "On SD card" list should be empty. Reboot. Install CFLagFix. When the fix is installed, you can move apps back to the SD card if you wish.

Features

- Lots of checks to make sure the fix is possible

- This is not just based on a script, but a lot of commands are performed and their results rigorously checked to be what is expected

- You can select (from a set of presets) which folders you want to lagfix

- You can select how big the image should be (between 128mb and all the free space in /data minus 250mb, to prevent low storage space warnings)

- The actual moving of data from RFS to the image is done in a boot loop, while the files are not in use. This minimizes the chance of corruption during move (settings being lost, etc)

- Comes with e2fsprogs, and e2fsck is performed each boot to fix a corrupted image

- Comes with it's own busybox, so no need to install it, and no chance for conflicts

- If an ext2 image is used, it is tuned to not reserve any blocks

- If an ext3 image is used, it is tuned to not reserve any blocks and use journalling

- Also moves databases (safely)

- Uninstall option

- Resize option, resize your partition whenever you want, to whatever (possible) size you want

- "Full automatic" option, this will max out the image size while still preventing the low storage space warning, and will also reclaim the space from the backup folders and automatically resize the image to max again after that space is reclaimed. This generally results in an image of about 1.5 GB. It'll also leave some space in case the system still needs to write in /data but not in the image.

- Progress monitor ("educated guess" about progress, not exact, but pretty close, usually!)

A fair number of these seem to be unique at the time of this writing.

Notes

- e2fsck result is stored in /data/cflf/e2fsck_result.txt

- list of mounted directories is stored in /data/cflf/mountlist.txt

- if ext3 is used /data/cflf/imageisext3 file will be present

- my own test rom is JM2+root-with-update.zip+ClockworkMod

Known issues

- In case the image is heavily corrupted, e2fsck may take longer to fix it than the rest of the boot process. Theoretically this could result in data loss

- ext3 does not seem to be supported on Froyo ROMs JP1/JP2/JP3

Credits

- mimocan, ykk_five, RyanZA, and all others who have chipped in for various lagfixes

- cynogen, e2fsprogs built for ARM

- kalpik, busybox APK

- ofcourse the original authors of those tools as well

- myself, this is all based on ADB Magic code

Donations

Please feel free to donate: http://www.jongma.org/dx.php

Requirements

- Windows :)

- Microsoft .Net 3.5 framework

- Phone in USB debugging mode

- SuperUser

Before using ...

I strongly recommend using ClockWorkMod and making a backup of your ROM. Just in case :) Also, during any operation, I advise having your phone hooked up so I can draw power from the computer.

Usage

- Unzip the attached file somewhere

- Make sure your phone is connected in USB debugging mode

- Make sure you have SuperUser installed

- Run CFLagFix.exe

There are three tabs:

Install LagFix

This tab allows you to install the LagFix, and lets you configure some options.

I recommand leaving the "Full automatic" option turned on, if you do, just press "Install !" and everything will be arranged for you. If you turn this option off, you can configure some settings manually, but note that using this does not reclaim wasted space of the backup files.

Note that you can still select to use ext3 instead of ext2, even if in "Full automatic" mode.

When you press "Install !", the program will be finished quickly, but your phone may continue working for 30 minutes or so, and keep rebooting very often. If you have a lot of data installed, it may take even longer.

Do NOT even touch your phone until Android boots up again!

A lot of things are checked before the install will start. You will need about 50% free in /data for the operation to work, but it will check this before making any modifications on your phone.

Resize Partition

This tab allows you to change the current ext2/ext3 partition size. The slider will only let you select values that are actually possible, i.e., bigger than your current data usage and smaller than the total space that could be occupied by the image.

Clicking "Resize !" will reboot your phone and resize the partition. Again, this can take an awfully long time! Don't panic, just wait it out.

Uninstall LagFix

This will uninstall the LagFix. It will completely remove it. Before removing it, however, it will move all files out of the image and back into the normal filesystem again, so no data is lost.

Clicking "Uninstall !" will reboot your phone and perform the uninstallation. Again, this can take an awfully long time! Don't panic, just wait it out.

Note that uninstallation will only work if you are using less than 50% of the device's capacity, but again the program will check this before making any modifications on your phone.

You can only uninstall installations of CFLagFix 1.20 and newer !!

BETA

This is very beta, use at your own risk!

WARNING

This patch is NOT compatible with ANY other lagfix tools. Either undo those completely, or just don't use this. If you were using one of those, I'd personally recommend a complete reflash of the firmware before using this patch.

WARNING #2

Before trying 1.80, please see this post.

Download

<< 1.70: 632