yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] hectorwax:
i never used any lag fix im rooted by the one click, the busy box shows that im using the 1.17 version and correctly rooted, and cellphone in debbugging mode

here is what i get when i try to run the script

---------------------------------------------------------------------------------

================================================== =============

================================================== =============

One Click Lag Fix for Galaxy S I9000

================================================== =============

================================================== =============

__________________________________________________ ________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

failed to copy 'createlagfix.txt' to '/sdcard/createlagfix.sh': Permission denie

d

failed to copy 'playlogos1' to '/sdcard/playlogos1': Permission denied

failed to copy 'userinit.sh' to '/sdcard/userinit.sh': Permission denied

Now running lag fix. On your device, select allow root privledges!"

/system/bin/sh: Can't open /sdcard/createlagfix.sh

Script complete!

Press any key to continue . . .

Any help¿ Thanks in advance
[Galaxy S I9000 Android Development] yipcanjo:
Answering my own question.

Yes, it appears that USB drivers are necessary. Here's the link for those.

Yip
[Galaxy S I9000 Android Development] fredphoesh:
FANTASTIC lag fix for SGS...

Thanks Steve and Ryan,

Holy crap, this fix makes I9000XWJM5 ROM incredible, 2268 quadrant, and its waaaaay less laggy than SamSet 1.9 PLUS you can use your ext sd card in windows as usual.

A couple of annoyances, which I think are I9000XWJM5 related, a few apps are not found in market, like National Rail, What the doodle, and a couple more.

But awesome! Thanks Ryan,

Mark.
[Galaxy S I9000 Android Development] jaju123:
Does this work with the latest busybox? And also if someone is feeling helpful if it doesnt how do I install the busybox.apk? Thanks.
[Galaxy S I9000 Android Development] yipcanjo:
How do I check how much app space is available?
[Galaxy S I9000 Android Development] mdalacu:
@ RyanZA

Hi, it worked perfectly! Quadrant score 2150.

Please tell me, if phone will hang/crash wouldn't that result in ext2 file system corruption because it has no journal (not on RFS)?

My opinion, to minimise data loss in userinit.sh we should put an

e2fsck -y /dev/loop0

Is this any good?
[Galaxy S I9000 Android Development] Mynx:
Did you even read the first post ? ^^:confused:
[Galaxy S I9000 Android Development] FadeFx:
a crash should have no downsides, since the journalling is done by the underlying rfs already... but if you´d like to test we would apreciate this ... (just kidding)
[Galaxy S I9000 Android Development] jaju123:
I dont know how to 'sideload' busybox or what ADB is.
[Galaxy S I9000 Android Development] RyanZA:
Well... the EXT2 is actually running on top of RFS which has journaling. I don't really know though.

e2fsck might be a good idea though. Can't hurt, right?
[Galaxy S I9000 Android Development] swisszulu:
Muahaaa I did exactly what is writen in your manual at the first post.

So now I run with over 2000+ Quadrant Scores!

Thank you very much :D
[Galaxy S I9000 Android Development] drygmasken:
I must be stupid or something not getting this to work.

Using JP3 pre-rooted from MoDaCo, tried everything now i think.

re-flashed JP3, installed latest busybox, formated internal SD. But still I don't get this to work :mad::mad:

everything seems ok though when running the fix.
[Galaxy S I9000 Android Development] RyanZA:
You might want to hold off on this fix, at least until its out of beta.

Its always possible for bad **** to happen when messing around with root, and you might not know how to fix it when it does.

Your best bet is to do a lot of reading before you do any of this, or to just wait a while for this fix to be bulletproofed, or samsung to release their own fix.

That is not to say that this fix is dangerous, it is just that you have to know how to follow a guide/what to do in case something goes wrong.
[Galaxy S I9000 Android Development] RyanZA:
Oy, I keel you! Busybox must be v 1.17.1 (or any busybox that has the command mkfs.ext2) Latest busybox (1.18) is missing nearly everything for some reason. (Busybox author is insane? :D )
[Galaxy S I9000 Android Development] mdalacu:
The crash is in the ext2 partition which hasn't have a journal for protection.

The /data/linux.ex2 file which resides on RFS will be ok (rfs will be ok, not the file ...) but the ext2 inside that file i think will suffer the damages.
[Galaxy S I9000 Android Development] glensta:
@ RyanZA: Awesome Work - thanks for your service!
[Galaxy S I9000 Android Development] Aery:
2153 Quadrant @ JM5.

