yashsingh1/xdaforums huggingface dataset:
[Captivate General] sman789:
We have the NoLed app thank can turn on the screen. Has anyone written a program to set a hardware key password? For example press Home, Search, Menu then back and it will bring you to your homescreen from an off display?
[Galaxy S I9000 Android Development] RyanZA:
Oh, awesome. I managed to post this in the wrong forum. Doh!

Could a moderator please move this to Android Dev sub forum?
[Galaxy S I9000 Android Development] MAMBO04:
haha looks awesome dude but you are correct, wrong section ;) im gonna try it now, will report in 5 mins!
[Galaxy S I9000 Android Development] E_man5112:
A few people in the other thread said they had the first lag fix working on the captivate. Anything that might change that with this release? I came to download the old one, and here a new one is
[Galaxy S I9000 Android Development] sirphunkee:
abra-cadabra...

*POOF*

Done! ;)
[Galaxy S I9000 Android Development] RyanZA:
The old one is still here. Nothing has changed that should stop it working on the captivate though, but it is completely untested. Use the 1.0 (which has had a lot of testing) until this one has been put through the paces. :D
[Galaxy S I9000 Android Development] RyanZA:
Thanks. :D
[Galaxy S I9000 Android Development] amerikian:
I'm running the manual ext2 fix with Q scores 2000+. I'll try 2.0 Util tonight and post feedback....
[Galaxy S I9000 Android Development] Dominik06:
Someone got some benchmarks? :D

Maybe for xxjp3? I only reach 1900 in quadrant.. /:
[Galaxy S I9000 Android Development] hcarrega:
gonna test report in 5minutes
[Galaxy S I9000 Android Development] Zilch25:
I'm in the process of flashing back to stock on my Captivate so I can give this a legit test. I'll report back here and let you know how it goes. Assuming my Captivate doesn't melt I'll update my OP from the thread about the original fix in the Captivate section!
[Galaxy S I9000 Android Development] tron13:
About what lag is this?
[Galaxy S I9000 Android Development] RyanZA:
Benchmarks are roughly the same as 1.0. You can expect about 100 points more on average though, at least on my phone.
[Galaxy S I9000 Android Development] clubtech:
I just removed the V1 version and finished the V2.

It finally finished and rebooted the phone. now it tells me my internal memory storage is full. None of my Widgets will load.

Looking i see only 14MB free in internal storage.

thoughts?
[Galaxy S I9000 Android Development] RyanZA:
Just as long as you point out that this fix isn't heavily tested yet! :D
[Galaxy S I9000 Android Development] Zilch25:
Oh I know, I'm going to emphasize that heavily, lord knows I don't want to get stuck on tech support all night :cool:
[Galaxy S I9000 Android Development] RyanZA:
Thoughts? That's bad. :D

You should be seeing roughly 215mb free. Did you see any errors in the log at all?
[Galaxy S I9000 Android Development] Guiper:
Everything is working fine for me. First reboot after lagfix had some problems with downloading apps from market, but after a second reboot it got fixed.

"Biggest" problem now, is just the phone stating that my internal phone storage is too low, with an icon on notification bar that I cannot remove. Already deleted some .bak from /data folder, any more tips what I can delete to get rid from this message?

