yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] hyuga:
Just read through the whole thread. It is great to see how many people have benefited from this awesome script! No major issues either!

Currently at stock DI18 (ROM, kernel, everything). This is the procedure I plan to follow:

1. Install Clockwork Mod recovery.

2. Perform backup via recovery.

3. Perform SMS/MMS and call log backup via app from market.

4. Connect phone in debug mode.

5. Ensure SD card is not mounted.

6. Choose root option, which will install the Andromeda kernel.

7. Install stock app remover.

8. Remove stock apps.

9. Rejoice.

Alternatively, I could flash a custom ROM and/or other kernel after step #3 is completed, via recovery menu, correct? Something like this:

*4. Flash kernel and/or custom ROM via recovery.

*5. Rejoice even more!

And regarding going back to full stock at any point, I think these are the options:

Option #1 Flash full DI18 ROM via Odin.

Option #2 If I only rooted stock via this AIO script, I could unroot and get Andromeda kernel replaced by stock DI18 kernel. However, if I removed stock bloat apps, I would also need to restore/reinstall these.

I wanted to get opinions from the experts to ensure I have somewhat of an understanding of what can and cannot be done.

Thoughts?
[Epic 4G Android Development] DRockstar:
I think you've done your homework and understand it pretty well, thanks for taking the time and being diligent.

Your plan is sound and you should do well if you follow it.

If you want to install the Andromeda kernel, you don't need to install one click root first, you can just choose menu option 4 to install the kernel.
[Epic 4G Android Development] hyuga:
Thanks for the feedback!

ClockworkMod worked!

I hit a snag due to the anti-virus software deleting the .bin exploit file, which caused it to fail due to no root access. After a WTH moment, I noticed and disabled. Worked perfectly afterwards!

Thank you for this awesome script!

