[ROOT][NCIQ][EG30/EG31/EK02] Auto root your existing stock ROM (w/o ODIN/ROM Flash)

Search This thread

sfhub

Senior Member
Oct 23, 2008
5,350
7,231
Thanks Revolutionary for the exploit, Denys Vlasenko/chris41g for busybox, ChainsDD for su,
chris41g for EG30/EG31/EK02/EL13/EL26+CWM5(repack), JoshMiers for no-CIQ scripting,
squshy 7 for EG31, Przekret for EG30/EL26, kingsway8605 for EK02, LuffarJoh for EL13,
puertoblack2003/Przekret for EL29, calkulin/acs for FB15/FB17/FB21/FC06/FC14/FC18/FC22/FC24/FD02/FD05,
qbking77/acs for FB27, hunterkiller/sextape for FC05/FC07/FC13/FC15/FC24/FF02/FF18,
Steady Hawkin for EL26/EL29/FB15/FB17/FB21/FB27/FC06/FC07/FC18/FC22/FC24/FD02+CWM-Rogue(repack)
agat63/chris41g for FF02/09/11/18+CWM-agat
attachment.php


This guide is for directly rooting EG30/EG31/EK02 (NOT EL13/newer) Android for the Samsung E4GT using a 100% automated script.

If you want a Rooted EL13/newer+CWM use the appropriate pre-rooted ODIN thread [EL13/EL26/EL29],
then come back here and use Option C to install EL13/newer+CWM (NOTE: a GB kernel/zImage will NOT allow an ICS ROM to boot)

If you want a Rooted FB15/newer+CWM use the appropriate pre-rooted ODIN thread
[FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
[FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
[FF02/FF09/FF11/FF18]
then come back here and use Option D to install FB15/newer+CWM (NOTE: an ICS kernel/zImage will NOT allow a GB ROM to boot)

This root method uses your EXISTING kernel/initramfs/recovery/rom, so it shouldn't suffer from LOS (unless you had LOS with stock to start with)

Nothing is flashed, so you just get your existing setup with the addition of ROOT.
This will NOT trigger the Yellow Triangle nor will it increase your ODIN flash count.

If you are on Mac or Linux see Reference Section B
If you want CWM see Reference Section C (to install an official OTA update, reinstall the non-CWM version PRIOR to accepting)

Videos by qbking77 [Install Root / Install CWM] thespotlite [Install ANY User-Provided zImage/Recovery]

[Optional] If you are looking to start fresh, first perform the appropriate ODIN Restore
[EG30/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/FE10/FE14/FE16/FE21/FE22]
[FF02/FF09/FF11/FF18]

0) Backup anything important
With this particular ROOT procedure there is very little chance something bad will happen, but it is good practice to backup before making any changes.

1) Prerequisites Checklist
USB Debugging is ENABLED - [Menu->Settings->Applications->Development->USB debugging]
USB Storage Mode is OFF - [Drag down the notification bar and tap on "USB Connected" - should be off by default - pic]
Samsung [USB/Android drivers] are INSTALLED
Phone is connected to USB port and recognized

2) Download the E4GT automated rooting package
Lite versions contain EG30/EK02/EL26/EL29 and 3 latest versions of ICS (most people will use this), Full versions have all versions
NEW: Even easier self-extractor for windows (Just run .exe - SKIP Unzip and Step #3) e4gtauto-sfx.exe [Lite / Full]
Download the E4GT automated rooting package e4gtauto.zip [Lite / Full]
UNZIP to top-level directory of your C: drive

Note #1: zergrush is a known exploit being used to root your phone. Your Anti-Virus software may quarantine or cause the download to be incomplete. Disable your Anti-Virus software if needed so the download can complete.

3) Run the E4GT automated rooting package
From PC command prompt, run "runfirst" and select Option A:
(if you have an aversion to typing, you can use file explorer to navigate to C:\e4gtauto and double-click on RUNFIRST.bat)
Code:
c:
cd \e4gtauto
runfirst

4) You are DONE!
You can now use market apps that require root. To unroot, redo Step #3, use Option B. If you want CWM, see Reference Section C

