yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] bruno77:
I think this is THE best/easiest way {my instructions}

FOLLOW THESE STEPS TO APPLY LAG-FIX. sgs (SAMSUNG GALAXY S 2.1)

---Before you begin this fix, be aware You have to have Samsung galaxy s DRIVERS INSTALLed and may need to Flash and start over [if] any problems occur.---

1.Fresh ROM, using Odin3 or other to flash (recommended)

2.Root, through One click, or update.zip file (make sure you have super user icon in apps folder after applying root and reboot)

3.Install busybox 1.17.1.apk file will be called (stericson.busybox.apk) only use 1.17.1

4.D/L lag-fix file named: RyanZAEXT2LagFix ALPHA 1.zip from xdaforums.com/showthread.php?t=749495

5.Extract RyanZAEXT2LagFix ALPHA 1.zip to desktop New Folder (recommended)

6.Once extracted go to (PHONE)>Settings>apps>Development [select] USB debugging DO NOT MOUNT!!

7.Go back to RyanZAEXT2LagFix ALPHA 1 Folder LOCATE "lagfixme" before you double click make sure phone is in USB Debug mode and cable is connected to PC.

8.double click "lagfixme" and wait.. it will proceed, if all went accordingly you are done.

9.If you haven't already got Quadrant (test benchmark to see fix results) Download from [search.4shared.com] and search for [quadrant standard.apk] D/L Install.

10.YOU NOW ARE ROOTED,FRESH ROM,BUSYBOX AND LAG FIXED.

Hope my instructions help, made them as simple as i could.

If i'm missing anthing please let me know.

Thanks.

BTW. sorry i am not permitted to post links to files :( "new user"
[Galaxy S I9000 Android Development] chluk2425:
and be sure not to be clever to do any updates of busybox in the market as this will install the 1.18 :)
[Galaxy S I9000 Android Development] NickeMan:
So for the moment I should root my phone first and THEN run your update.zip, gotcha. I take it the root update.zips widely available on the forum contains this Superuser app.
[Galaxy S I9000 Android Development] Hanness:
Quick question, if everything goes well, it shouldn't be necessary to do a backup of programs + data (fe with Titanium) right ?
[Galaxy S I9000 Android Development] chluk2425:
uninstall the old vrsion before you install the provided one
[Galaxy S I9000 Android Development] Bynar010:
Did you even read the first page? 1.17.1.......
[Galaxy S I9000 Android Development] Eskilden:
So, in essence, I don't need to root my phone BEFORE installing your update.zip? But maybe I should wait for your updated version....?
[Galaxy S I9000 Android Development] darksaber73:
Sorry for the stupid questions,but i'm an android noob coming from a decade of symbian and i'm still trying to get things right with the new OS and read as much as possible here in XDA.

I'm itching to try this fix as my Galaxy S is a lag monster right now,all i want to know before is if there are problems after applying it with Titanium Backup/My backup.

I assume by comments made so far that there aren't serious problems with other apps already installed and with the market so if backup are a go i'm set.

Thanks!
[Galaxy S I9000 Android Development] wacas:
thanks for that will try it
[Galaxy S I9000 Android Development] Tayutama:
You should wait if you don't want to root your phone before installing the update.zip.

