Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,116 Members 43,529 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
sfhub
Old
(Last edited by sfhub; 14th July 2012 at 06:59 AM.)
#1  
Recognized Contributor - OP
Thanks Meter 6,835
Posts: 4,757
Join Date: Oct 2008
Default [ROOT][NCIQ][EG30/EG31/EK02] Auto root your existing stock ROM (w/o ODIN/ROM Flash)

Quote:
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


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.
Attached Thumbnails
Click image for larger version

Name:	usbstorage.jpg
Views:	20379
Size:	23.5 KB
ID:	806419   Click image for larger version

Name:	root-e4gt-33.1.jpg
Views:	144027
Size:	42.3 KB
ID:	1196266   Click image for larger version

Name:	root-e4gt-33.2.jpg
Views:	5099
Size:	61.7 KB
ID:	1196267   Click image for larger version

Name:	root-e4gt-33.3.jpg
Views:	4572
Size:	49.6 KB
ID:	1196268   Click image for larger version

Name:	root-e4gt-33.4.jpg
Views:	4447
Size:	54.0 KB
ID:	1196269  

The Following 311 Users Say Thank You to sfhub For This Useful Post: [ Click to Expand ]
 
sfhub
Old
(Last edited by sfhub; 14th July 2012 at 03:45 AM.)
#2  
Recognized Contributor - OP
Thanks Meter 6,835
Posts: 4,757
Join Date: Oct 2008
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)
Quote:
$ 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?
The Following 77 Users Say Thank You to sfhub For This Useful Post: [ Click to Expand ]
 
gpgorbosjr
Old
#3  
gpgorbosjr's Avatar
Senior Member
Thanks Meter 64
Posts: 455
Join Date: Jul 2008
Finallly! Thank you!

Sent from my SPH-D710 using Tapatalk
 
R1ptide
Old
#4  
Senior Member
Thanks Meter 129
Posts: 463
Join Date: Sep 2011
Much thanks
Now no need in messing with the kernel

Sent from my Samsung Galaxy S2
The Following User Says Thank You to R1ptide For This Useful Post: [ Click to Expand ]
 
SantinoInc
Old
#5  
SantinoInc's Avatar
Senior Member
Thanks Meter 717
Posts: 2,446
Join Date: Jun 2010
Location: NYC
Holy Moly Batman! If this actually works this is the biggest thing in the Epic Touch Dev community!

Anyone can confirm this works...other than the OP?
Free 15GB storage plus an additional 5GB for using my referral link. You can also get an additional 5GB for every person you get to join! Of course it has a Android app with features such as automatically syncing any photos/videos you have recently taken when you are on WiFi. Give it a shot!
https://copy.com?r=yxvvP2
The Following User Says Thank You to SantinoInc For This Useful Post: [ Click to Expand ]
 
sling
Old
#6  
sling's Avatar
Senior Member
Thanks Meter 931
Posts: 1,809
Join Date: Aug 2007
Location: Va Beach / Hatteras NC

 
DONATE TO ME
Thank you thank you thank you!!!!!!!!
 
SantinoInc
Old
#7  
SantinoInc's Avatar
Senior Member
Thanks Meter 717
Posts: 2,446
Join Date: Jun 2010
Location: NYC
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?
Free 15GB storage plus an additional 5GB for using my referral link. You can also get an additional 5GB for every person you get to join! Of course it has a Android app with features such as automatically syncing any photos/videos you have recently taken when you are on WiFi. Give it a shot!
https://copy.com?r=yxvvP2
 
coldblooded79
Old
#8  
coldblooded79's Avatar
Senior Member
Thanks Meter 77
Posts: 492
Join Date: Jan 2010
Location: Murfreesboro, TN
Oh hell yes.

sent from my Epic 4g Touch

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

Quote:
Originally Posted by SantinoInc View Post
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
 
sfhub
Old
#9  
Recognized Contributor - OP
Thanks Meter 6,835
Posts: 4,757
Join Date: Oct 2008
I have a plan to integrate CWM into this, but need to get some ducks lined up first. For now, just enjoy your rooted stock EG30.
The Following 5 Users Say Thank You to sfhub For This Useful Post: [ Click to Expand ]
 
sling
Old
#10  
sling's Avatar
Senior Member
Thanks Meter 931
Posts: 1,809
Join Date: Aug 2007
Location: Va Beach / Hatteras NC

 
DONATE TO ME
Quote:
Originally Posted by sfhub View Post
I have a plan to integrate CWM into this, but need to get some ducks lined up first. For now, just enjoy your rooted stock EG30.
hehe I was just getting ready to push the button.
I will hold off till CWM is added.

Thanks again sfhub this thread deserves sticky status now

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes