[Samsung Epic 4G Touch] sfhub:
Reference Section

A) Resources

a1) Samsung Epic 4G Touch drivers [USB/Android]

a2) Previous Versions [e4gtauto-v2.25.zip] [e4gtauto-v2.24.zip] [e4gtauto-v2.23.zip] [e4gtauto-v2.22.zip] [e4gtauto-v2.21.zip] [e4gtauto-v2.20.zip]

a3.1) ODIN - Full/Factory Restore -

One-Click

and also

Individual

Modem/Kernel/ROM tar files [EG30...FF11]

a3.2) CWM - Modem -

REQUIRES

EK02/newer-based kernel (+custom recovery) to flash [EG30...FF11]

a3.3) chris41g's stock kernels repacked with CWM [EG30 / EG31 / EK02 / EL13 / EL26]

a3.4) Steady Hawkin stock kernels repacked with CWM-Rogue [EL26/EL29/FB15/FB17/FB21/FB27 / FC06 / FC07 / FC18 / FC22]

a3.5) Original untouched leaked ROMs [EG30/EG31/EK02/EL13/EL26/EL29/FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24/FD02]

====

a4) ODIN - crawrj's stock EG30 kernel (pulled) + stock EG30 ROM (pulled)

a5) ODIN - bubby323's stock EG30 kernel (pulled)

a6) ODIN - squshy 7's - [STOCK][TAR] SPH-D710.EG30_CL435803_REV05

a7) ODIN - qbking77's [Modem] EL26, EL13, EK02, EG31, EG30, EG12

a8) CWM - calkulin/chris41g's [STOCK] EK02 ROM (rooted) + EK02 Kernel (CWM5 repack)

a9) EG30 - Full factory restore [ODIN]

a10) EK02 Kernel/ROM/no modem (full update) [ODIN] [CWM] - (thx kingsway8605/calkulin/chris41g)

a11) Modem - EG30 (full update) [CWM] [ODIN] - EK02 (patch EG30->EK02) [CWM] - (thx Przekret/id10terror/kingsway8605/viperboy)

a12) [Resource] Epic 4G Touch Owner's Toolkit

a13) EK02 OTA (patch EG30->EK02) - Sprint OTA [update.zip for stock recovery] / Rooted OTA [CWM] - (thx kingsway8605/chris41g)

a14) EL29 OTA (patch EK02->EL29) - Sprint OTA [update.zip for stock recovery] / Rooted OTA [CWM]

a15) FF18 OTA (patch EL29->FF18) - Sprint OTA [update.zip for stock recovery]

B) ALTERNATE - Manual rooting instructions

(substitute for Step #3)

Install the rooting files to the phone and start adb shell

c:
cd \e4gtauto
install
adb shell

Note #1 - If you are on Mac or Linux, the previous "install" step just copies some files to the phone. Unzip the package to your adb tools directory, then you can substitute with:

adb push copy2tmp /data/local/tmp/
adb push copy2sd /sdcard/
adb push copy2sd-img /sdcard/
adb shell

Run the exploit (do not type the $ symbols)

$ cd /data/local/tmp
$ /system/bin/sh install-zerg.sh

The previous step will take a few minutes. Assuming it is successful, it will kick you out of "adb shell". Restart "adb shell"

adb shell

Your adb shell should now have the # prompt indicating temporary root. Proceed to install persistent root and cleanup the temp rooting files, followed by rebooting the phone (do not type the # symbols)

# cd /sdcard/000root
# /system/bin/sh install-root.sh
# /system/bin/sh install-cleanup.sh
# reboot

C) BootImg support

Various BootImgs are included (need to install ROOT first before these can be used):

EG30+CWM

