This is an “how to”. I will show you how to root your Samsung Galaxy S. The credits go to LeshaK for rooting method and lmfwtw for providing a small tutorial that this how to is based upon. Also credits to these sites Samdroid and Samsung Firmwares.
So lets start and try to root our phone.
THERE IS ALSO AN SECOND METHOD LOOK HERE
BUT FIRST BEFORE I BEGIN PLEASE, PLEASE DO NOT TRY THIS IF YOU DON’T KNOW WHAT YOU ARE DOING OR YOU DON’T WANT TO RISK YOUR PHONE BEEING BRICKED. ALTHOUGH THE HOW TO WORKED FOR ME AND OTHERS THAT DOES NOT MEAN IT CAN NOT GO WRONG. I TAKE NO RESPONSOBILITY ON THIS, YOU ARE ON YOUR OWN.
YOU HAVE BEEN WARN!
Not sure if it is really needed but just in case. On your phone go to Settings > Applications > Development > Check USB Debugging
Connect your Galaxy to the PC and wait for the drivers to get installed
Disconnect your Galaxy from the PC and shut it down.
Connect your phone to your PC
Boot your phone in to download mode, to do this press HOME + DOWN + POWER
You should see that Odin has recognized your phone
To proceed further you need to download two things and that is the pit file from here or directly from me here.
You also need to download the patched kernel from LeshaK from here or directly from here or from me here
In Odin select the pit file and the pda file and then press start.
When Odin finishes your phone will reboot automatically.
Login to your phone and connect it to the PC where you have setup adb. For info about adb go here
Open up a terminal/commandline and do the following:
adb shell su cat /sbin/su > /system/bin/su chmod 4755 /system/bin/su exit exit
Now you have two options you can keep this kernel or you can go back to the stock kernel. The kernel provided by LeshaK could be unstable (these are his words) so it’s up to you. If you wish to go back just flash the stock kernel like you did with LeshaK kernel. You can find different firmwares here just download your firmware and then look inside the tar files find the one with zImage in it. Remove everything besides the zImage, now you can flash that kernel.
I my self was running XXJF3 firmware but there is no firmware online for that so I just installed the kernel from XXJF5. You can download the tar file I used here
For root to work perfectly we need to do some more steps. When done with STEP14, whether you choose stock or not you need to follow this. Go and download the su-2.1-e-unsecure-signed.zip from here or directly from here or directly from me (already unpacked) here
Unzip the zip file.
Connect your Galaxy to your PC where you have adb working and do the following:
adb push PATH_TO_SU_FROM_THEZIP/su /sdcard adb shell su cat /sdcard/su > /system/bin/su chmod 4755 /system/bin/su exit exit adb install PATH_TO_SUPERUSER_FROM_THEZIP/Superuser.apk
From the market download an terminal for example the “android terminal emulator”.
Open the terminal on you phone and type in “su”, if you get an popup asking you to give permission for root then you successfully have rooted your phone.