Backup done... gotta read some more to decided what to flash next.
[Epic 4G Android Development] DRockstar:
What antivirus were you using? Was it on the computer or the phone? I'm curious about this...
[Epic 4G Android Development] AmnChode:
Wouldn't it be easier to load the Andromeda kernal to the stock rom, perform a backup and use it as a quasi baseline. Ie, you can restore to that backup, then uninstall root access to the stock DI18 kernal and basically be back to stock? That's assuming you need root to backup everything (I'm fuzzy on that one). If not, then a straight up baseline backup should do the trick. I thought that was the point of having clockworkmod installed...so you wouldn't have to go to Odin...
[Epic 4G Android Development] DRockstar:
Root isn't necessary to perform a backup with ClockworkMod... and I suppose you could use whatever bassline you choose for that backup.

Odin is the tool of last resort, when partitions have been screwed to the point where you can't boot the phone normally, or when you need to return the phone to its orignal factory state. Odin stock tars basically recreate all the partitions on the phone, on a level beyond even what ClockworkMod is capable of.
[Epic 4G Android Development] raylusk:
What a great tool this is and what a huge leap from when I rooted my hero. Everything worked great. Thanks to everyone for all their work.
[Epic 4G Android Development] DotMpeg:
I must say thanks even though I'm at work and haven't used it yet. Now I no longer have an excuse for delaying this.

Sent from my "Wheres my 2.2 Epic 4G" using the XDA App
[Epic 4G Android Development] AmnChode:
Ok...so it really is that much simpler. Load Clockworkmod, make a backup and then just restore that to get back to stock.

I always read that Odin was a last resort type item, but I see more and more people using it for initial routes to get back to stock...there just seemed that the backup/recovery method would be much easier and something you could do without the need of a computer (if you keep the backups on the SD Card).
[Epic 4G Android Development] DRockstar:
It also depends on what's been done... I use the backup from ClockworkMod to undo changes from kernels all of the time, as I've been testing them lately. In a lot of cases it can get you out a jam easily. But there's also other factors- the android os is divided between about a dozen or so partition blocks. Clockwork Mod backs up the system, data, and the boot partitions. ClockworkMod is in a partition of it's own. The kernel is in another, so undoing a kernel means flashing the stock kernel, and also flashing the system if other changes were made. So on and so forth for several other partition blocks that are critical. So if something goes wrong with the partitions outside of what ClockworkMod is capable of backing up... the only option would be to use Odin and start from scratch, recreating all of the partitions to a blank slate on the phone.

I also haven't been able to restore the boot partition from ClockworkMod recovery by itself, it always fails for some reason. I am doing research to come up with ways to restore a stock system without Odin, but there some things that only Odin can fix.
[Epic 4G Android Development] FreKelz:
works great! thanks for putting this together!
[Epic 4G Android Development] okolowicz:
Could someone tell me what is the adb command to mount the system folder read-write?

I'm trying to edit some system apps by pulling and pushing with adb but am unable to write to the system folder. My regular phone is an EVO. I am just playing around with the Epic for a few days while I wait for Sprint to send a replacement phone and am thrown off a little because it does not seem as if the adb privelages and/or commands are the same from what I am familiar.

Any help would be appreciated.
[Epic 4G Android Development] DRockstar:
adb shell mount -t rfs -o remount,rw /dev/block/stl9 /system

I recalled that from memory, but I'm pretty damned sure that'll do it.

You do need to be rooted first.

Edit: I just double checked myself, and I was right. I've worked a lot with this command.
[Epic 4G Android Development] Firon:
you need a rooted kernel to adb push to /system.
[Epic 4G Android Development] okolowicz:
Ok. Thanks for the heads up. I'm taking the phone back when my replacement Evo comes in but am playing with the Epic to continue to learn and get my Android fix.

Guess I'll have to install a new kernel :)
[Epic 4G Android Development] Firon:
You can push to /sdcard, then adb shell and copy to /system and fix permissions.
[Epic 4G Android Development] mynewepic10:
Ok I am looking at this and want to do it. I have read the first page but still a little confused.

I want to be able to go back to stock in the event something happens.

So what exactly do I need to do. I have rooted it with the one click 2.3.0 in another post, but this one seems to be very organized with many options. So can someone explain to me what I need to do to be able to root and get full access to my phone. I want to be able to go back to stock in the event something happens. I also see some cook roms I may want to install so I want to be able to do those as well. Also do I need to mount the epic first before I do anything. I already have it in debugging mode.

Thanks for all the help and great work that has been done already.
[Epic 4G Android Development] DRockstar:
If you're running Windows, going back to stock is pretty simple, use the Stock tar in the following thread:

*OFFICIAL* SPH-D700-DI18-8Gb-REL.tar.md5

You use Odin3, and flash the factory stock system to the phone. Follow the link and instructions on the other post, lots of us have used Odin here.

If you want to flash ROMs you can use this release... First, use the Root Uninstaller to clear out prior roots. then install ClockworkMod Recovery. Instructions to boot ClockworkMod are in the original post. You should have the ROM or kernel you want on the sdcard, and you navigate in ClockworkMod and choose the one you want and flash it to the phone. Pay attention to any instructions that come with the ROM you want to install.

I have a ton of notes for this release because I combined what was 4 different things into one script. You want to remove one click roots before running other rooted kernels and ROMs, OK? All of it seems like a lot, but you'll know what it all means in no time.

Hope this helps...
[Epic 4G Android Development] mynewepic10:
Ok so do I need to root first if I want to install roms or what? Also if you want to install a rom, where do you put I guess the zip file. Do you put that on the root of the memory card? Also before I do any of this, do I need to mount the epic or does it matter?

Thanks.
[Epic 4G Android Development] mynewepic10:
So what exactly does rooting do if you do not need it to install roms? Shouldnt you just install the clockwork recovery mod so you can install roms?

Thanks.
[Epic 4G Android Development] mynewepic10:
I also see it says when installing roms that you need to format and wouldnt that put it all back to stock?
[Epic 4G Android Development] mynewepic10:
Man I am so confused.
[Epic 4G Android Development] DRockstar:
OK, if you know you're going to install ROMs, don't bother with the one click root, just install ClockworkMod Recovery.

There are several ROMs available through the forums, download one and put the zip in the root of your sdcard.

Before flashing anything with Clockwork, I recommend making a backup of your call logs and mms messages with an app like Mobile Backup II. Also sync your Google contacts and calendar. You should always backup your personal data like this before flashing new ROMs.

The first time you boot into ClockworkMod, make a backup, so you can easily revert back to your old system.

Some ROMs require that you wipe your data and cache partitions first, to avoid problems. Some ROMs require a clean slate.

A good ROM to start with is the Andromeda Galaxy ROM by noobnl, since it doesn't require that you wipe your data first.

In the ClockworkMod menu, choose "install zip from sdcard", find your rom, then flash it.

Provided you follow these instructions, you should be OK.
[Epic 4G Android Development] hyuga:
Kaspersky Internet Security 2010. It was on the Windows PC. This has happened before with custom ROMs for HTC Touch Pro. It detects a virus/exploit on the ROM flashing executables and related data, then deletes it immediately. I need to turn it off while I update the phone.
[Epic 4G Android Development] mynewepic10:
So you are saying with certain roms, you should make a backup first and then install the rom? If you install a rom and then use your backup, wouldnt it remove the rom? Is clockwork recovery like a program so if you want to remove it you can remove through the uninstaller?

Thanks for all your help.
[Epic 4G Android Development] mynewepic10:
I was going to start with that rom and saw this

How do I know if I have that update installed?

Thanks.
[Epic 4G Android Development] DRockstar:
If you go settings > about phone, the baseband number should end with DI18.

In most cases, using the backup in ClockworkMod will take care of you, it's been reliable for everyone developing for this phone.

ClockWorkMod is a boot utility in its own partition. I will be posting an uninstall utility for that soon, just in case someone needs to turn the phone back in to Sprint.
[Epic 4G Android Development] mynewepic10:
What are some good things to do if I want to conserve battery life and make my phone more productive? Any good themes that want drain the battery too much?
[Epic 4G Android Development] mynewepic10:
how can I check for wi fi tethering?

Edit: got this to work.
[Epic 4G Android Development] mynewepic10:
I was looking here

http://xdaforums.com/showthread.php?t=797239

And it says to have one click root and clockwork recovery installed at the same time to flash mods. Here in your post you say to not have both installed at the same time as it causes problems.

Now I am really confused on why you say one thing and he says another.

Thanks.
[Epic 4G Android Development] mynewepic10:
Also when I go into CRM, I am not seeing any option for backup and I do not see an option to choose to install from sd card. Am I missing something?

Edit: Ok got it working. I must not have had it installed.
[Epic 4G Android Development] dr_gibberish:
Worked like a charm! Had not even bothered to root my phone after installing ROMs every other day on my Moment. Looking forward to being able to play with it now :) Thanks for the great work DRockstar!
[Epic 4G Android Development] aftofcopperwire:
I've tried and tried but, when I try and run the script it won't find my phone. My computer is running Ubuntu Lucid Lynx. I have my epic in usb debugging and the sdcard isn't mounted. Just won't see it.
[Epic 4G Android Development] edr1983:
got as far as running one click root. it says spawning children etc etc. then says resetting adb. reset adb on desktop and re login???
[Epic 4G Android Development] celemew2:
I was having that issue as well when I was using the USB ports on the front of my computer. After plugging into the back, things went much smoother. I've read that the cable Samsung uses isn't very high quality and that may be the culprit.
[Epic 4G Android Development] champracer29:
4g working?