Very nice. Thank you!
[Galaxy S I9000 Android Development] drygmasken:
How do I install the files in busybox-1.17.1.tar?
[Galaxy S I9000 Android Development] drygmasken:
Found a apk.
[Galaxy S I9000 Android Development] veper:
update.zip (root + busybox 1.17.1)

OK guys, here's update-root-busybox-1.17.1.zip attached.

- rename the file to update.zip when downloaded onto your computer

- copy update.zip to the root of your SDCARD ( /sdcard )

- shutdown your phone

- hold Vol-UP and Home buttons, then also press Power button

When your phone boots into Recovery mode:

- use Vol buttons to navigate to: "Apply sdcard:update.zip"

- press Home button to execute the script

That's it, it will root your phone if it's not rooted already and it will install the correct Busybox version (1.17.1) needed to perform EXT2 hack.

Cheers.

PS: this update.zip was tested on 2.1, I'm not sure it will work also for rooting 2.2.
[Galaxy S I9000 Android Development] jaju123:
So the above will work even if I already have 1.18.0?
[Galaxy S I9000 Android Development] tannerswe:
I get this in adb shell

I think I have done it correctly, Im more into dos than linux
[Galaxy S I9000 Android Development] drygmasken:
Seems like Titanium backup doesn't work with 1.17.1

Can I unfix, install other busybox, then restore apps and then install 1.17.1 and apply fix?
[Galaxy S I9000 Android Development] veper:
It should overwrite the previously installed version, yes.
[Galaxy S I9000 Android Development] Tiazi:
O yea baby.. 2091! Flashed a new firmware (XWJM5) + one click root + busybox 1.17= 2091 quadrant!

Gotta love the dude who made this <3 <3
[Galaxy S I9000 Android Development] FadeFx:
if so, maybe its better to have a recent nandroid backup in place...
[Galaxy S I9000 Android Development] veper:
EXT2 hack definitely improves the phone's responsiveness, though there's still some lag when free memory reaches sub 60MB levels.

Installed autokiller, set it to 60/65/70 and so far lag is gone =)
[Galaxy S I9000 Android Development] blaaez:
ok, I am on JM2 with mimoscan's fix previously applied. tried to undo with the exact instructions above. and I get this error:

$ su -
su -
# busybox rm /data/data
busybox rm /data/data
# busybox rm /system/media
busybox rm /system/media
# busybox cp -rp /disk/data /data/
busybox cp -rp /disk/data /data/
cp: can't create '/data/data/com.google.android.location/files/gls.platform.key'
: Operation not permitted
cp: can't create '/data/data/com.google.android.location/files/DATA_Preferences'
: Operation not permitted
cp: can't create '/data/data/com.google.android.location/files/cache.wifi': Oper
ation not permitted
cp: can't create '/data/data/com.google.android.location/files/cache.cell': Oper
ation not permitted
# busybox cp -rp /disk/media /system/
busybox cp -rp /disk/media /system/

what's "cp: can't create '/data/data/com.google.android.location/files/cache.cell': Operation not permitted" mean? I kinda pressed on and applied the rest of the mod though. *gulp* hope everything's ok!

update: Quadrant finished zippily at 2034! wow it didn't even hestitate for a second at database write 3/4!!

second run 2252!! woot!

*phew* looks to be working ok!
[Galaxy S I9000 Android Development] drygmasken:
Sorry, my Titanium folder was empty :P
[Galaxy S I9000 Android Development] alferret:
Totally awestruck, from reading the posts about the manual fix the other day to seeing a batched fix that works is excellent.

Removed mimocan as per link in post 1, followed the easy as pie instructions for the batchfile fix and now I am getting 2096.

Very responsive, much, much quicker.

Many thanks to those that have input and implimented this :)
[Galaxy S I9000 Android Development] RyanZA:
I don't think it will suffer any damage though. It should only suffer missing data. The actual writes will have to be consistent, since the underlying FS is journaled. And when your phone is crashing, I think you've probably lost whatever data you were just using anyway, journaling or not.

I have not had a system crash on SGS yet, so... I'm not personally worried. Your mileage may vary! ;)

If lots of people have success with this update.zip install for busybox, then I'll put it in the first post.
[Galaxy S I9000 Android Development] mazsuper:
FYI OP - 2021 quadrant - will test :)

one click :) after JM5 + one click root + busybox apk

followed instructions

removed ext sd card etc first

was on jm5 but with samset, so reflashed with odin but did not partion was hoping apps would still be there (yeah i'm a noob)

then reinstalled apps with appbrain (forgot to refresh them doh)

this feels real sweet to use

gonna leave it on untill it breaks or new hack appears :)