Though ill provide what i got working now which include Superuser app. (This is the same as my old update.zip but includes superuser.apk, Still working on upgrading application to newer version but it's giving me problems.)
[Galaxy S I9000 Android Development] sonnyg95:
Wow, thanks for making this a very easy process. I am now getting 2.2k on quadrant, was getting around 780 before this fix!

One thing I noticed though was that I still am experiencing lag when opening and closing apps. Not all the time, but still enough for me to notice. Just experienced it while I switched to my gallery to upload my benchmark results. Anyone else experiencing this?
[Galaxy S I9000 Android Development] hristo2000:
Full instructions:

1. The update.zip installs all the files needed. It is attached here; http://xdaforums.com/atta...2&d=1281390347

2. Place it on your internal sdcard

3. Turn off your phone.

4. Hold down Up+powerbutton+Menubutton for a couple of seconds until u see the galaxy logo .

5. Use the up and down buttons to get to update.zip.

6. Press menu button on update.zip to select it

7. It installs root, correct busybox (1.17.1) as well as all the scripts needed for the fix and the 'MCR Scripts' app to run the scripts. (NOTE: It does not install superuser.app which is needed)

8. After install, the phone restarts.

9. Go to the newly installed 'MCR Scripts' application from the app list, open it and choose from 3 scripts. For example, Lagfix10024 is the 1gb ex2 version.

10. The script should run and take a few minutes.

11. You should see an 'all complete' prompt, and this means you can close the application.

12. Run quadrant to test if the fix was applied.

the above works awesome- 2050 points with 512mb script. (rooted JG8 (Africa) on European SGS)
[Galaxy S I9000 Android Development] hristo2000:
....i am not sure, but before applying the fix i tested Quadrant and had 864 marks, but i also noticed the frames in the 3D tests, now, after the fix is applied i have 2050marks but i am noticing the same results as a framerate in the 3D tests. Can someone confirm? If it is so, we can expect no improvements of the 3D in the games, which is the main purpose, isnt it?
[Galaxy S I9000 Android Development] Bynar010:
No you have missed the point completely.this is an I/o performance fix. It isn't going to magically make your gpu and cpu faster.
[Galaxy S I9000 Android Development] Diger36:
Wow.... At first something went wrong with the busybox version (I should learn to read someday ;)) It resulted in me reflashing but after that applying the fix, restoring my backup (thank God for Titanium) and my Galaxy S is flying....!!!! Thanks for a great fix. Playing with it for a day now and no sign of lagging, even if I don't kill apps with an autokill function. This rocks! Thanks RyanZA!!! I get a score of 2236 after the fix with JM2 while before I had 863 in Quadrant.
[Galaxy S I9000 Android Development] °Dexter°:
Dumb question:i applied fix successfuly,can i update busybox now?
[Galaxy S I9000 Android Development] spences10:
This looks awesome, can this be used for any other android phone archetechture?

Or is this specific to the Galaxy S?
[Galaxy S I9000 Android Development] SkulleD_PT:
Ok, I'm going to try the PC way. Need Kies though :(
[Galaxy S I9000 Android Development] ie_johnc:
Just tried the update.zip method...

Rand the lagfix script in the MCR app which seemed to execute successfully, but didn't improve my quadrant score. I attempted to run the removal script but it said "Permission denied". A few seconds later my apps started force closing.

Tried rebooted but now the phone just plays the intro animation and stalls on the Galaxy logo for about a minute before turning off again.

I guess I have get a PC and flash to a new ROM?
[Galaxy S I9000 Android Development] TheJunx:
This is again, completely false. Any data put on an EXT2 filesystem will be be open to corruption. This myth that the "underlying filesystem is journaled and will save you" is just a complete lie. Once you mount the EXT2 filesystem, its simply that, an EXT2 filesystem.
[Galaxy S I9000 Android Development] windy31:
If other phone seem to have very very poor stock I/O performance same as us.

May be you can consider the same method :D
[Galaxy S I9000 Android Development] ninjafox:
this only works for the galaxy s since it has a "broken" filesystem which is slowing down it's superior hardware and causing lags.
[Galaxy S I9000 Android Development] adambrooks015:
Thank you so much for that, I just copied your instructions after struggling a little bit last night. Got quadrant score of 2250. Im over the moon.
[Galaxy S I9000 Android Development] dakine:
So after flashing a clean rom, when would be the best time to restore apps+data with mybackup pro? Before or after running the lag fix?
[Galaxy S I9000 Android Development] m0ustik:
just fix my Galaxy S with update.zip

Work perfect, 2000+ quadrant score.

Thank you so much, system is very smooth and fast !
[Galaxy S I9000 Android Development] zanbay:
Me too.

I flashed new and rooted.

Quadrant 902...

I was waiting about 2000 + :p
[Galaxy S I9000 Android Development] sturmeh:
Does this place any limitations on your ability to mount the Internal SD on your PC?

( I don't have my Galaxy S yet, so I might not be very clear. :P )

Check it's mounted and being used, type df in terminal.
[Galaxy S I9000 Android Development] furstrated:
Is this any different from this

i took it from the other thread.

what's the difference between that and the one click lagfix

can i use the undo in the one click to undo the above?
[Galaxy S I9000 Android Development] fobas001:
I have installed that fix, system is pretty fast, but I got "Internal error during benchmark execution" then I try Quadrant, I did restarted phone couple times...

Busy box version : 1.16.2
[Galaxy S I9000 Android Development] RyanZA:
You should be able to unroot without any problems.

I'll add some checks at the start, like busybox and space.

Instant isn't always a problem. It takes about 25 seconds on my phone. I have specified some options in dd that should cause it to go instantly, but on my phone it wasn't.

Check if your quadrant scores have gone up is the best way to know if the fix was successful.

I'll go one better and put in a check at the start of the script. ;)
[Galaxy S I9000 Android Development] FadeFx:
i guess it´s safe to unroot, but i dont see why someone would want to...
[Galaxy S I9000 Android Development] fifo_thekid:
This is what I'm getting:
[Galaxy S I9000 Android Development] RyanZA:
I move over /data/system as well as the 2 he moves. Other than that, identical. Mine should hopefully be easier to install though! ;)
[Galaxy S I9000 Android Development] zanbay:
I did Unlagfix... But for u I am doing it again...Will see...:rolleyes:
[Galaxy S I9000 Android Development] RyanZA:
Ah ouch! Okay, you don't have enough space on your /data partition. I'll make a workaround using /sdcard for this for the next release.
[Galaxy S I9000 Android Development] drapos:
Done into a simlocked firmware from spanish ISP Movistar.