Good job to get this Simple One Click Root working. I have been trying using One Click Root 2.3.0 and never get it to work on my Window 7 for my Epic 4g. You did awesome job make it simple and easy to use.

I was able to root and install SDX stock App Remover and Simple One Click Root. I don't want to play with ROM just yet.

Now I am able to get 3G working, WiFi working, and GPS working, but I am not able to get 4g working. I see the icon and it won't turn on.

Do anyone know how to solve this issue?

Thanks in advance.
[Epic 4G Android Development] DRockstar:
There is nothing in this script that deals with the radio or modem, and I personally am not in a 4g area to test. I don't know of any reason 4g performance could be affected by this release.

Sorry I couldn't help on that issue.
[Epic 4G Android Development] edr1983:
alas..it doesnt work for me. Its finds my phone, i have the drivers installed, unmounted my sdcard, but still says permissions failed, both, when i try to root or install cwr.
[Epic 4G Android Development] DRockstar:
Redownload the script and try it again, let me know if same results happen.
[Epic 4G Android Development] edr1983:
redownloaded the script, yet i get the same message as above. Will it make a difference if i switch to my laptop running XP...even though my WIN7 does detect my phone.
[Epic 4G Android Development] DRockstar:
Actually, Windows XP is a lot less problematic with this script, as a large majority of reported issues are due to driver problems in Windows 7. Let me know if XP works for you.
[Epic 4G Android Development] hdnet1:
I've been having trouble rooting my Epic, not just with this script, but I thought I would try posting here first. Basically the program has trouble seeing the Epic, even if its listed under the device drivers on the computer. When it does see it, it just hangs on it forever in the process, giving the message that it is doing the root or looking to see if it is and doing the mod, but never gets past that point. I've tried with my desktop and with my laptop, same problem with both.