===============================================================

===============================================================

One Click Lag Fix for Galaxy S I9000

===============================================================

===============================================================

__________________________________________________________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

3 KB/s (1741 bytes in 0.537s)

3 KB/s (56 bytes in 0.014s)

11 KB/s (177 bytes in 0.015s)

Now running lag fix. On your device, select allow root privledges!"

Creating 1GB file to store data inside. This could take a long time...

0+0 records in

0+0 records out

0 bytes (0B) copied, 25.431386 seconds, 0B/s

Creating loopback, you may see an error that it already exists. Ignore that erro

r.

Linking loopback to the 1GB file store

Creating the EXT2 filesystem

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

64000 inodes, 256000 blocks

12800 blocks (5%) reserved for the super user

First data block=0

Maximum filesystem blocks=4194304

8 block groups

32768 blocks per group, 32768 fragments per group

8000 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376

Creating a mountpoint for files, you may see an error that it already exists. Ig

nore that error.

Mounting device

Copying data across

Clearing out any old backups, ignore any errors

Backing up old data

Linking to fast ext2

Now setting up reboot support

Moving boot animation

Copying over init scripts

Setting up permissions

All Complete!

Script complete!

Press any key to continue . . .
[Galaxy S I9000 Android Development] Nuukeer:
I get this message when trying to install it.

===============================================================

===============================================================

One Click Lag Fix for Galaxy S I9000

===============================================================

===============================================================

__________________________________________________________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

failed to copy 'createlagfix.txt' to '/sdcard/createlagfix.sh': Permission denie

d

failed to copy 'playlogos1' to '/sdcard/playlogos1': Permission denied

failed to copy 'userinit.sh' to '/sdcard/userinit.sh': Permission denied

Now running lag fix. On your device, select allow root privledges!"

/system/bin/sh: Can't open /sdcard/createlagfix.sh

Script complete!

Press any key to continue . . .

Any idea? I have downloaded the correct version of busybox and installed it. I have followed the instructions.
[Galaxy S I9000 Android Development] stockfeed:
Im getting the same.. correct busybox, usb debugging on. dunno.
[Galaxy S I9000 Android Development] blaaez:
Hey RyanZA,

thanks for your most excellent mod. :)

quick question, will we have to redo this is we flash to a new firmware? eg. JM2-->JM5? or JM2-->JP3?
[Galaxy S I9000 Android Development] Tiazi:
OOPS im stuck in a endless LauncherPro force close loop. Someone knows what to do?
[Galaxy S I9000 Android Development] veper:
Yes, firmware up/downgrade will require you to perform the EXT2 hack again.
[Galaxy S I9000 Android Development] hatebreeder209:
when i applied the .bat file it worked there were 3 failed things but in the end it said the lag fix was applied.. did i do it correctly?
[Galaxy S I9000 Android Development] Aery:
Titanium Backup works very well with 1.17.1 on my Phone.
[Galaxy S I9000 Android Development] tragictramp:
fine on my jm2 with all apps reinstalled lots of widgets etc 2231 well happy, it definitely not just a high score, it runs pretty much lag free.
[Galaxy S I9000 Android Development] pinetree09:
I get "mount: Invalid argument"...how do I fix this?
[Galaxy S I9000 Android Development] zmirburger:
getting the same problem..
[Galaxy S I9000 Android Development] Nuukeer:
I got it working! Unmount the SGS from the USB, and it will work.
[Galaxy S I9000 Android Development] Witalka 15:
Thanks Dude.. your script (fix) work nice....

@ XWJG5 ---> score 2075
[Galaxy S I9000 Android Development] ridepo:
adb is not recognized as an internal or external command, operable program or batch file

when i start the lagfix.bat file i have this error.

why???

i'm using windows 7 with parallels on mac
[Galaxy S I9000 Android Development] Marcolooij:
Works like a charm, this should replace the real lagfix sticky !!!

- Flashed i9000XWJM5

- One click root

- One click lagfix

2239 Quadrant
[Galaxy S I9000 Android Development] Maverick777:
Thanks for the amazing fix. Just scored 2105 on Quadrant. Previous high on stock rom was 952.

I just barely had enough space though. Looks like I'm using quite a bit of memory. My phone storage is down to 184mb after the fix.
[Galaxy S I9000 Android Development] ~Reaper~:
need help here please i have everything right but i keep getting permission denied errors

it will not work
[Galaxy S I9000 Android Development] karmakuma:
Uh, oh sweeeeetah!