Note #1 - Keep in mind, should you CHOOSE to run "su", you MIGHT be prompted for permissions on the phone's screen the first time it is run. If you don't realize that, you'll get "permission denied" and think the root didn't work. Make sure your phone is NOT on the lock screen or you won't see the prompt. It is NOT required that you run "su". You ARE ROOTED regardless.

Note #2 - It is suggested you run your phone as "stock rooted" for at least 1 day before you start installing custom ROMs. This will help you narrow down issues should they arise. Also be aware that some custom ROMs install their own BootImg/zImage/Kernel/Recovery so the "stock" Kernel+CWM you installed using this tool might get overwritten. If you experience kernel-related issues, see if your custom ROM included a zImage.
 

Attachments

  • usbstorage.jpg
    usbstorage.jpg
    23.5 KB · Views: 21,233
  • root-e4gt-33.1.jpg
    root-e4gt-33.1.jpg
    42.3 KB · Views: 162,663
  • root-e4gt-33.2.jpg
    root-e4gt-33.2.jpg
    61.7 KB · Views: 5,742
  • root-e4gt-33.3.jpg
    root-e4gt-33.3.jpg
    49.6 KB · Views: 5,090
  • root-e4gt-33.4.jpg
    root-e4gt-33.4.jpg
    54 KB · Views: 4,925
Last edited:

sfhub

Senior Member
Oct 23, 2008
5,350
7,231
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
Code:
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:
Code:
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)
Code:
$ 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"
Code:
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)
Code:
# 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)
$ su
# cd /sdcard/000root
# /system/bin/sh install-root.sh
# /system/bin/sh install-boot-eg30-cwm.sh
# /system/bin/sh install-boot-eg30.sh
# /system/bin/sh install-boot-eg31-cwm.sh
# /system/bin/sh install-boot-eg31.sh
# /system/bin/sh install-boot-ek02-cwm.sh
# /system/bin/sh install-boot-ek02.sh
# /system/bin/sh install-boot-el13-cwm.sh
# /system/bin/sh install-boot-el13.sh
# /system/bin/sh install-boot-el26-cwm.sh
# /system/bin/sh install-boot-el26-cwm-rogue.sh
# /system/bin/sh install-boot-el26.sh
# /system/bin/sh install-boot-el29-cwm-rogue.sh
# /system/bin/sh install-boot-el29.sh
# /system/bin/sh install-boot-fb15-cwm-rogue.sh
# /system/bin/sh install-boot-fb15.sh
# /system/bin/sh install-boot-fb17-cwm-rogue.sh
# /system/bin/sh install-boot-fb17.sh
# /system/bin/sh install-boot-fb21-cwm-rogue.sh
# /system/bin/sh install-boot-fb21.sh
# /system/bin/sh install-boot-fb27-cwm-rogue.sh
# /system/bin/sh install-boot-fb27.sh
# /system/bin/sh install-boot-fc05.sh
# /system/bin/sh install-boot-fc06-cwm-rogue.sh
# /system/bin/sh install-boot-fc06.sh
# /system/bin/sh install-boot-fc07-cwm-rogue.sh
# /system/bin/sh install-boot-fc07.sh
# /system/bin/sh install-boot-fc13.sh
# /system/bin/sh install-boot-fc14.sh
# /system/bin/sh install-boot-fc15.sh
# /system/bin/sh install-boot-fc18-cwm-rogue.sh
# /system/bin/sh install-boot-fc18.sh
# /system/bin/sh install-boot-fc22-cwm-rogue.sh
# /system/bin/sh install-boot-fc22.sh
# /system/bin/sh install-boot-fc24-cwm-rogue.sh
# /system/bin/sh install-boot-fc24.sh
# /system/bin/sh install-boot-fd02-cwm-rogue.sh
# /system/bin/sh install-boot-fd02.sh
# /system/bin/sh install-boot-fd05.sh
# /system/bin/sh install-boot-fd10.sh
# /system/bin/sh install-boot-fd16.sh
# /system/bin/sh install-boot-fd19.sh
# /system/bin/sh install-boot-fd24.sh
# /system/bin/sh install-boot-fd26.sh
# /system/bin/sh install-boot-fe07.sh
# /system/bin/sh install-boot-fe10.sh
# /system/bin/sh install-boot-fe14.sh
# /system/bin/sh install-boot-fe16.sh
# /system/bin/sh install-boot-fe21.sh
# /system/bin/sh install-boot-fe22.sh
# /system/bin/sh install-boot-ff02-cwm-agat.sh
# /system/bin/sh install-boot-ff02.sh
# /system/bin/sh install-boot-ff09-cwm-agat.sh
# /system/bin/sh install-boot-ff09.sh
# /system/bin/sh install-boot-ff11-cwm-agat.sh
# /system/bin/sh install-boot-ff11.sh
# /system/bin/sh install-boot-ff18-cwm-agat-src.sh
# /system/bin/sh install-boot-ff18-cwm-agat.sh
# /system/bin/sh install-boot-ff18.sh
# /system/bin/sh install-boot-zImage.sh
# /system/bin/sh install-ciq-off.sh
# /system/bin/sh install-ciq-on.sh
# /system/bin/sh install-ics-usb-ms.sh
# /system/bin/sh install-ics-usb-mtp.sh
# /system/bin/sh install-initd-add.sh
# /system/bin/sh install-initd-remove.sh
# /system/bin/sh install-tools-add.sh
# /system/bin/sh install-tools-remove.sh
# /system/bin/sh install-wipe-dalvik.sh
# /system/bin/sh install-otachk.sh eg30-ek02
# /system/bin/sh install-otachk.sh ek02-el29
# /system/bin/sh install-otachk.sh el29-ff18
# /system/bin/sh install-unroot.sh
# reboot

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?
 