Quadrant score: 2230

Very nice job!
[Galaxy S I9000 Android Development] tschmidt84:
yip, would be great to have a script undoing mimocan's fix and applying this all in one.
[Galaxy S I9000 Android Development] RyanZA:
Actually this is tricky...

I can't create the /data/file because there isn't 1GB free in /data to create it. I can't move out /data/data because it's already in use, so I can't free up any space!

Uh oh...

Maybe I can do it at boot up time?
[Galaxy S I9000 Android Development] fifo_thekid:
Can I do anything to overcome this problem?
[Galaxy S I9000 Android Development] zanbay:
Worse ...

Now it is 865...

Oki doki I am back mimocan :)
[Galaxy S I9000 Android Development] FadeFx:
RyanZA:

if he has to less space for the one gig file on his /data partition that is in my understanding 2 gig in size, wouldn´t it cause problens to copy this all to a 1gig virtual partition?
[Galaxy S I9000 Android Development] furstrated:
if i wanna use your fix, can i use your undo to undo the other and use your fix then or do i have to manually undo the other fix. because i wanna use your fix as it is much cleaner and i dont think my limited unix and no linux will allow me to undo the other fix
[Galaxy S I9000 Android Development] FadeFx:
my first thaugt was to do all this throug a update.zip, isnt that possible?
[Galaxy S I9000 Android Development] hargibi:
i get around 900 in quadrant, i guess that make it not to work on my device. :P
[Galaxy S I9000 Android Development] RyanZA:
Yeah it would, that is why the virtual partition is only 1gig. So it can fail nicely. ;)

I'm not entirely sure how to fix this, but I'll play around a bit and try different things. A workaround would be to remove a few applications until you are under 1GB. ;)

Clearing data in Settings->Applications (filter by application size) may help too.
[Galaxy S I9000 Android Development] NickeMan:
Just ran this update.zip.

After running the MCR script, my background switched back to the default one (the city with lights and stuff) and K9-mail got stuck on "updating mailbox..." which I assumed was pretty normal.

However, after rebooting the phone, it doesn't turn on anymore. I get the normal "Samsung Galaxy S i9000" boot logo, then the screen goes dark. After a minute or so, the menu/back buttons light up, then it just stays like that.

Guessing I'll have to reflash my firmware or at least factory reset?
[Galaxy S I9000 Android Development] fantacies:
It would be more complete if you could include some kind of credit mentioning about ykk_five who did offer some valuable input in theoretical level.
[Galaxy S I9000 Android Development] spences10:
Thanks for this, I was thinking of DELL Streak [FW 1.6] but I'm pretty sure all the performance issues are relating to the 1.6 firmware.
[Galaxy S I9000 Android Development] ie_johnc:
Very similar to what happened me.

I now get an image of the android guy standing beside a large exclamation mark when attempting to boot into the recovery mode. Fun times.
[Galaxy S I9000 Android Development] beat.kitano:
Benchmark Test with "One Click Lag Fix" running: 2034.

Wonderful!

Bye.
[Galaxy S I9000 Android Development] NickeMan:
Yup, my recovery screen has that little ****er too. I guess 30 minutes ago would have been a good time to backup my apps... :D
[Galaxy S I9000 Android Development] stepinmyworld:
How do we clear the cache? My phone boots to the unlock screen sometimes.
[Galaxy S I9000 Android Development] jimbob1981:
JM5: 892, 875, 893

HackEclair 1.01: 896, 904, 897

OCLF: 2171, 2162, 2114
[Galaxy S I9000 Android Development] muntos:
Any comments on this ?
[Galaxy S I9000 Android Development] RigerMortis:
Works Great

First had a try with the busybox 1.18 from android Market, didn't work.

Removed this version and did install the version from the first post.

Now i have a score of 2245 in Quadrant.

Great one click. Thanks.