If needed, I'll post a screen shot or copy and past the log of exactly what it is saying. Driver install seemed to go ok, this is on 32bit XP, both machines.
[Epic 4G Android Development] DRockstar:
It does help if you post the output of the script. It can be copied by clicking the top left part of the window and navigating the menu.
[Epic 4G Android Development] edr1983:
Hey rockstar, I just tried my laptop running xp and I got the same results as using my windows 7. And it also shows the same results as I previously posted before on my Win7 comp..but I can install sdx app remover from the script,so I know its reading it. I guess ill just wait for froyo and be happy with that. Thx for the help anyways rockstar.
[Epic 4G Android Development] DroidApprentice:
Thank you DRockstar! This worked for me, and I figured out why the OCR didn't - I wasn't mounting the SD card through the phone notifications!
[Epic 4G Android Development] tpma4life:
I don't see the root uninstaller in the links for the programs...I have root and am worried about recieving the 2.2 update ota. Don't wanna not get it because my phone is rooted. I didn't remove any stock apps or anything though.
[Epic 4G Android Development] senjiro:
adb hung?

*** EDIT *** you can ignore my post. After 40 minutes it picked up and completed the process. I'm 1-click-rooted happily. Thank you again for the great package.

Hi all, thanks for the hard work here. I've got an unexpected error, running ubuntu lucid 10.04.1 while trying to run Simple One Click Root on a stock Epic. It's been hung there for > 15 minutes. Do I exit out an restart?

+++++++++++++++++++++++++++++++++++++++++++++++++++++

Simple One Click Root v1.13

+++++++++++++++++++++++++++++++++++++++++++++++++++++

Bash Scripts by DRockstar and Firon

exploit made by joeykrim

original one click 2.3.0 installer made by noobnl and firon

busybox by skeeterslint

IF YOU HAVE PROBLEMS WITH ROOT INSTALL

REBOOT PHONE AND TRY AGAIN

NOT TO BE PERFORMED WITH ROOTED KERNELS

Press any key to continue, or M for Main Menu :

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

Looking for device

Device found in 0 seconds

Checking current root status and run exploit if necessary

Running exploit

Wait for device continuing when found

Copy and run the exploit (may take 2 minutes)

73 KB/s (5392 bytes in 0.071s)

[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C

[*] checking NPROC limit ...

[+] RLIMIT_NPROC={3712, 3712}

[*] Searching for adb ...

[+] Found adb as PID 8089

[*] Spawning children. Dont type anything and wait for reset!

[*]

[*] If you like what we are doing you can send us PayPal money to

[*] 7-4-3-C@web.de so we can compensate time, effort and HW costs.

[*] If you are a company and feel like you profit from our work,

[*] we also accept donations > 1000 USD!

[*]

[*] adb connection will be reset. restart adb server on desktop and re-login.
[Epic 4G Android Development] DRockstar:
The all in one has a menu that includes the uninstaller... the ota update will be looking for the presence of the original system apps, so updating should be fine as long as they're present.
[Epic 4G Android Development] Firon:
You don't need to un-root to get the OTA anyway.
[Epic 4G Android Development] DRockstar:
Updated to 2.00... Finally!

This took me too long to do... now based off of one click root 2.4.0 by noobnl.

This works for Eclair and Froyo... will detect and not let you flash di18 kernels or recovery if Froyo is detected.

version 2.01 will be available tomorrow, with clockworkmod redirector script included for Froyo.

Enjoy!
[Epic 4G Android Development] mylasthope:
Much appreciated, DRockstar. Also, thanks for this awesome write up. I have a question though. I'm getting a brand new epic in a couple days. Which guide would be easier to use to flash a custom rom and root my epic? Yours or noobnl's one click guide?

Once again, thanks! :)

Also, would having HTC drivers on my PC interfere w/ the Samsung drivers?
[Epic 4G Android Development] DRockstar:
Quite honestly, either one will work. This all in one just has more options, with a menu. When I first started this noobnl's one click wasn't mac or linux compatible. I actually considered discontinuing the all in one, but have continued due to encouragement from both noobnl and Firon.

