[Samsung Infuse 4G] jscott30:
ABOUT:

This tutorial explains how to use adb to flash the following items starting from a UCLB3 base w/ root.

- Custom kernel w/ CWM recovery

- Modified 3e recovery

- Custom firmware (ROMS)

- Busybox

These instructions will most likely work coming from other rooted Infuse firmwares, but were tested starting from my Odin UCLB3 Unbrick package with root.

ADB SETUP:

Download: adb.zip

Download: SAMSUNG_USB_Driver_for_Mobile_Phones.exe

Setup instructions are for Windows, but adb is also available for Linux and Mac.

a.) If necessary, uninstall any previous Kies or Samsung USB Driver installations, and install the Samsung USB driver from the above download link.

b.) Unzip contents of adb.zip and copy the folder contents to C:\Windows\

c.) If your phone is booted up and running, make sure you select USB debug mode in settings. ADB also works in CWM recovery, and in modified 3e recovery.

d.) To test your installation, open a command prompt (Press WINDOWS KEY + R - type cmd - press Enter).

Type:

adb devices

If all is working, you will see your device listed.

Some quick command tips:

To move a file from your computer to the phone, "push" it:

adb push myfile.zip /directory-on-phone/

Of course, you need to be in the computer directory for your file in the command line to push it to the phone.

To get a file from your phone onto your computer, "pull" it:

adb pull /sdcard/myfile.zip

To access a command prompt for the phone:

adb shell

Inside that shell, you can use unix commands from within the Android OS to manipulate your phone.

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

INSTRUCTIONS FOR GINGERBREAD:

(Scroll down for ICS Instructions.)

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

Instruction steps must be followed in order

.

Step 1

: Use adb to install a custom kernel

Download: flash_image.zip (Extract and use flash_image for instructions below.)

You'll also need a Gingerbread kernel zImage.

adb push flash_image /data/local/tmp/flash_image
adb push zImage /data/local/tmp/zImage
adb shell
$ su
# chmod 755 /data/local/tmp/flash_image
# chmod 755 /data/local/tmp/zImage
# /data/local/tmp/flash_image boot /data/local/tmp/zImage
# reboot recovery

Step 2

: Use adb to install modified 3e recovery

Necessary for Step 3.

Download: 3e_recovery_no_sig_check.zip (Extract and use recovery for instructions below.)

adb remount
adb push recovery /system/bin/recovery
adb shell "chmod 755 /system/bin/recovery"
adb reboot recovery

Step 3

: Use adb to install a custom firmware

This step uses the modified 3e recovery to flash unsigned firmware.

You'll need to download the zip file for the Gingerbread (or possibly Froyo) rom that you would like to flash. These instructions have been tested by flashing my Ethereal rom.

Replace YourFirmware.zip with the actual name of your rom zip.

adb push YourFirmware.zip /sdcard/
adb remount
adb shell
# echo "boot-recovery" > /cache/recovery/command
# echo "--update_package=SDCARD:YourFirmware.zip" >> /cache/recovery/command
# reboot recovery

Let firmware flash complete, and then type:

adb reboot

EXTRA

: Use adb to install busybox

Download: Busybox-1.20.2.zip (Extract and use busybox for instructions below.)

adb remount
adb push busybox /system/xbin/busybox
adb shell
# chmod 755 /system/xbin/busybox
# ln -s /system/xbin/busybox /system/bin/busybox
# /system/xbin/busybox --install -s /system/xbin
# exit

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

INSTRUCTIONS FOR ICS:

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

STEP

: Use adb to flash an ICS kernel; then use blue CWM recovery to install an ICS rom.

Download: flash_image.zip (Extract and use flash_image for instructions below.)

You'll also need an ICS kernel boot.img and it is recommended that you push an ICS rom zip to your sdcard. Once you are in blue CWM recovery, you won't be able to use adb to push anything else to the device.

Replace YourFirmware.zip with the actual name of your rom zip.

adb push YourFirmware.zip /sdcard/
adb push flash_image /data/local/tmp/flash_image
adb push boot.img /data/local/tmp/boot
adb shell
$ su
# chmod 755 /data/local/tmp/flash_image
# chmod 755 /data/local/tmp/boot
# /data/local/tmp/flash_image boot /data/local/tmp/boot
# reboot recovery

From here, just follow the normal instructions for flashing your ICS rom in blue recovery.

I'll add to these instructions as I find more for ICS, and as support increases for adb in the CWM recovery we're using in ICS roms. At this time, adb support isn't fully working in Infuse ICS CWM recoveries. If you use adb to get an ICS kernel / CWM recovery combination, just use the recovery menu to do anything else. If you need to get other files onto the device while in blue CWM recovery, go to mounts and storage, mount /sdcard/, and mount USB storage.

Hope this is useful to someone else. I mainly wanted to see how much could be done with just adb, and I learned quite a bit about how the phone works in the process.