I9000XXJF3 2.1
[Galaxy S I9000 Android Development] tuomiju:
Same result here.

Screen stays blank and menu/back buttons light up but nothing happens.

Had to reflash firmware to get it up again.

Any ideas?
[Galaxy S I9000 Android Development] BackfireNL:
Niceee will check it out later!
[Galaxy S I9000 Android Development] fredphoesh:
This lagfix is so much better than anything I have seen on Modaco or by SamSet, really no comparison. Modaco (Paul) and SamSet both have good Quadrant scores, but have some frighteningly bad lags with things like importing a comma delimited text file into a grocery shopping programme taking half an hour!!!

AFAIK there is a risk of losing data, but hell, we do that every week with new roms anyway, so back up your stuff, DO NOT pull the battery out your phone without shutting down first and

ENJOY what is IMO the only REAL lag fix.

Mark.
[Galaxy S I9000 Android Development] stepinmyworld:
helllloo anyone lol.. how do you clean the stored cache? the phone every now and then turn off the screen and goes to the unlocked screen as if memory is bad. I think its storing to much cache and not able to delete it...
[Galaxy S I9000 Android Development] Vascariz:
How bad can losing data get especially if you back up once a week? What's the worst possible thing that can happen?

Do apps stop working?

Do I start to lose contacts?

Will a simple restore from backup fix it?

Will it brick the phone? Render it unusable? Have permanent corrupt data like a bad sector or something lol!?

As you can see I'm new to this... and I think to a lot of new people... "losing data" is very vague and sounds like the end of the world!
[Galaxy S I9000 Android Development] Tayutama:
Using the new version of the update.zip? If so ill take a look at it when I get home.
[Galaxy S I9000 Android Development] engineer14:
hey i have 2 questions:

1. does this also work for other galaxy S variants, specifically the Vibrant (ive seen vibrant users have said it works but i just want to make sure), and do you need any extra steps to complete it?

2. is there anyway around connecting it to your computer, i forgot my cable at home and really want to try this out now.
[Galaxy S I9000 Android Development] ultravox:
The number of post asking/complaining about the fix is completely unbelievable!!!

All over the years, this problem seems to get worst, people simple don't read and search the topic. I would bet at least 30% of the posts are about the same questions.:eek:

I had root, busybox 1.18.0.git and mkfs.ext2 (/system/xbin/) and got 868.

I would say that 1.17.1 is really mandatory(not only the mkfs.ext2)

everything went fine with the update.zip process.

2131 with JM5-stock. Thank you
[Galaxy S I9000 Android Development] exadeci:
Maybe you should update your fix

EDIT4 09 aug 0039HKT:
- no need to deal with /data
- the major thing is /dbdata/databases

And the removelagfix doesn't do a

busybox rm /data/ext2data/
[Galaxy S I9000 Android Development] stas07f:
Thanks heaps for all the help guys. Once Tayutama included SU it was a breeze (though I flashed just in case I did something during all my screwing around.)

Q Score 2347

You guys rock!!
[Galaxy S I9000 Android Development] jeebspawnshop:
Odd but cool

Well, thought I'd mention my experience;

I used RyanZA's method (not the update.zip) to install the lagfix.

I had Busybox 1.18 at the time.

Everything went fine - I think - and then I rebooted the phone. It was like having an iPhone4; it was just so smooth and fast. I can't slow it down no matter what I try to do ;)

BUT! When I run Quadrant, it gives me the same score as before.

Weird, right? But I don't care about Quadrant, because the phone just SCREAMS now! :D

Thanks RyanZA!
[Galaxy S I9000 Android Development] ninjafox:
has the update.zip already been updated to include the superuser.apk by Tayutama?

I read that he will update it to contain the superuser.apk, but I don't know if I missed it and I don't get any clear search result...
[Galaxy S I9000 Android Development] exadeci:
Superuser is in system/app of the update.zip but after using it you should open maket and update apps (su,busybox and ase)
[Galaxy S I9000 Android Development] Rithina:
The one that included is still in beta.. I only tested the one without superuser

http://xdaforums.com/showpost.php?p=7587405&postcount=417
[Galaxy S I9000 Android Development] piya_m:
after reading removelagfix.txt,

I think RyanZa miss that command too.

Can I just use Root Explorer to remove that folder manually after running removelagfix ?

Thanks,
[Galaxy S I9000 Android Development] Tayutama:
Here: http://xdaforums.com/attachment.php?attachmentid=377244&d=1281437129

