[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)
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)
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.
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:
$ 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)
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)
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?
"This above all: to thine own self be true". - Hamlet
---------- Post added at 07:28 PM ---------- Previous post was at 06:43 PM ----------
Quote:
Originally Posted by SantinoInc
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
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?