- this is the stock EG30 kernel (not recompiled) with the additional of CWM5 to the initramfs (see chris41g's thread)

EG30

- this is the stock EG30 kernel (not recompiled) with the stock initramfs/recovery (ie this is completely stock) - pulled from shipping phone

EG31+CWM

- this is the stock EG31 (ie EG30-Rev5) kernel, repacked with CWM5.

EG31

- this is the stock EG31 (ie EG30-Rev5) kernel/initramfs/recovery. Allows people who flashed E31 ODIN TAR, the ability to restore the original EG31 kernel.

EK02+CWM

- this is the stock EK02 kernel, repacked with CWM5.

EK02

- this is the stock EK02 kernel/initramfs/recovery. Allows people who installed the Sprint EK02 OTA update, the ability to restore the original EK02 kernel.

EL13/26/29+CWM

- these are the stock EL13/26/29 kernels, repacked with CWM.

EL13/26/29

- these are the stock EL13/26/29 kernel/initramfs/recovery. Allows people who installed the leaked EL13/26/29, the ability to restore the original EL13/26/29 kernel.

FB15/17/21/27/FC06/07/18/22/24/FD02/FF02/09/11+CWM

- these are the respective stock kernels, repacked with CWM.

FB15/17/21/27/FC05/06/07/13/14/15/18/22/24/FD02/05/10/16/19/24/26/FE07/10/14/16/21/22/FF02/09/11

- these are the stock kernels/initramfs/recovery. Allows people who installed the leaked releases, the ability to restore the original kernel.

In addition, generic support to install any kernel+initramfs (zImage) you want is provided:

zImage

- place the zImage file (case sensitive) in the e4gtauto\copy2sd\000root directory and choose the zImage option to install

Swapping between the included BootImgs while on Stock EG30 ROM is relatively safe. However once you start flashing custom ROMs and advanced kernels/initramfs compatibility issues may arise. It is best to BACKUP important data.

IMPORTANT:

GB kernels (and kernels+CWM) will only boot with GB ROMs. ICS kernels (and kernels+CWM) will only boot with ICS ROMs. Do NOT mix/match GB kernels with ICS ROMs and vice versa. Other than that it is relatively safe to mix/match different GB kernels with different GB ROMs and different ICS kernels with different ICS ROMs.

Note #1 - Everytime you install a BootImg, Cache and Dalvik-Cache will be wiped for consistency. Cache and Dalvik-Cache get recreated during the boot process so your first boot will take a little longer than usual. This is normal.

D) Included scripts

Included in the E4GT automated rooting package are various scripts which make life easier.

In particular, scripts are included to (you must have temporary or persistent root to run these):

- install persistent root

- uninstall root (unroot)

- install EG30/EG31/EK02/EL13/EL26/EL29/FB15/FB17/FB21/FB27/FC06/FC07/FC18/FC22/FC24/FD02/FF02/FF09/FF11+CWM BootImg/zImage

- install EG30/EG31/EK02/EL13/EL26/EL29/FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24/FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/10/14/16/FF02/09 BootImg/zImage (stock versions from Samsung)

- install CIQ Disable

- install CIQ Enable

- enable ICS USB Mass Storage Mode

- enable ICS USB MTP Mode

- init.d support add/remove

- advanced tools add/remove

- wipe dalvik-cache

- perform OTA Compliance Check EG30-EK02

- perform OTA Compliance Check EK02-EL29

The general pattern to run all these scripts is the same (pick which .sh you want to run to accomplish your goal, BOLD scripts would undo your actions and get you back to where you started):

Open an adb shell session to your phone (do not type the $ and # symbols)

E) FAQ

e1) How come I get "permission denied" when I run "su"?

e2) What happens if I hard reset my phone after rooting it?

e3) Why is the install stuck waiting for device to be connected?

e4) Can I delete the /sdcard/000root directory?

e5) How do I boot into Recovery?

e6) What is the EG31 BootImg?

e7) How do I tell what kernel/zImage and baseband/radio/modem.bin I have?

e8) Will this cause LoS?

e9) How do I know I'm rooted?

e10) How can I get manually go to STOCK EK02 ROM and EK02 Kernel+CWM5(repack) w/o waiting for the OTA update?

e11) How can I tell if CIQ is running?

e12) I told it to install the EK02 update, but something went wrong, now it won't prompt me again, how do I install EK02?

e13) I flashed Rogue CWM, how do I get it to use the original Sprint 4G bootanimation?

e14) What happened to USB Storage in ICS, how do I get the old GB behavior back?

e15) How do I run Auto Root, ODIN OneClick, or ODIN on Mac?

e16) How do I wipe data/factory reset from ODIN?

e17) What is the EMMC superbrick/lockup issue and which FF18 CWM should I choose?