Regarding the fix. apps are indeed much more snappier, no lag on the system when installing apps from market, and overall if the phone would continue like this for the next 48 hours, lag fix form me is solved. I had some problems after some 24h, with some lag, even with the previous version of the lag fix.
[Galaxy S I9000 Android Development] RyanZA:
Looking through my old V1 remove script, I believe I was leaving behind the .bak files! Nastyyy... I'll update V2 to remove those if they're there on install. Will hopefully clear up any problems.
[Galaxy S I9000 Android Development] NeoXTC:
212mb is normal cos now you have 1.7g to install apps. Installing apps and stuff should not decrease your 212mb free.
[Galaxy S I9000 Android Development] Tayutama:
What people don't seem to understand is that all new data won't be in the remaining 212mb but in the 1.7GB file we made in /data.
[Galaxy S I9000 Android Development] KPOCAB4EG:
===============================================================
===============================================================
One Click Lag Fix for Galaxy S I9000
===============================================================
===============================================================
__________________________________________________________
Pushing required files to /sdcard - Please wait.
* daemon not running. starting it now *
* daemon started successfully *
mkdir failed for /sdcard/lagfixtemp, Permission denied
failed to copy 'createlagfix.txt' to '/sdcard/lagfixtemp/createlagfix.sh': Permi
ssion denied
failed to copy 'playlogos1' to '/sdcard/lagfixtemp/playlogos1': Permission denie
d
failed to copy 'userinit.sh' to '/sdcard/lagfixtemp/userinit.sh': Permission den
ied
failed to copy 'busybox' to '/sdcard/lagfixtemp/busybox': Permission denied
failed to copy 'e2fsck' to '/sdcard/lagfixtemp/e2fsck': Permission denied
failed to copy 'libext2_blkid.so' to '/sdcard/lagfixtemp/libext2_blkid.so': Perm
ission denied
failed to copy 'libext2_com_err.so' to '/sdcard/lagfixtemp/libext2_com_err.so':
Permission denied
failed to copy 'libext2_e2p.so' to '/sdcard/lagfixtemp/libext2_e2p.so': Permissi
on denied
failed to copy 'libext2_profile.so' to '/sdcard/lagfixtemp/libext2_profile.so':
Permission denied
failed to copy 'libext2_uuid.so' to '/sdcard/lagfixtemp/libext2_uuid.so': Permis
sion denied
failed to copy 'libext2fs.so' to '/sdcard/lagfixtemp/libext2fs.so': Permission d
enied
failed to copy 'mke2fs' to '/sdcard/lagfixtemp/mke2fs': Permission denied
failed to copy 'resize2fs' to '/sdcard/lagfixtemp/resize2fs': Permission denied
failed to copy 'tune2fs' to '/sdcard/lagfixtemp/tune2fs': Permission denied
Now running lag fix. On your device, select allow root privledges!"
/system/bin/sh: Can't open /sdcard/lagfixtemp/createlagfix.sh
Script complete!
Для продолжения нажмите любую клавишу . . .

I9000XXJG3, rooted (updater.zip) What is my mistake?
[Galaxy S I9000 Android Development] ukdtweak:
Are you rooted and did you accept SU permissions, because the scipts says permission denied?
[Galaxy S I9000 Android Development] KPOCAB4EG:
I clicked "Allow" for a pop-up window.

P.S. I apologize for my remark :)
[Galaxy S I9000 Android Development] toca79:
Oh i see, now it is perfectly clear.

Thanks for the answer:)
[Galaxy S I9000 Android Development] lafaya:
just my 2c but I think it's best to reflash rather than going from v1.0 to v2.1. I tried to unlag and the phone yielded unexpected results. :\

Things are working fine now
[Galaxy S I9000 Android Development] Muaddib69:
Ryan, to make things clear...

In order to avoid problems installing v2.1...

What are the files/folders to delete manually after uninstall v1?

My guess (correct me if I'm wrong):

/data/dalvik-cache.bak

/data/data.bak

/data/ext2data (???)

/data/system.bak

thx
[Galaxy S I9000 Android Development] THUDUK:
Just done the one click 2.1 lag fix, all start ok, clicked to let permissions, loads of cant move errors, then completed, restart, NOW sits with a BLACK screen...Now what ?:confused:
[Galaxy S I9000 Android Development] bucklino:
Excuse my ignorance ...... but how do I remove the. bak files manually after running the unlagedfix V1? My phone is rooted, but neither astro nor explorer show any file /data? Where do it are? /sdcard/data?

If I make a factory reset for recovery or flashing JM5 again, those files disappear?

Finally ......... use to V. 2.1, do I need to install, before running the lagfixme, the busybox file coming in from. Zip file or by running the lagfixme it installs? I ask this because to decompress the V 2.1 I noticed that he has a busybox .....

Thank you so much.
[Galaxy S I9000 Android Development] piya_m:
Just off topic question with a little relate to this lagfix.

I read about some problem with app-private folder which should be for purchased apps.

But when I use root explorer to see there, I don't have anything in it.

I've bought some paid apps from market but I use market enabler as my country don't allow paid apps.

And when I look in app folder, my purchased apps are installed there.

Is this normal if I use market enabler to buy apps from market ?
[Galaxy S I9000 Android Development] j0bro:
RyanZA,

Howzit! (lived and worked in SA myself for a year, great country)

Using your lagfix, works great. I would like to suggest though that you build in some checks in the script, as a lot is done without checking preconditions and your galaxy != other galaxies :) Just have a look at the number of people that see all kinds of unexpected results due to other configurations and user errors!

You could use the power of linux shell scripts to perform some basic checks on file existance, space, permissions, and what not. Thus you could ascertain that the script will succeed rather than just go for it and leave lots of people with a brick in their hands.

You intended to make this fix a n00b-safe "click-n-go" one, so I'd really recommend that you build in some precondition-checks and rollback behaviour.

