[Samsung Galaxy S (4G Model)] thomas.raines:
As always, READ the

ENTIRE

OP...

If you are having poor performance/battery life and want to help me finalize a project/ addition to the 1-Click Gremlin Remover, let me know...

Awesome! So now that I have a few people that are willing to test that have protential gremlins, I am introducing a possible addition to the Gremlin Removal process. This method is a less destructive technique as oppose to reformating everything and starting all over again (aka the 1-Click method).

This is mainly intended for those who are only experincing less malicious gremlins, meaning you aren't dropping 20% battery every hour, have extemely laggy performance with FC's, etc. However, it is possible that this method could fix even the most extreme performance issues (or not do much at all...lol)

**Make sure you have adb installed on your PC**

Step 1

Download the System Cleaner.zip and copy to the root of your sdcard (see attachments at bottom)

Download the tune2fs.zip, unzip it, copy the file (tune2fs) to the root of your sdcard (see attachments at bottom)

Plug phone into PC via usb

Boot into recovery

Open cmd prompt and type:

adb shell
cp /sdcard/tune2fs /tmp
chmod 777 /tmp/tune2fs

Now we have our filesystem check environment in place.

Step 2

Unmount /system, /data, and /cache (we can leave the sdcard mounted)

Open cmd prompt and type:

adb shell
/tmp/tune2fs -l /dev/block/stl9
/tmp/tune2fs -l /dev/block/stl10
/tmp/tune2fs -l /dev/block/stl11

In the output of all three partition checks, you need to look for one of these variables:

Filesystem State: clean
Filesystem State: not clean
Filesystem State: dirty

If it is "clean", this may not do much for you. If it is "not clean", you didn't unmount that partition. But if it is "dirty", this will fix many issues.

Step 3

Regardless of which state your filesystem is in, we can still run the System Cleaner.

While in recovery mode, flash the System Cleaner.zip as normal. It uses the Aroma Installer so just run it as you normally would. Notice that you only have 1 option to "install" or run the cleaner. I plan to add more to this project, but I want to get the base of it up and running.

This is a fairly quick process but allow it to run fully without touching the device. You will also be prompted to restart or not. I haven't gotten that option working correctly so it doesn't mattter what you choose, you will still have to reboot manually. When the installer is done, click next, finish and you will go back to CWM.

Step 4

After the filesystemcheck is done, run Step 2 again and note your fielsystem state (especially if it was dirty).

Step 5

Reboot the phone and monitor your performance, etc.

A bit of insight into what this is/does:

This method is using a binary called fsck.ext4. Broken down explination:

fs= filesystem
ck= check
ext4= filesystem type

Pretty redundant I know.

Now, what it does, is runs a filesystem check and defrag, much like windows disk check and defrag. It fine tunes the file systems, realigns things as needed, and cleans up the system. Just like our computers, our phones need a good cleaning from time to time and this little thing will do just that...lol

Again, this is just the base for a larger project...

Credits and Thanks

My wife (she is a great supporter and anti-nagist)

FBis251

RaverX3X (thanks for listening and making me figure out my errors...no spoon feeding here...lol)