Last edited:

coldblooded79

Senior Member
Jan 5, 2010
492
73
Murfreesboro, TN
Oh hell yes.

sent from my Epic 4g Touch

---------- Post added at 07:28 PM ---------- Previous post was at 06:43 PM ----------

If I have a totally stock right out of the box phone this will work right? What about getting CWM recovery on to the phone after using this method? Can I just install it via the CWM app?

Yes it works on stock. No on clockwork. Just tried and "installed" but no go on booting into clockwork. I pretty sure that your kernel needs support for clockwork. We have the stock kernel which doesn't . I did install tegrak overclock, so that does allow overclocking, governor choice, etc:D
 

topgnat

Senior Member
Dec 13, 2008
87
42
@OP
Just a thought
May be we can get CWM from Chris41g's [ACS][KERNEL][ODIN] Stock Pulled Repacked with CWM5, this will maintain stock kernel.

And then run this script to get root and busybox..!?

Will this work on Chris41g's kernel?
 

sling

Senior Member
Aug 7, 2007
1,845
942
Va Beach / Hatteras NC
Thanks, maybe now I will finally root

Sent from my SPH-D710 using Tapatalk
If OP can cram CWM into it leaving everything as is hmm Winning!
We will be able to flash rom zips from sd card/internal storage not having to tamper with stock kernel.
That's great news seeing LOS is a major concern to many...including me.
The last thing I want to do is touch kernel until official patch hits which is the reason Ive held back on root
 
Last edited:

_MetalHead_

Senior Member
Jun 30, 2010
6,763
2,747
Portland
Can confirm it works beautifully. This is EXACTY what I have been waiting for since I got the phone on release day.

OP, I really can't thank you enough, because of you my phone is finally rooted and I can move on with my life. From the bottom of my heart man, THANK YOU.