Just my 2 cents!
[Galaxy S I9000 Android Development] Zilch25:
Actually had some people still having issues with 1.6 last night- which is strange considering I'm running it fine. I did however tell Odin to repartition my disk when I installed the new JH2 firmware (A step I'm almost certain people aren't doing), but I really doubt it's giving me that much more space over the normal stock partitioning job. 1.0 seems to be super-safe for Captivate, 1.5 hasn't had any issues so far, and 1.6 seems to be 50/50.

Still trying to get to the bottom of this on our end, but some people are having some bizarre errors... we've got one guy claiming he no longer has the market at all and a reset set him back to factory O_o.

Definitely some bug hunting left to do
[Galaxy S I9000 Android Development] riz157:
My quadrant score prior to 2.0 fix 885 now 2323, will observe over the next couple of days to see if it is any snappier! Mind you i did flash sam's custom rom which is causing me few problems. Might have to flash another custom rom or flash JM5 again. Would this mean I would have to install your lag fix again?
[Galaxy S I9000 Android Development] WhatZitTooya:
ya, not all payed apps got this issues. dont know whats so speacial on some apps...

hope this will be fixed asap :)
[Galaxy S I9000 Android Development] XlAfbk:
used the update.zip v1.0. Can I still install this without loosing my data or do I have to wait for a new update.zip or is it even not possible at all to retain my data?
[Galaxy S I9000 Android Development] Tayutama:
You should be able to do the RemoveFix that is included with the first update.zip and then do this one after.

The new update.zip for this is still abit away as i have some problems getting it to work properly
[Galaxy S I9000 Android Development] bucklino:
Anyone? :)
[Galaxy S I9000 Android Development] Tayutama:
Don't know if Factory reset will remove those but reflashing the firmware though Odin will remove them.

Also they should be under /data
[Galaxy S I9000 Android Development] Zilch25:
Has anyone looked into finding a way to change the low space threshold? It seems like it's percentage based (Since devices with less internal storage like the N1 can go down to around 20MB before getting the low space message) and we seem to get it if we get ~185ish. I'm digging around, but it doesn't seem like there's much info on doing such a thing.
[Galaxy S I9000 Android Development] xryptic:
Just take out the batt, and reinsert it in, doubt this fix will kill the bootloader.
[Galaxy S I9000 Android Development] cthulhu501:
I tried 5 times to restore via odin, and only froyo rom start the restore process, and the 5 times, the process stop at factoryfs

<ID:0/006> Sbl.bin

<ID:0/006> boot.bin

<ID:0/006> cache.rfs

<ID:0/006> dbdata.rfs

<ID:0/006> factoryfs.rfs
[Galaxy S I9000 Android Development] Cymatrelic:
Erm sry to bug u guys here. theres enough noobs crying about stupid stuff xD Im one of em... kinda searched the forum but didnt find any answer.

My galaxy s is rootet, fimware jm2 with clockworkrecovery installed.

i dont have any other lagfix running atm. When i click the bat file im not even asked by my phone for the superuser-allow thingy (dunno how its called in english. <-german dude). The bat file doesnt really do anything because for all the steps he just says "permission denied".

i got usb-debugging on and all. dunno whats causing this :(

Anyone got an idea?
[Galaxy S I9000 Android Development] xryptic:
oh man, this is bad :(
[Galaxy S I9000 Android Development] Kil:
Tried rebooting the computer itself? had the same problem, freezed every time, took the battery out 10 times etc. etc., then i rebooted the pc, tried again, and all went fine.
[Galaxy S I9000 Android Development] turbonutter:
:)

Finally i'm back where i want to be.

I installed JG5

Then the Modaco r3.

Then this lag fix.

Then the 1.2 Kernel.

My scores :

Linpack 9.657, 9.9, 9.874, 9.886

Quadrant 2544, 2530, 2575, 2570.

As i have scored slightly better and the pains i had before v2 of the fix came out are gone i'm gonna try another rom or 2 and see how they score.
[Galaxy S I9000 Android Development] Tayutama:
New Update.zip

Testet on firmware: (Did a fresh reflash every time)

I9000:

I9000XWJG5 (Eclair - Europe)

I9000XWJM1 (Eclair - Europe)

I9000XXJP2 (Froyo - Europe)

I9000JPJG8 (Eclair - Africa)

Captivate: (Thanks to Zilch25 for testing)

I897UCJH2

Instructions:

(Note that i recommend that you do a fresh reflash through ODIN.)

1. Download the update.zip of your choice and rename it to update.zip if you don't use Clockwork Recovery. if you do then it can keep the name.

2. Place it on your internal sdcard.

3. Turn off your phone.

4. Hold down Vol Up+Power button+Home Button 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 'SL4A' app to run the scripts.

8. After install, the phone restarts.

9. Go to the newly installed 'SL4A' application from the app list, open it and choose either LagFix_Ext2.sh or LagFix_Ext3.sh to install the fix.

10. The script should run and take a between 10-15 mins.

11. Phone will reboot by itself to complete the fix and when the phone is booted up the fix in complete.

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

Step 4 is the steps for the international version of the I9000 - Got no idea what the combo is for the other versions

Notes:

The current version works on Froyo BUT you can only use the ext2 option as the current kernels in Froyo doesn't support ext3.

ToDo:

Change the script so we omit the /sdcard.

Credits:

RyanZA - Original bat fix

husq510 - Supplied files needed to enable ext4 support

Zilch25 - For being my test subject on the Captivate board :)

