yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] RyanZA:
Woah.. huge difference for mount vs symlinks?!

yaffs2 native partition on the internal SD card would be awesome. Using yaffs2 instead of ext2 as a virtual drive probably won't help performance. Worth testing though! :D
[Galaxy S I9000 Android Development] mekwall:
Sure go ahead! Well, I wanted to ask since I used your update.zip in my release to root and get the right busybox hehe :)

I'm also looking into coding something in python and merge everything into one single application that can be used cross-platform. But that won't be necessary until there's a real fix and also once I decide to release my own rom.
[Galaxy S I9000 Android Development] mekwall:
I don't think that's the only difference. Since I reflashed (like 40x times harrrharr) from yesterday, I can't seem to replicate that score :( and it wasn't just a one-timer, I got 2700-2800 many times in a row. Right now I get about 2500-2600.
[Galaxy S I9000 Android Development] Tayutama:
Remember he is using a OC'ed kernel so the score will be higher then none OC'ed kernel's :)
[Galaxy S I9000 Android Development] fantacies:
Somehow your scripts look much beautiful than ever. :D
[Galaxy S I9000 Android Development] jzero88:
Awsome script, here is my Quadrant conclusion :D

One problem though, my Gmail account will not update. It won't send or receive email? I have no idea how this could affect that, but is anyone else having this issue? Anyone know a fix, thanks.

Jzero88
[Galaxy S I9000 Android Development] mekwall:
True, but what I know nobody else have gotten 2800+ ... right? :D
[Galaxy S I9000 Android Development] Diamond_dawg:
interesting posts
[Galaxy S I9000 Android Development] Tayutama:
Here is a .zip with only su, superuser.apk and busybox version 1.17.1

No idea not even using this myself :) since my MoDaCo r2 (Froyo) runs just fine for me without the fix.

Done loads of reflashing between 2.1 and 2.2 the last two days just to test out the update.zip i made earlier :)
[Galaxy S I9000 Android Development] mekwall:
Thanks mate!! That's great :) I still haven't got around signing my own updates yet...

Btw. Is that the latest Superuser.apk? 2.3?
[Galaxy S I9000 Android Development] RyanZA:
Hmm... playing around with mount instead of symlinks, and I seem to be getting roughly the same score. Maybe a tiny bit higher - I don't think it really makes much difference.

# clean up old whiteouts
for i in local misc property system tombstones data;
do
if [ -h /data/$i ]; then rm -f /data/$i; fi
done;

Not sure if this would do anything helpful? I guess it's nice for housekeeping. :D