Cheers!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 311
    Thanks Revolutionary for the exploit, Denys Vlasenko/chris41g for busybox, ChainsDD for su,
    chris41g for EG30/EG31/EK02/EL13/EL26+CWM5(repack), JoshMiers for no-CIQ scripting,
    squshy 7 for EG31, Przekret for EG30/EL26, kingsway8605 for EK02, LuffarJoh for EL13,
    puertoblack2003/Przekret for EL29, calkulin/acs for FB15/FB17/FB21/FC06/FC14/FC18/FC22/FC24/FD02/FD05,
    qbking77/acs for FB27, hunterkiller/sextape for FC05/FC07/FC13/FC15/FC24/FF02/FF18,
    Steady Hawkin for EL26/EL29/FB15/FB17/FB21/FB27/FC06/FC07/FC18/FC22/FC24/FD02+CWM-Rogue(repack)
    agat63/chris41g for FF02/09/11/18+CWM-agat
    attachment.php


    This guide is for directly rooting EG30/EG31/EK02 (NOT EL13/newer) Android for the Samsung E4GT using a 100% automated script.

    If you want a Rooted EL13/newer+CWM use the appropriate pre-rooted ODIN thread [EL13/EL26/EL29],
    then come back here and use Option C to install EL13/newer+CWM (NOTE: a GB kernel/zImage will NOT allow an ICS ROM to boot)

    If you want a Rooted FB15/newer+CWM use the appropriate pre-rooted ODIN thread
    [FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
    [FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
    [FF02/FF09/FF11/FF18]
    then come back here and use Option D to install FB15/newer+CWM (NOTE: an ICS kernel/zImage will NOT allow a GB ROM to boot)

    This root method uses your EXISTING kernel/initramfs/recovery/rom, so it shouldn't suffer from LOS (unless you had LOS with stock to start with)

    Nothing is flashed, so you just get your existing setup with the addition of ROOT.
    This will NOT trigger the Yellow Triangle nor will it increase your ODIN flash count.

    If you are on Mac or Linux see Reference Section B
    If you want CWM see Reference Section C (to install an official OTA update, reinstall the non-CWM version PRIOR to accepting)

    Videos by qbking77 [Install Root / Install CWM] thespotlite [Install ANY User-Provided zImage/Recovery]

    [Optional] If you are looking to start fresh, first perform the appropriate ODIN Restore
    [EG30/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/FE10/FE14/FE16/FE21/FE22]
    [FF02/FF09/FF11/FF18]

    0) Backup anything important
    With this particular ROOT procedure there is very little chance something bad will happen, but it is good practice to backup before making any changes.

    1) Prerequisites Checklist
    USB Debugging is ENABLED - [Menu->Settings->Applications->Development->USB debugging]
    USB Storage Mode is OFF - [Drag down the notification bar and tap on "USB Connected" - should be off by default - pic]
    Samsung [USB/Android drivers] are INSTALLED
    Phone is connected to USB port and recognized

    2) Download the E4GT automated rooting package
    Lite versions contain EG30/EK02/EL26/EL29 and 3 latest versions of ICS (most people will use this), Full versions have all versions
    NEW: Even easier self-extractor for windows (Just run .exe - SKIP Unzip and Step #3) e4gtauto-sfx.exe [Lite / Full]
    Download the E4GT automated rooting package e4gtauto.zip [Lite / Full]
    UNZIP to top-level directory of your C: drive

    Note #1: zergrush is a known exploit being used to root your phone. Your Anti-Virus software may quarantine or cause the download to be incomplete. Disable your Anti-Virus software if needed so the download can complete.

    3) Run the E4GT automated rooting package
    From PC command prompt, run "runfirst" and select Option A:
    (if you have an aversion to typing, you can use file explorer to navigate to C:\e4gtauto and double-click on RUNFIRST.bat)
    Code:
    c:
    cd \e4gtauto
    runfirst

    4) You are DONE!
    You can now use market apps that require root. To unroot, redo Step #3, use Option B. If you want CWM, see Reference Section C

    Note #1 - Keep in mind, should you CHOOSE to run "su", you MIGHT be prompted for permissions on the phone's screen the first time it is run. If you don't realize that, you'll get "permission denied" and think the root didn't work. Make sure your phone is NOT on the lock screen or you won't see the prompt. It is NOT required that you run "su". You ARE ROOTED regardless.

    Note #2 - It is suggested you run your phone as "stock rooted" for at least 1 day before you start installing custom ROMs. This will help you narrow down issues should they arise. Also be aware that some custom ROMs install their own BootImg/zImage/Kernel/Recovery so the "stock" Kernel+CWM you installed using this tool might get overwritten. If you experience kernel-related issues, see if your custom ROM included a zImage.
    77
    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
    Code:
    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:
    Code:
    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)
    Code:
    $ 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"
    Code:
    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)
    Code:
    # 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)
    $ su
    # cd /sdcard/000root
    # /system/bin/sh install-root.sh
    # /system/bin/sh install-boot-eg30-cwm.sh
    # /system/bin/sh install-boot-eg30.sh
    # /system/bin/sh install-boot-eg31-cwm.sh
    # /system/bin/sh install-boot-eg31.sh
    # /system/bin/sh install-boot-ek02-cwm.sh
    # /system/bin/sh install-boot-ek02.sh
    # /system/bin/sh install-boot-el13-cwm.sh
    # /system/bin/sh install-boot-el13.sh
    # /system/bin/sh install-boot-el26-cwm.sh
    # /system/bin/sh install-boot-el26-cwm-rogue.sh
    # /system/bin/sh install-boot-el26.sh
    # /system/bin/sh install-boot-el29-cwm-rogue.sh
    # /system/bin/sh install-boot-el29.sh
    # /system/bin/sh install-boot-fb15-cwm-rogue.sh
    # /system/bin/sh install-boot-fb15.sh
    # /system/bin/sh install-boot-fb17-cwm-rogue.sh
    # /system/bin/sh install-boot-fb17.sh
    # /system/bin/sh install-boot-fb21-cwm-rogue.sh
    # /system/bin/sh install-boot-fb21.sh
    # /system/bin/sh install-boot-fb27-cwm-rogue.sh
    # /system/bin/sh install-boot-fb27.sh
    # /system/bin/sh install-boot-fc05.sh
    # /system/bin/sh install-boot-fc06-cwm-rogue.sh
    # /system/bin/sh install-boot-fc06.sh
    # /system/bin/sh install-boot-fc07-cwm-rogue.sh
    # /system/bin/sh install-boot-fc07.sh
    # /system/bin/sh install-boot-fc13.sh
    # /system/bin/sh install-boot-fc14.sh
    # /system/bin/sh install-boot-fc15.sh
    # /system/bin/sh install-boot-fc18-cwm-rogue.sh
    # /system/bin/sh install-boot-fc18.sh
    # /system/bin/sh install-boot-fc22-cwm-rogue.sh
    # /system/bin/sh install-boot-fc22.sh
    # /system/bin/sh install-boot-fc24-cwm-rogue.sh
    # /system/bin/sh install-boot-fc24.sh
    # /system/bin/sh install-boot-fd02-cwm-rogue.sh
    # /system/bin/sh install-boot-fd02.sh
    # /system/bin/sh install-boot-fd05.sh
    # /system/bin/sh install-boot-fd10.sh
    # /system/bin/sh install-boot-fd16.sh
    # /system/bin/sh install-boot-fd19.sh
    # /system/bin/sh install-boot-fd24.sh
    # /system/bin/sh install-boot-fd26.sh
    # /system/bin/sh install-boot-fe07.sh
    # /system/bin/sh install-boot-fe10.sh
    # /system/bin/sh install-boot-fe14.sh
    # /system/bin/sh install-boot-fe16.sh
    # /system/bin/sh install-boot-fe21.sh
    # /system/bin/sh install-boot-fe22.sh
    # /system/bin/sh install-boot-ff02-cwm-agat.sh
    # /system/bin/sh install-boot-ff02.sh
    # /system/bin/sh install-boot-ff09-cwm-agat.sh
    # /system/bin/sh install-boot-ff09.sh
    # /system/bin/sh install-boot-ff11-cwm-agat.sh
    # /system/bin/sh install-boot-ff11.sh
    # /system/bin/sh install-boot-ff18-cwm-agat-src.sh
    # /system/bin/sh install-boot-ff18-cwm-agat.sh
    # /system/bin/sh install-boot-ff18.sh
    # /system/bin/sh install-boot-zImage.sh
    # /system/bin/sh install-ciq-off.sh
    # /system/bin/sh install-ciq-on.sh
    # /system/bin/sh install-ics-usb-ms.sh
    # /system/bin/sh install-ics-usb-mtp.sh
    # /system/bin/sh install-initd-add.sh
    # /system/bin/sh install-initd-remove.sh
    # /system/bin/sh install-tools-add.sh
    # /system/bin/sh install-tools-remove.sh
    # /system/bin/sh install-wipe-dalvik.sh
    # /system/bin/sh install-otachk.sh eg30-ek02
    # /system/bin/sh install-otachk.sh ek02-el29
    # /system/bin/sh install-otachk.sh el29-ff18
    # /system/bin/sh install-unroot.sh
    # reboot

    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?
    54
    This post will be updated to keep track of stock ODIN packages and stock CWM-flashable modems and kernels:

    Auto Root/NCIQ [EG30/EG31/EK02]

    ODIN - GB - [EG30/EK02/EL13/EL26/EL29]
    ODIN - ICS - [FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
    ODIN - ICS - [FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
    ODIN - ICS - [FF02/FF09/FF11/FF18]

    OTA - rooted - [EK02->EL29/EL29->FF18]

    CWM Modem [EG30/EK02/EL13/EL26/EL29]
    CWM Modem [FB15/FB21/FB27/FC05/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
    CWM Modem [FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
    CWM Modem [FF02/FF09/FF11/FF18]

    ODIN Modem [EG30/EK02/EL13/EL26/EL29]
    ODIN Modem [FB15/FB21/FB27/FC05/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
    ODIN Modem [FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
    ODIN Modem [FF02/FF09/FF11/FF18]

    CWM Kernel - GB - [EG30/EK02/EL13/EL26/EL29]
    CWM Kernel - ICS - [FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
    CWM Kernel - ICS - [FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
    CWM Kernel - ICS - [FF02/FF09/FF11/FF18]

    ODIN Kernel - GB - [EG30/EK02/EL13/EL26/EL29]
    ODIN Kernel - ICS - [FB15/FB17/FB21/FB27/FC05/FC06/FC07/FC13/FC14/FC15/FC18/FC22/FC24]
    ODIN Kernel - ICS - [FD02/FD05/FD10/FD16/FD19/FD24/FD26/FE07/FE10/FE14/FE16/FE21/FE22]
    ODIN Kernel - ICS - [FF02/FF09/FF11/FF18]
    13
    This is for the FAQ section:

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

    You may have noticed that ICS ROMs by default will configure the USB port for MTP (Media Transfer Protocol) mode. MTP mode may be more convenient for some people as it can coexist with USB debugging better, but the transfers are much slower and if you don't have the OS driver support (Mac/Linux) the USB drives may not show up.

    Most people prefer to have the behavior from GB ROMs where you could drag the notification bar, click on the USB symbol, and manually enable USB Mass Storage mode.

    With earlier versions of ICS, you could do this less conveniently using the menu->settings->more->USB Utilities configuration page.

    Starting with ICS release FC22, the USB Utilities configuration page is no longer present. This presents the user with a problem as they cannot enable USB Mass Storage using the UI.

    The Auto Root package has a solution for you. Under "Extra Options" of the main menu, there are 2 choices that affect ICS mass storage:

    1) Enable ICS USB Mass Storage Mode
    2) Enable ICS USB MTP Mode

    These are mutually exclusive options. If you enable one, you disable the other.

    To get GB USB Mass Storage behavior, choose the first option (USB Mass Storage Mode). This option once chosen, will be persistent through reboots and is stored in your Android User Data. It will only get reset if you reset your Android User Data or manually choose a different mode.

    This was tested with the FC22 release, but theoretically should work with any of the ICS releases.

    Technical Details:
    There is a property which controls how the USB storage should behave. You can see the value of this property by typing in "adb shell"

    Code:
    # getprop persist.sys.usb.config
    mtp,adb
    # setprop persist.sys.usb.config mass_storage,adb
    # getprop persist.sys.usb.config
    mass_storage,adb

    When Android is first installed with a clean reset of the /data partition, this value is retrieved from the default provided in the /default.prop file. The /default.prop file is contained in the kernel's initramfs. Some solutions for the ICS USB Mass Storage annoyance modify the information in this file so the value is set to mass storage mode from the beginning. This does work, but has the side effect of a kernel which is no longer signed by Samsung (ie you'll increase your ODIN flash count and trigger the yellow triangle if you flash in ODIN)

    Alternatively, you can set this value after Android is installed and it will be stored persistently in your Android User Data. This is the approach Auto Root takes as I prefer to have packages which do not affect the ODIN flash count nor trigger the yellow triangle.

    If you would like to change this value using an App within Android see this entry in Android Market.
    7
    Updated Auto Root to include FC07+CWM-Rogue