Changelog:

v2.2.2

This fix is for Captivates running firmware I897UCJH2

Turns off GPS logging and removes whatever logs that might already have been made

v2.2.1

Fixed old bug with /data/app-private

Added checks to scripts so they check if your system has support for the filesystem you choose

v2.2

Added Check_Space.sh to sl4a

Added support for ext4 (Only works on eclair builds)

Busybox 1.17.1 is NOT required anymore, but is the version i'm including.

v2.1

Based on RyanZA's v2.3

Added support for ext3 (Only works on eclair builds)

Removed support for /dbdata/databases

Changed /data/app-private from mount to symlink

Added two versions of the zip's. One for people who already have a rooted SGS and one that will root the SGS.

v2.0

Based on RyanZA's v2.0

Initial release.

Added support for /dbdata/databases

Added support for /data/app-private
[Galaxy S I9000 Android Development] Zilch25:
Tested things out a little. My phone sits at 194MB free space and does not get low storage warnings. I pushed an 8MB file into the app-private folder and that was enough to push me into low storage mode. We're cutting it *really* close right now, and without app-private data being in the ext2 file its *very* easy for people with paid apps to go over the limit.

(This is from a Captivate with JH2, fresh firmware and a 1.6GB EXT2 file)

IMHO at least for Captivate owners, 1.5 is the safest route to go =/ Lord knows how AT&T bloated these things up
[Galaxy S I9000 Android Development] Tayutama:
I have added app-private and /dbdata/databases to the update.zip.

If you want you can take a look or i can post the changes i made from RyanZA's version to the update.zip to include app-private in the bat files.
[Galaxy S I9000 Android Development] Zilch25:
Awesome, I'll grab that and pick it apart and test it for the Captivate folks!
[Galaxy S I9000 Android Development] Gr8gorilla:
If we were using a kernel that supported ext3/ext4 could we make the loop file ext3/4 and still have everything work?
[Galaxy S I9000 Android Development] kgk888:
Going to test this now on i9000
[Galaxy S I9000 Android Development] Tayutama:
The current kernel in the Eclair builds does support ext3 but not ext4.

Reason we haven't done it with ext3 yet is because ryanza wanted the tools integrated into busybox.
[Galaxy S I9000 Android Development] akinandroid:
Thanks!

Ryan and everyone else who has contributed:

I just applied this fix to my stock fw (Vodafone UK) and am delighted. Made the move from iPhone to Android after 3 years and was beginning to wonder if i had made a mistake. i could see the promise in the galaxy s but the lag was killing me as iPhone 3GS had none ever.

This fix was easy for a total noob like me and aside from the fact that i had to re-add all my widgets to TW after reboot (they all said 'problem loading widget'), it seems to be working very well and the quadrant benchmark went from 886 to 2136!

So i just wanted to say thanks as this had been upsetting me! Thanks :)
[Galaxy S I9000 Android Development] cthulhu501:
The result is the same... I think the factoryfs is broken... and i've now a luxury but unusable phone :(
[Galaxy S I9000 Android Development] Zilch25:
Strange, modified the space requirements for the captivate, but towards the end of the script the SU app FC'd on me- though the script *seemed* to continue running. Once it rebooted I got the AT&T Logo, then blackscreen, had to power down. On restart everything came up, but all my userdata is gone. Wonder if this is due to the SU closure or something I botched up
[Galaxy S I9000 Android Development] Tayutama:
attach the script an ill take a look.

btw which version of the superuser app are you using?
[Galaxy S I9000 Android Development] RyanZA:
Original goal was to have all of that stuff in, but I haven't had time to build in checks and test them properly. If anybody has the time to modify the script files and fully test them with checks then I will be happy to put that into the OP with full credits, etc. Tayutama has done a good job of making update.zip versions which have a lot of these checks in already. Plus, checks throwing off a strange error and the lag fix not working isn't the solution either. I guess it is nicer to have the script say 'Your phone can not use the lag fix', but I would prefer for the lag fix to Just Work Always.