Just installed over HackDowns HackEclair Mod and works great! speedy, up till now no FCs. Wish my eyes were as fast to keep track :D

Ty!
[Galaxy S I9000 Android Development] Zilch25:
Wanted to let you know that I took the liberty of linking this over in the Captivate forums in case you wanted to drop in and feel the love from the AT&T side!

http://xdaforums.com/showthread.php?t=749530
[Galaxy S I9000 Android Development] Nuukeer:
Don't mount it to the USB, although the device should be connected to the computer (usb debugging must also be running).
[Galaxy S I9000 Android Development] appelflap:
Applause for the maestro

Well done maestro!!

[YOUTUBE]IxAKFlpdcfc[/YOUTUBE]

Works like a charm. I think you are a serious candidate for the reward.

No hassle, no formatting.... Great job.
[Galaxy S I9000 Android Development] FadeFx:
unzip the files first
[Galaxy S I9000 Android Development] sreichha:
To all users with the "permission denied"-problem: just connect your phone in debug mode, don't mount it. It took me a while to sort out my own problem.
[Galaxy S I9000 Android Development] fifo_thekid:
I've been using it for 3 hours and it is SUPERB!!

You just have to make the strict more fool-proof, with error checking and automated installation of supporting components and I'll be happy to pay the bounty

Cheers
[Galaxy S I9000 Android Development] ridepo:
yes, i've unzipped.. but have the same problem... why if i use command adb shell from the command prompt work and with this file .bat don't???
[Galaxy S I9000 Android Development] RyanZA:
Totally agreed! What was that guy thinking, not putting in enough busybox checking etc?! :D

To be honest, I didn't even know busybox had a version until I started hearing this doesn't work for some people. ;)
[Galaxy S I9000 Android Development] ~Reaper~:
well it seemed to run i rebooted the phone and still getting the exact same quadrant score so i guess it didn't work:rolleyes::rolleyes:
[Galaxy S I9000 Android Development] Nuukeer:
I got 2221 points with quadrant after second restart, 1997 after first restart. Amazing performance!
[Galaxy S I9000 Android Development] appelflap:
****, never knew that the SGS could be so fast.

@RyanZA You are from South Africa, right? This will definitely compensate the vuvuzelas I had to listen to for four weeks. :D

BTW will this not lead to unstability issues?
[Galaxy S I9000 Android Development] zmirburger:
how do i not mount it? ive checked 'always ask' in the usb connection thingie, enabled debug mode,

when i connect to the computer the phone says debug mode, but i still see the 2 drives on my computer (phone&sd).. am i supposed to see these?

still failed
[Galaxy S I9000 Android Development] appelflap:
Yeah, and what's best: the test itself doesn't take that long. :p
[Galaxy S I9000 Android Development] dk_iceman:
hey im on i9000XWJM5 with HACKDOWNS HackEclair over it and i just added the One Click Lag Fix...

but after reboot my score is only 895 in quadrant and thats far from what i see all other gets...

any suggestions ??
[Galaxy S I9000 Android Development] ezechiel1917:
thanks for one click solution! worked perfectly, phone feels really smoother so far :cool:
[Galaxy S I9000 Android Development] dudeldei:
Just want to join the crowd and pay my grattitude for this amazing easy-fix. My experience is like many others here.

- I flashed JM5

- EasyRoot

- Quadrant = 800-900

- Installed your fix

- Quadrant = 2200

Nice to see that Samsung is probably taking this seriously and will take these findings and put them to good use :)

Thanks!
[Galaxy S I9000 Android Development] zmirburger:
okay got it to work,

unmounted both drives on the computer

click turn off usb storage on the phone

run the lagfix

hope this helps some people
[Galaxy S I9000 Android Development] RyanZA:
Haha, but what will compensate me for having to listen to the vuvuzelas being blown directly in my ears?! :D

There should be no instability issues at all. This fix is surprisingly simple, it is pretty much just adding an extra layer between android and the hardware that does a bit of buffering. There are still a few things I'm testing that could give better real-use performance, as well as more than 1GB of application space. Plus I need to find out why the busybox sh isn't running if [ $? = 0 ] commands.... makes creating error checking a problem.
[Galaxy S I9000 Android Development] Astitious:
Thank you for helping to make my phone usable!
[Galaxy S I9000 Android Development] ebbhead:
First, awesome fix. Thanks a bunch!

About that, I'm sure it's just a typo from your side, but shouldn't it be " if [$? == 0]" ... ? ;-)
[Galaxy S I9000 Android Development] Nuukeer:
Use it as a mass-storage device, in the Usb-settings.
[Galaxy S I9000 Android Development] raimondomartire:
adb shell
su -