Beyond that... I've done my best to make this easy to use, and have put in a lot of error checking into the script. It is also easier to troubleshoot from the output if something has gone wrong.

This is intended to be used like a multitool, and one day I hope to make an apk app that accomplishes all this straight from the phone.

I'm not quite sure if HTC drivers would interfere, but I know for sure that the Samsung Moment drivers will. If in doubt, remove the HTC drivers first.
[Epic 4G Android Development] JettMartinez:
If you're looking for easy this is the way to go. I'm an Epic Idiot, and this has worked great for me (twice!).
[Epic 4G Android Development] DRockstar:
OK, Updated to 2.01, with the ClockworkMod redirector script built in to the one click root... the redirector part will only install if froyo is detected on the phone.

Now you can use Froyo with ROM Manager, Quickboot, and adb reboot recovery.

Enjoy!
[Epic 4G Android Development] myke66:
thankyou for this, works great
[Epic 4G Android Development] spitefulrain:
Something weird happened when I ran 2.01. Some things reset and some things broke. I had everything running fine Viper Rom DK05. I ran the root and clockwork, and when the phone booted up, the homescreen had reset. I thought it factory reset my phone, but all my apps were still installed. My contacts were gone also. My home and search buttons stopped working, both capacitive and hardware versions. And when I hold the power button down, power off is the ONLY single option. No silent, no airplane, no data toggle. And the phone will not lock.

2.00 worked perfectly for me though. Keep up the good work, just letting you know what happened.
[Epic 4G Android Development] DRockstar:
spitefulrain,

that is some strange results I can't quite explain, nothing in the script should give that kind of result. I you could post the terminal output of the script I'll investigate it.
[Epic 4G Android Development] spitefulrain:
Im not sure I can. I closed it before i realized there was anything wrong. But i tried it again, and it worked fine this time, no errors so far. So maybe it was just a one time thing. Let's hope.
[Epic 4G Android Development] DRockstar:
I'm downloading the latest beta ROMs for testing now... don't think I'll find a smoking gun, but it won't hurt to test them either.
[Epic 4G Android Development] spitefulrain:
It happened again, because i messed something up and needed to start over. I still have the cmnd prompt up, how to i take a log? And could using the lagfix in viper rom have anything to do with it?
[Epic 4G Android Development] DRockstar:
Sorry it took me so long, I was up all night and passed out.

Yeah, the lagfix would definitely cause errors if the /system isn't rfs. I'm going to see what the lagfix does, and find out a way to test for it. My current script mounts /system rfs.

What's strange is that version 2.00 of the script should give same symptoms if I'm figuring it right. We'll see. I'm testing things now.

Thanks for bringing this to my attention...
[Epic 4G Android Development] DRockstar:
Update... Do not use the lagfix with this, at least for now.

After discussing with the other devs, it was unanimous with those I spoke to that the lagfix isn't necessary. Still don't know exact cause of the lagfix breakage, I'll try to figure it out.
[Epic 4G Android Development] DRockstar:
Hopefully a lagfix fix will be sorted soon for those who use it... still trying to get to the root of the problem. I have at least gotten in contact with BThomas22x for any insight.
[Epic 4G Android Development] /null/:
Works great on Snow Leopard!
[Epic 4G Android Development] DRockstar:
Thanks for letting me know, appreciate it!

The scripts were written with TextWrangler on Snow Leopard.
[Epic 4G Android Development] fastmikey1969:
Ok after futzing with the 3 step process of joeykrim, flash clockwork, cut and paste scripts line by line I was skeptical.

First try after a fresh D18 Odin, works! No error messages! Wow..

I'm impressed! Thanks!
[Epic 4G Android Development] mylasthope:
Thanks for the answers! Another question: Since you say "BE SURE TO UNINSTALL THE ONE CLICK ROOT BEFORE FLASHING ROOTED KERNELS OR MODS, OK?" Does that mean if I want to flash custom roms, I use option 1 and then option 5, and then install roms through clockwork?? Also, are there any roms I can't install after rooting / installing recovery, such as the ones that say to flash with Odin? I was thinking of flashing Shuriken or Quantum. Any suggestions! Sorry for all the questions, and I greatly appreciate all the help. :)