Another reason is that adding in a lot of scripting checks makes the files more difficult to read, and it is harder for people to see exactly what they are doing. This is a priority for me, since I'd like as many people as possible to read through the scripts and test out different options. Plus, if something goes wrong, it should be easy for anyone to look at the script and see that 'mount -t ext2' doesn't work on their phone. It also works as a pretty good reference implementation of the lag fix for others to build off of. :D

Final goal of all this is to have an app that people can download off the market, run, click 'install lag fix' and have everything done for them, with it working always and on every firmware. Clearly this is still a long way out, and I'm hoping that Samsung will have this fixed for us before this is even ready. More than likely, since this is Samsung, we'll have the fix first... :)
[Galaxy S I9000 Android Development] Zilch25:
I had the old one, but your script tosses the new version in there. I'm rolling back using the built in MCR script.

It could be a fluke though =P

Had the new SU utility FC on me just poking around in it... there might be some issues. Would rolling back be as easy as dumping the old Superuser.sdk into the update.zip?
[Galaxy S I9000 Android Development] Gr8gorilla:
are you using 64bit os? That is a serious problem with odin and causes no end of headaches.
[Galaxy S I9000 Android Development] RyanZA:
Not really possible. Follow these steps exactly:

Unplug phone. Pull battery out of phone.

Reboot your PC.

Put the battery back in. Hold down vol+home+power until you see downloading mode.

Start up Odin on your PC. Make sure kies is closed.

Select all the correct settings in odin. (PDA, radio, CSC, PIT)

Plug your phone in. Wait 5 seconds.

Hit start.

This always works for me.

EDIT: Also, plug your phone in directly to your PC and not through a USB HUB.
[Galaxy S I9000 Android Development] procmail:
@Tayutama as soon as I launch SL4A and grant it superuser rights, I get:

cannot open sh: no such file.

I have previously used your 1.0 update.zip and have run RemoveFix.sh prior to using the 2.0 update.zip, for eclair.
[Galaxy S I9000 Android Development] Tayutama:
Hehe i have already been messeing with making my update.zips into an apk but since i have never used java before like this i'm kinda blank. had it been php or c# np but...
[Galaxy S I9000 Android Development] RyanZA:
I'm way more comfortable with java than with this linux scripts! :D

Just haven't had the time to make it though.

I wish there was some easy resource on all of the differences in partitions between the different galaxy s variants. It would take away so much guess work...
[Galaxy S I9000 Android Development] Tayutama:
You only changed the size from 1600 to 1500 right? If so that shouldn't make any errors.

Both my zips have the newest version of su and Superuser.apk in them, but if you want to use the old version of superuser.apk and go into an adb shell and type: rm /system/app/Superuser.apk

And then in a terminal type: adb push Superuser.apk /system/app

To get the old version of superuser.apk.

Ofc you can also just replace it in the update.zip but don't know if you need to resign the zip then.

Hmm and you can see LagFix.sh and RemoveRix.sh?

How about rebooting the phone and then going into sl4a and try again?
[Galaxy S I9000 Android Development] procmail:
Sorry, I meant after I clicked LagFix.sh and granted SU rights.

I just rebooted to try again, and it's the same error.
[Galaxy S I9000 Android Development] Zilch25:
Yup, only changed the EXT2 file sizes. As for SU, trying to revert to the old version was a nogo, even the old version throws up FCs, it might just be my phone being fubar from so many lagfix/unlagfixes. I'd also used a custom ROM (Bugless) to remove all the bloat and autoroot me, so that could also be the culprit. I'm flashing back to an unrooted JH2 ROM and I'll let you know how it goes.
[Galaxy S I9000 Android Development] Gr8gorilla:
I am using the captivate version on the Vibrant and it is working fine. I used the modified version that seemed not to work on the captivate on fresh odin flash of stock firmware.

So far so good.

Hope for some ext4 support soon........
[Galaxy S I9000 Android Development] j56bp:
#4 Hold down Up+powerbutton+Menubutton for a couple of seconds until u see the galaxy logo.

it just restart for me !! why

? any advice plz
[Galaxy S I9000 Android Development] cthulhu501:
No, i'm on winxp sp3 32bits, and i've never problem for using odin before

I've exactly what you said.

My phone is plugged directly to my pc.

And it doesn't work. But, the progression bar is moved up, always in "factory fs" but my phone is connected and in install from 45 minutes...