[Samsung Infuse 4G] :
Often, folks ask how to root the Samsung UCLB3 leak or how to root the official AT&T Gingerbread release for the Infuse 4G (both are one and the same at the time of writing this). This how-to explains how to do this.

Note that this also works for rooting the earlier UCL** and UCK** leaks.

Easiest option - flash a rom that is already rooted.:

An easy option is to flash this Odin tar.md5 that I put together. It flashes stock UCLB3 with root already installed.:

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

Another easy option, if you already have cwm recovery, is to download and flash this version.:

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

And another easy option from qkster to get UCLB3 + cwm recovery in a Heimdall One-Click package.:

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

Another easy option - do it yourself.:

Another easy option is to flash one of the custom Gingerbread kernels with CWM recovery from here. This won't wipe your current OS, data, or apps.:

http://xdaforums.com/showthread.php?p=27123262

Download and place this file on your internal sdcard.:

http://downloads.androidsu.com/superuser/Superuser-3.0.7-efghi-signed.zip

Then, put your phone in recovery mode. Shut phone off. Hold down power button and both volume buttons, and once the Samsung logo appears, let go of the power button. Keep holding volume buttons down until you get to red CWM recovery.

From there, install the Superuser zip by choosing "install zip from sdcard".

More involved option - do it yourself.:

If you're like me, though, and like to do things the hard way, then below is another way to root the official release and leaked versions.

(Don't have the AT&T GB release or the UCLB3 leak yet? You can get the UCLB3 Gingerbread leak at this link: (http://xdaforums.com/showthread.php?t=1507658). Extract the file in 7zip. Place the extracted file in the PDA slot in Odin. Flash.)

a.) Assuming that you have already flashed the Samsung UCLB3 leak, or that you already have it through AT&T and Kies mini, know these two things.: First, SuperOneClick WILL NOT root this release at the time of writing this. Second, you won't be able to root with the stock kernel, so you will need to flash a custom kernel at least temporarily.

b.) If you intend to go back to the stock UCLB3 kernel after using a custom kernel to root (not a bad idea if you want to keep all stock functionality), then follow this step. If you plan to keep the custom kernel (which allows for improvements such as CWM recovery, Voodoo lagfix, etc.) then skip this step.

If you intend to go back to the stock UCLB3 kernel, save some time and disable Voodoo lagfix by creating a directory on your internal sd card (/sdcard/), labeled Voodoo. Inside that folder, place an empty file named disable-lagfix (with no extension).

If you go back to flash the stock kernel, you will have issues doing so if you have Voodoo lagfix enabled.

c.) Use Heimdall to install a recent custom GB kernel.

Download a recent custom GB kernel. A good custom kernel to use is Entropy's Daily Driver, which can be found at this link.:

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

Download and install the Heimdall suite on your computer. Follow ALL installation instructions in the README.txt file included with the program, including instructions for installation of the usb driver in zadig. If you don't install the libusb driver that comes with the program, your phone won't be detected, and you'll only receive error messages. Here is the download link.:

https://github.com/Benjamin-Dobell/Heimdall/downloads

d.) Put your Infuse 4G in download mode

Battery pull method: Pull battery, hold down volume keys, replace battery, connect usb cable, and continue to hold volume keys until phone is in download mode.

e.) On your computer, place the custom kernel zImage in the same directory as heimdall.exe. In a command prompt, make this your working directory, and type this into the prompt on your computer.:

heimdall flash --kernel zImage

If kernel flash is successful, the phone will reboot. If you disabled Voodoo lagfix, the phone will boot up without much wait. If you didn't disable Voodoo lagfix, wait for the robotic lady voice to go on about all that is being done to enable Voodoo lagfix. Hope you don't mind waiting. You remember that I suggested that you disable Voodoo lagfix, right? :)

f.) Download the cwm installable zip at the link below, and place it on your internal sdcard (/sdcard/). You'll flash this in recovery in a moment to get root.

ChainsDD Superuser zip (to flash in cwm recovery):

http://downloads.androidsu.com/superuser/Superuser-3.0.7-efghi-signed.zip

g.) Put the phone in Recovery Mode.

Button method: With the phone turned off, press and hold both volume buttons, as well as the power button. Release the power button after you see the Samsung logo on screen, and continue to hold the volume buttons.

h.) In recovery, choose "Install zip from sdcard". Select "Choose zip from sdcard", and choose the Superuser zip file that you placed on the internal sd card. Select "Yes -Install zip". When installation is complete, go back in the menu and choose "Reboot system now" After the reboot, you should now have the Superuser program and all system files necessary to be rooted.

i.) If you intend to keep Entropy's custom kernel, then you are done. You have rooted UCLB3 at this point, with a custom kernel.

If you want to flash the stock kernel now, you can do so, and you will keep root. To do that, download and extract the stock kernel zImage from HERE.

Be sure that Voodoo lagfix is disabled before going back to the stock kernel

. Use the same steps outlined in part e.) of this tutorial to flash the stock zImage, or just use SGS Kernel Flasher on the phone.

External sdcard issues?: If you go back to the stock kernel after flashing a custom kernel, you will most likely have trouble seeing your external sdcard. To fix this, use Root Explorer (or a similar app) to edit /system/etc/vold.fstab. In Root Explorer, browse to /system/etc and choose "Mount R/W" to gain write permission to the directory. Open vold.fstab in the built in text editor. Change the mmc2 in the last line to mmc1. Save and exit. Reboot, and you will regain use of your external sd card.

Hope that helps someone!