# Zipalign
if [ -e /system/bin/zipalign ]; then
LOG_FILE=/data/zipalign.log
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "Starting Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
for apk in /data/app/*.apk ; do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ]; then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ]; then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;
fi;

That looks awesome though -- if the system isn't already doing that by itself. Doesn't android automatically zipalign? If not, why not?
[Galaxy S I9000 Android Development] mekwall:
Hrmm... Too bad! I wonder how I could get that huge performance boost then... Need to go back to my old scripts and check.

It comes from modacos scripts. Thought it might do good ;)

This one is from SamSet 1.9b. It's the zipalign init.d script. Not sure if it's made by setenza or not. Why android doesn't automagically zipalign is a good question... I don't mind a longer startup if it makes my sammy fully optimized :cool:
[Galaxy S I9000 Android Development] Tayutama:
Nah it's 2.2.

Didn't know there is a 2.3 out. Though i can make one with that version if you prefer that.
[Galaxy S I9000 Android Development] darkknight49:
anyone know what the possible consequenses (for a lack of a better word) are for keeping the ext2 file system for a long period of time?

and will froyo fix any of these issues with the I/O or will we have to wait for Cyanogen?
[Galaxy S I9000 Android Development] RyanZA:
Okay scratch that, seem to be getting a consistent +100 quadrant score with mounting vs symlinking. This makes sense, since the kernel should have less work to do for traversing a mounted filesystem, vs having to first read the symlink to find out where to go.

I'm also going to move /data/app into the script as well, since it should speed up app installation.

Considering moving /data/gps also in the hope it makes my GPS slightly better - this one is completely untestable. ;) (joke)

New script should be up shortly, for slightly better scores. ;)
[Galaxy S I9000 Android Development] mekwall:
Yeah. If it works! He released it today :)
[Galaxy S I9000 Android Development] appelflap:
lol 2800+ . That's almost 2000 on top of a regular score. You guys are crazy :D
[Galaxy S I9000 Android Development] OrionBG:
Hi all

Just a quick question! I have JP3 ROM and after applying this fix my quadrant score gone up but to max 176x !! Somebody have any ideas why?
[Galaxy S I9000 Android Development] MrBusiness:
I used the update.zip method - used the MCR app.

After that i tried to run Quadrant, but it allways closed. So i tried soft reset.

Phone does not boot anymore :(
[Galaxy S I9000 Android Development] mekwall:
The only consequence is that ext2 doesn't have journaling and that we mount with errors=continue which means we are totally ignoring all type of corruption. So if your phone crash or if there's an improper shutdown, your data might become corrupted. rfs, ext3/ext4 and yaffs2 all have protection against that, but the downside is worse performance (not sure how well yaffs2 perform compared to ext2 though).

Froyo will most likely not fix this in itself. It all comes down to Samsung and what they will do about rfs. If they will keep it (and fix the bad performance) or if they will replace it with yaffs2. The community might be able to fix it sooner though ;)
[Galaxy S I9000 Android Development] icxu:
Give it a second try, should work.
[Galaxy S I9000 Android Development] appelflap:
I see more and more HD2 owners on this forum :) What do you mean max 176x ? 176%? In that case follow the procedure in the first step up to the letter. Make sure you have the right version of busybox installed etc.

BTW did you root the jp3?
[Galaxy S I9000 Android Development] mekwall:
Yeah, but now I'm only getting ~2600 :( booohoo! I need to get back to where I were before hehe
[Galaxy S I9000 Android Development] RyanZA:
Damn...

The mount method works great. Except you can't easily undo it! You can't unbind the mounts while the system is running... Bleh Bleh.

I'll try make the uninstall script actually work inside the boot animation...

... I can see a reflash coming soon in my future ...

I see you had the same problem too, uninstall.sh:

#busybox rm -rf /data/$i; # BUG: Can't seem to remove because files in use
busybox mv $BACKUP_DIR/$i.bak /data/$i;
#busybox cp -rpf $MOUNTPOINT/$i /data/$i; # Uncomment to copy new data to old

That is a pretty bad bug... :D
[Galaxy S I9000 Android Development] RyanZA:
I think he means 1760 - 1769 ;)

This is kinda standard for froyo roms. It's cause the JIT is broken. Apparently there is something you can edit to turn off the JIT with root, but I can't find the post where I saw it. :(
[Galaxy S I9000 Android Development] mekwall:
Yeah, I think the solution is to replace the userinit script with the uninstall and let that take care of it after a reboot... And then reboot a second time ;)
[Galaxy S I9000 Android Development] Tayutama:
Ok here is a version with 2.3 and the su version from the same release today.

Testet that it works on my device atleast this Superuser and su
[Galaxy S I9000 Android Development] Tayutama:
If you go that way then let the uninstall.sh make a an empty file that the userinit.sh the checks after on boot and if it finds it then it does the uninstallation and ofc deletes the empty file again so it doesn't keep doing this on boot.

Just an idea :)
[Galaxy S I9000 Android Development] Burnt:
Did this with wrong Busybox the first time, it improved working speed a lot, but data connection was gone. Showed the connection icon, but no data could be transferred from any app.

Reverted it, data connection worked again with phone lags as usual...

So I installed the needed version of Busybox and ran the script again. It showed no errors, phone was blazingly fast again, but the issue with the data connection was back again.

Any ideas? I don't even see how this fix could affect my data connection!?
[Galaxy S I9000 Android Development] swani:
Thanks alot works perfect with jm2..:cool:
[Galaxy S I9000 Android Development] FadeFx:
thats what i wanted to suggest also, just was a little too slow
[Galaxy S I9000 Android Development] iians:
My results

The Lag Fix worked as promised for me. This is my results using Quadrant Standard benchmark test after. Very noticeable improvements!!! Thanks to all that made this happen! I tested 2221 on my Samsung Captivate! Well cause I am a new member it will not let me post links, if anyone would like to see the picture with the results just msg me on here on on twitter = iians
[Galaxy S I9000 Android Development] RyanZA:
Since I'm gonna be moving files around in the boot init script, I may as well go the whole way and just do everything there. Wish me luck - 2GB app space coming up! (I'll go with 1.7GB actually, 0.3GB for the random stuff.)
[Galaxy S I9000 Android Development] Kjeldmis:
I can now verify that this indeed increases battery life over A2SD lagfix - From daily use it has given me about 3-4 hours more battery life, can anyone else confirm this?
[Galaxy S I9000 Android Development] mekwall:
You mean creating the image etc. there? That's the way I went to begin with, but then I thought that the initscript should have as little as possible in it ;)
[Galaxy S I9000 Android Development] MSHampton:
Finally took the jump and did this. WOW! Phone used to take about 5 minutes to get fully booted, now less than 1 and it's flying!

Thanks!
[Galaxy S I9000 Android Development] AllGamer:
you are exxagerating right? 5 min? i got tons of Apps and Games installed and it takes no more than a 1 min to boot using stock ROM
[Galaxy S I9000 Android Development] RyanZA:
You may have a point - does the phone stop what it's doing for the initscript, or does it just keep on booting?
[Galaxy S I9000 Android Development] Muaddib69:
Excuse my n00b-ignorance, but, this file provided by Tayutama is for lag fix or is that one to get root as explained here (h-t-t-p://xdaforums.com/showthread.php?t=728754) by BackfireNL (post named [REF] Howto root your SGS I9000 the easy way (keep all your data) (all firmwares))???

:confused::confused:

Thx in advance.
[Galaxy S I9000 Android Development] FadeFx:
maybe you could do all in the playlogo1 by using it as a junction to the next scripts so it has only to run through what it has to do...
[Galaxy S I9000 Android Development] FadeFx:
it is giving root and busybox 1.17.1, no lagfix
[Galaxy S I9000 Android Development] Muaddib69:
Thx Fade

(love this chat)
[Galaxy S I9000 Android Development] Tayutama:
The last one i posted is for mekwall only, pretty much for his version of this.

The last working version i made for this is linked to in the first post.
[Galaxy S I9000 Android Development] bub181:
Thanks for the file Tayutama! I noticed that your script deletes and replaces many of the standard android utilities like "cp" and "kill", for example, with busybox. Does the standard install from the market do this too? I would prefer to leave the standard utilities as is because: 1) it would be much quicker to call something like cp or kill instead of calling the equivalent version compiled into busybox; and 2) we don't know if busybox is fully compatible with the existing utilities.

Can you make an update script that just roots and then copies busybox into /system/xbin please?
[Galaxy S I9000 Android Development] IsaiahC:
So.... I just followed these steps and rebooted my phone. Now it just shows the Samsung Galaxy S logo shining over and over.... then it goes black and wont turn on.

Help?
[Galaxy S I9000 Android Development] mekwall:
It's only to get root, busybox 1.17.1 and Superuser 2.3
[Galaxy S I9000 Android Development] Tayutama:
your 1st point can be fixed rather fast:

in adb shell type: busybox --install -s /system/xbin

This unpacks all the tools where we before used busybox cp and that so you can just use cp.

About point 2... well no idea myself, but sure here is an update that doesn't delete some of the files in /system/bin
[Galaxy S I9000 Android Development] JoePR31:
Ok, these are the latest 2 to report data and/or Gmail sync issues. I know I noticed a few other individuals complaining about that earlier also. What I haven't noticed yet is one of you super smart guys who I depend on to let me know if a mod is safe or not making some sort of comment on this issue.

This is the only thing keeping me from trying this out. Does anyone have any clue why these guys are having data/Gmail issues?
[Galaxy S I9000 Android Development] bub181:
Thanks Tayutama!

Busybox definitely removes some functionality from the standard unix/linux tools. We don't know what sort of compatibility problems that could cause if we change the system to use the busybox equivalent instead of the tools that are already there. Could you please rerelease the update_root_2.3 that you released (without any of the lag fix scripts) (http://xdaforums.com/showpost.php?p=7602180&postcount=722) and just remove the sections in the update-script where you delete the existing tools and symlink to busybox?
[Galaxy S I9000 Android Development] Vascariz:
Looking forward to this! Especially the use of yaffs2 over ext2!
[Galaxy S I9000 Android Development] stianbert:
CPU Benchmark

anyone tried cpu benchmark i get 850ms but only 550 mhz not 1 giga, i have 1 giga before and same speed, maybe i can get more out of the battrey with same speed.?

on quadrant i get 2211.
[Galaxy S I9000 Android Development] IsaiahC:
So... Don't know if anyone saw this but I really do need help. My phone won't boot past the Samsung Galaxy S screen.
[Galaxy S I9000 Android Development] lpsi2000:
How to regain space lost by the fix

I try using the method listed on the first post since it seems easy enough. I forgot that upgraded busybox last night to 1.18. So ran the unlagfixme.bat to undo it. I got the 1GB back but not lost around 400MB. Anyway of getting that back? I have now installed 1.17.1 and will try it again. But, I would like to get that space back.

edit: ah, I think I figured it out. It seems to have been the results of backups done by the fix.
[Galaxy S I9000 Android Development] thmlwin:
Ohh my god, my phone is running just like a jet. Score is 2271 tested with a lot of background application running at that time. Former time, I use monoan lagfix and got score 1755 and now is 2271 with one click.

Thank you very much for all of your effort to improve speed of my phone.
[Galaxy S I9000 Android Development] PsydePhuk:
2225 ... Nice! Seems much faster and responsive. Keep up the good work.
[Galaxy S I9000 Android Development] Vascariz:
Is there like a memory management or autokiller app which can do this regularly? Not being lazy its just since I am new to this I will forget to do this or forget what to run to do this in a few months!
[Galaxy S I9000 Android Development] RyanZA:
New lag fix is coming along pretty nicely, but it has more work to go. The trick to moving data off /data seems to be to actually break the boot process so that it can't boot, and you're stuck with a blank screen. ;) Then the script works away in the background, fixes everything up, and reboots the phone.

Anyway, this will let us have 1.7GB or more of application space, and it lets me mount anything anywhere I want. Undoing it all works in the same way, so that's cool. Still needs a lot more testing, but I'll hopefully have something for you guys tomorrow!

Should have a bit more performance, 1.7GB of space for apps, and some extra checking at the start for the correct busybox versions. Also gonna try move /dbdata into its own EXT2 partition for even more speed! If it all works out, we'd be looking at bumping the BETA up to RELEASE and having (imo anyway) a fully complete lagfix for stock firmwares.
[Galaxy S I9000 Android Development] mekwall:
Well if you don't install/uninstall tons (thousands?!) of applications you won't need to do this. The dalvik cache is used to speed up apps, not to store any temporary data in that sense that it will fill up over time by normal usage.
[Galaxy S I9000 Android Development] M-XXXX:
E: failed to verify whole-file signature

I'm having problems with this... I've tryed both wayes from here: htt://xdaforums.com/showpost.php?p=7587405&postcount=417 Obe p is deleted in link (htt???)

I always get:

E: failed to verify whole-file signature

E: signature verification failed

Installation aborted

Any one has any ideas?
[Galaxy S I9000 Android Development] galaxydog:
I had the same problem, and vol+ pwr button + home didnt work either. I tryed it a couple of times(hold it longer)and it worked, then i resetted the phone and got it starting. Installed the fix again and now it works.
[Galaxy S I9000 Android Development] Tayutama:
Let me guess... you are running one of the Froyo roms?

The update.zip method will only work for Eclair builds aka 2.1. For Froyo you need to use the normal method
[Galaxy S I9000 Android Development] M-XXXX:
I quess you didn't guessˇˇ Yes you are corect. Thank you for! Gonna try normal one when I come home... On the second notice: does anyone has any info if its gona be update.zip for froyo anytime soon?
[Galaxy S I9000 Android Development] commander2k:
I dont know if this is related to the speed fix or not... But my phone has shut off 3 times since last night when I got this all up and running. I actually have to pull the battery out to turn it back on.

Yesterday when I was un-doing mimocams fix I accidentally removed instead of moved /data/data.bak and had to do a full reset, but I only had problems with shutting down since last night.
[Galaxy S I9000 Android Development] Prufrock:
I got exactly the same, running JF3, rooted, with bb 1.71 and in debugging mode.
[Galaxy S I9000 Android Development] MSHampton:
Okay, maybe 4. Seriously, it took forever. The phone was "usable" after about 1, but very laggish and it took another 3-4 mins for the widgets for the likes of FB and Twitter to actually populate with data. You could tell that processes were still loading because after about 5 mins, the phone settled down and was much better.
[Galaxy S I9000 Android Development] IDtheTarget:
Okay, I have one question, because I don't understand the system as well as I'd like:

If I apply the "update.zip" fix to my T-Mobile Vibrant, what happens when Samsung releases the OTA Froyo update? Does an OTA update re-flash? If not, could applying this fix break the OTA?

Thanks!

IDtheTarget
[Galaxy S I9000 Android Development] AndyCr15:
Got to be honest, I haven't read through the 20 pages since this post, I just don't have time right now :( But, yes, I have a battery issue -

http://xdaforums.com/showthread.php?t=750676

I didn't think it was related to this fix as I think it started before I applied this fix, but it may be?

I'm burning through 6-8% an hour at the moment :(
[Galaxy S I9000 Android Development] AllGamer:
I'm starting to see the pattern now, very much like the same issue with Windows Mobile phones.

the more stuff (widgets) that requires polling in the Home screen, the more time it takes to query all that information before it loads the App, if you got sevearal, say... Twitter, Email, Friendster, SMS, missed Calls, Weather, RSS feeds, and other alikes

when you turn on the screen, it polls all those damn things, wait for the 3G/Wifi to connect and get a recount, then it shows you the update info on screen.

Now i see why people complains about "lag" when it's not really the phone that is lagging, rather it's waiting for the info to be updated.

in the example above you'll be running 7 to 8 apps all pooling at the same time before it can draw the screen.

do this simple test, remove widgets that requires pooling from the home screen, and see if your boot time gets faster.
[Galaxy S I9000 Android Development] odyssey61:
Use root explorer and check the dalvik-cache directory, it should be empty.
[Galaxy S I9000 Android Development] engineer14:
well i finally installed it. at the end of the install, my computer said 'could not contact server' or something like that(is that expected?).

anyway i rebooted and ran quadrant. On my first try, i got 1900, on my second i got 2100 so i guess it worked.

Improvements i have seen:

1. programs load faster

2. (i dont know if this is just a placebo effect) web pages seem to load up faster.

where else did you all see improvements
[Galaxy S I9000 Android Development] stoneyfordni:
this is my first post on here tho i have been reading a bit over the last few weeks since getting my galaxy S ,i was running JG5 firmware thanks to a guide on here and i found that this had sharpened the phone up a little until i read this .

I will admit my first attempt bricked the phone - i failed somewhere but i managed to get it back to stock and my 2nd attempt was successful. I just want to thank who ever and all who has worked on this and all the best with what the 2.2 OS brings (Y) fantastic work guys .

Stephen

PS i went from quadrant score of 910 on a fresh galaxy s to 2225
[Galaxy S I9000 Android Development] theMaginator:
First of all Thanks Ryan and everyone that contributed to this.

I followed the steps but had BusyBox v. 1.18 so it did not work. When i reverted back to 1.17 it worked just fine. I am getting 2050 in Quadrant and the phone is overall very snappy.

However I'm having a few issues first of all GPS is no longer working and my dalvik-cache directory is full. I'm going to try doing it all again. Will post my results.

@Odyssey, what should I do about the dalvik-cache directory?

Also When I istall new apps weather they be through the Market or through side loading, will they automatically use this new EXT2 fix or will they install in the RFS section?

Sorry for all the noob questions.
[Galaxy S I9000 Android Development] nufclad:
Ok, here's the issue i am having.

Installed the FW with Odin. Added update, to the internal SD. Installed that.. ok no problems so far. Phone boots back up, i have root, and everything else. I run the script program, let it do its thing, but nothing actually gets done?

Whats this about unmounting? If i unmount internal and external, i can't see the 1024 script etc etc? :D
[Galaxy S I9000 Android Development] commander2k:
Arent these false quadrant scores? Yes the phone is much faster, but for a score over 2100 it should be making me breakfast in the morning. I know there was one other post on here exclaiming that. I mean... anyone?
[Galaxy S I9000 Android Development] odyssey61:
I dont think anything needs to be done at this time. My understanding from what others have written is its not a standard cache so just leave it for now.