busybox rm /data/data
busybox rm /system/media

busybox cp -rp /disk/data /data/
busybox cp -rp /disk/media /system/

You do this in the exact same way you originally applied the mimocan lag fix. All this does it revert it back, and copies your data back.[/QUOTE]

samset script for lagfix is this how revert, please?

clear

echo echo Lag Fix script - your phone will reboot when complete! Ignore 'rm' error below, this is normal behaviour for a LagFix first run.>/sdcard/temp.sh

echo rm /data/data>>/sdcard/temp.sh

echo cp -rp /data/data /dbdata>>/sdcard/temp.sh

echo mv /data/data /data/data.bak>>/sdcard/temp.sh

echo ln -s /dbdata/data /data/data>>/sdcard/temp.sh

echo reboot>>/sdcard/temp.sh

su</sdcard/temp.sh

with samset 1.7 form me but velocity is egual

===============================================================

===============================================================

One Click Lag Fix for Galaxy S I9000

===============================================================

===============================================================

__________________________________________________________

Pushing required files to /sdcard This is internal SD Card Please wait.

* daemon not running. starting it now *

* daemon started successfully *

113 KB/s (1741 bytes in 0.015s)

3 KB/s (56 bytes in 0.017s)

13 KB/s (177 bytes in 0.013s)

Now running lag fix. On your device, select allow root privledges!"

Creating 1GB file to store data inside. This could take a long time...

Creating loopback, you may see an error that it already exists. Ignore that erro

r.

Linking loopback to the 1GB file store

Creating the EXT2 filesystem

Creating a mountpoint for files, you may see an error that it already exists. Ig

nore that error.

Mounting device

Copying data across

Clearing out any old backups, ignore any errors

Backing up old data

Linking to fast ext2

Now setting up reboot support

Moving boot animation

Copying over init scripts

Setting up permissions

All Complete!

Script complete!

Premere un tasto per continuare . . .
[Galaxy S I9000 Android Development] Monkey101:
Wow, seriously just WOW.

Thanks a lot man. Really made a difference. Took not even 5 minutes and all is going great.
[Galaxy S I9000 Android Development] RyanZA:
Woops, mistype. I mean I can't get any if [ ] to work... I'm sure it's something stupid I'm doing somewhere! ;)
[Galaxy S I9000 Android Development] droidal:
This was a fresh open cause I rebooted right after applying fix. Asphalt5 opened right up fast no lag.
[Galaxy S I9000 Android Development] turbosix:
also getting this after quadrant is done, any insight?
[Galaxy S I9000 Android Development] stockfeed:
wrong busybox version. see 1st post.
[Galaxy S I9000 Android Development] Vascariz:
Ummm I think its been asked before but is there a reason why ext3 or ext4 is not being used?

I'm personally waiting for the beta but it seems strange to use ext2?
[Galaxy S I9000 Android Development] RyanZA:
Hmm.. if the script you posted here is how you lagfixed samset to begin with, then this should revert it, but no guarantees it won't blow up your data! It looks like that script has moved your data off to /dbdata/data so this will just move it back.

rm /data/data
cp -rp /dbdata/data /data/
rm -rf /dbdata/data

Something looks funny about this lagfix though. ;)
[Galaxy S I9000 Android Development] RyanZA:
EXT3 is just EXT2+journaling

The extra journaling output from EXT3 slows things down a lot. Since we're making a virtual filesystem inside RFS which already has journaling, we believe it isn't necessary.

Plus EXT2 is faster and I like it fast! No problems so far with reboots or any lost data, so it seems to be working out just fine. :D
[Galaxy S I9000 Android Development] BigWorldJust:
I keep getting error device not found.
[Galaxy S I9000 Android Development] FadeFx:
ext3/4 just slows this down and does wear the internal sdcard out since it has lots more write operations due to journalling.
[Galaxy S I9000 Android Development] RyanZA:
Oh yeah, I actually upgraded this to beta awhile ago (check out the first post). I was keeping it alpha until it met my criteria of being tested by a large number of people, and not causing any problems that aren't in the known issues list. The actual file has not changed between alpha and beta though, since it turns out the alpha was already beta quality. :D

Release version will be when no known issues that can be fixed remain, and there is enough error checking that it will be impossible to do anything bad to your device.

...its not yet anywhere near release version. :D
[Galaxy S I9000 Android Development] FadeFx:
try restarting your pc