I don't really see a reason to update busybox to 1.18 which is the version there is in the market, and ASE isn't in the market since it's now called sl4a which i'm trying to get to work but it keeps crashing on me. Also why would you update su? it's pretty much the same version we use for both froyo and eclair rooting so why?

If you are going to use that command then use:

rm -r /data/ext2data

Else you will get an error since it's a directory.

But yeah Root Explorer can also remove it after you run his removelagfix file
[Galaxy S I9000 Android Development] javacody:
Ran this on my Vibrant, after restarting, have a Quadrant score of 2206!
[Galaxy S I9000 Android Development] janduin:
whoops. cached version of the page.
[Galaxy S I9000 Android Development] lyno:
Market Problem

Used to have mimocan's fix (with the market fix), removed with the script in this topic.

Then applied this one click lag fix, but now when I try and download something from the marketplace, it always just stays on "Starting download...."

How can I fix this?
[Galaxy S I9000 Android Development] thaysean:
Excellent!!

Great fix!!! Thx a ton!!
[Galaxy S I9000 Android Development] Highl1:
great fix, thanks a lot!
[Galaxy S I9000 Android Development] RyanZA:
Ah yeah, I missed that. It is just an empty directory though, so it doesn't cause any harm. If you like it neat though, feel free to remove it. ;)
[Galaxy S I9000 Android Development] RyanZA:
As far as I can tell, you shouldn't lose more than a few minutes. There should never be any corruption since there is still a journaling filesystem underneath.

Nobody has actually had any lost data yet, anyway, so we don't know how bad it would be if it happens. Since there are a ton of people using this now, the lack of reports of anything lost is a pretty good sign that this fix won't kill your puppy. ;)

Personally, I am more worried about the quality of the stock RFS filesystem than with the EXT2 sitting on top. ;) RFS must have some very bad coding to cause this kind of performance penalty.

At any rate, I just have my phone syncing all contacts and everything with the Evil Google! Which has been awesome for all the times I have had to reflash my phone after testing stuff out. ;)
[Galaxy S I9000 Android Development] RyanZA:
Specific to Galaxy S. Galaxy S has by far the best hardware available of any phone - its way ahead. However, samsung messed up the I/O with a badly configured filesystem. This fixes the problem somewhat, by using a bit more cpu/ram for extra buffering so that the filesystem gets hit with less requests.

I guess someone could try this on other devices - EXT2 virtual filesystem with NOATIME set. However, I believe that on other devices, this fill will slow your phone down rather than speeding it up, as their filesystems should already be set up correctly.
[Galaxy S I9000 Android Development] mdalacu:
My opinion remains the same, we should include a EXT2 FS check at every boot because every sydtem hang will result in marking ext2fs as dirty. We will not lose only minutes of data but hole files which were left open for writing during hang, after reboot and fs check will find those files in lostandfound folder.

Lets hope that we will not have copmlete hangs or power loss, because our phones are pretty useless without RyanZA fix.
[Galaxy S I9000 Android Development] RyanZA:
There are a lot of people, not just ykk_five who I need to credit. However, I don't want to create a 10 page long credits list for this fix, when the fix is actually really simple. It was picked up awhile ago on the french boards, but dismissed as 'not good enough' since they didn't tweak it enough. ykk_five's fix was also for using the small /dbdata rom. I mostly found this fix by doing ykk_five's fix incorrectly, and then doing investigations. The idea for all of this comes from mimocan in the first place. There were also a log of people who gave suggestions and helped a lot.

At any rate, I'd refer to this as much more of a community fix than anything, and just drop the credit issue entirely. ;)
[Galaxy S I9000 Android Development] RyanZA:
I've actually tried pulling out the battery a few times while using the fix, and nothing bad has happened, and I didn't appear to even lose any data. Obviously not a very good test, and I'm 100% sure it if possible to lose data - it just isn't a guarantee that you will. ;)

Most applications will by mainly reading files. The ones that write files usually open the file, write the data, and then close it right away. These operations are generally very fast, and you'd have to pull the battery as it was doing it. More than likely even if you did, you would just lose the changes made by that one operation. Not heavily tested though, so its totally speculation.

We should add the EXT2 FS check though! I have it in my test build, along with some other stuff that I'm testing out to try and make this better. Nobody has had any issues though, so I haven't made a hotfix for V1 yet though. ;)
[Galaxy S I9000 Android Development] stianbert:
hey. get an error, have installed busybox from the thread and usb debugging is on-

run lagfixme and "device not found"
[Galaxy S I9000 Android Development] atul.dharne:
Thank you! You the man! Hat's off!

Quadrant score was 892 before and it's 2083 now. Brilliant fix!