yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Q&A, Help & Troubleshooting] GuestK00150:
I don`t have time to format everything correctly, but here is a working how-to: have fun flashing with your mac :D

System Information:

Mac OS X 10.7, 64-bit mode

just replace tom with your username, and copy / paste the commands to terminal

Installation steps, problems and solutions

1	download and install macports

2	install a few ports and wait a looooong time ;)

sudo port install pkgconfig libusb git

3	removing old files

sudo rm -rf /Users/tom/Desktop/heimdall/

sudo rm -rf /System/Library/Extensions/heimdall.kext

sudo rm -rf /usr/bin/heimdall

sudo rm -rf /usr/local/bin/heimdall

4	clone git repo

download and install X11

git clone https://github.com/Benjamin-Dobell/Heimdall.git /Users/tom/Desktop/heimdall/

5	installing libusb

already did that in step 2

6	installing libpit

cd /Users/tom/Desktop/heimdall/libpit/

sudo ./configure

sudo make

sudo make install

cd ..

7	installing heimdall

cd /Users/tom/Desktop/heimdall/heimdall/

sudo ./configure

sudo make

sudo make install

cd ..

cd /Users/tom/Desktop/heimdall/OSX

sudo cp -R heimdall.kext /System/Library/Extensions

sudo chmod -R 755 /System/Library/Extensions/heimdall.kext

sudo chown -R root:wheel /System/Library/Extensions/heimdall.kext

sudo kextload /System/Library/Extensions/heimdall.kext

8	use heimdall

heimdall --help

examples

heimdall flash --kernel zImage

heimdall flash --modem modem.bin

heimdall flash --factoryfs factoryfs.img --cache cache.img --param param.lfs --kernel zImage --primary-boot boot.bin --secondary-boot Sbl.bin --modem modem.bin --hidden hidden.img

EDIT:

oh yes, and the heimdall thread is here:

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

I wouldn`t recommend using the gui version, command line through terminal is more up to date and has less bugs, working very well for me ;)
[Samsung Epic 4G Touch] crawrj:
Official tar has been released here http://xdaforums.com/wiki/Samsung_Epic_4G_Touch/ROMs.
[Samsung Epic 4G Touch] Fidelio_o:
Waiting on this.
[Samsung Epic 4G Touch] JohnCorleone:
Finally it will be safe to go nuts flashing. Thanks Crawrj
[Samsung Epic 4G Touch] musclehead84:
Exactly. Finally time to take the plunge.

Sent From My Evo Killer!!!
[Samsung Epic 4G Touch] rayprobg:
I may be a little out of line here, but i think i love you for doing this :D
[Samsung Epic 4G Touch] crawrj:
LOL as long as it is a brotherly love we are good.
[Samsung Epic 4G Touch] spitefulrain:
Will this have the stock kernel in it?
[Samsung Epic 4G Touch] crawrj:
This make take a while longer. I am trying to get this as close to fully stock as possible. It is taking a long time to process. A lot longer than I thought. And I still don't know if it will actually work. Worst case I can make it stock kernel and file system and you do a factory reset on your own.
[Samsung Epic 4G Touch] crawrj:
Yes it will.
[Samsung Epic 4G Touch] JohnCorleone:
I hope this works out for you Crawrj. Once we have a full stock to fall back on I will feel much better
[Samsung Epic 4G Touch] crawrj:
At the very least you will have to Odin this and do a factory reset. The stock part is working fine. I am trying to include a clean data partition to save a step.
[Samsung Epic 4G Touch] Entropy512:
May want to check out gtg465x's Ultimate Unbricks in the Infuse 4G Development section as a reference.

However I think he doesn't nuke data... I've had to do factory resets when Odining my Infuse back to stock. Well I had to do it once... Haven't Odined back to stock in ages and probably never will again at this point. :)
[Samsung Epic 4G Touch] crawrj:
OK link is up. Do a factory reset to wipe data unless I come up with something different.
[Samsung Epic 4G Touch] nabbed:
Could you also pack this with CWM? Or does it not work with the stock kernel?
[Samsung Epic 4G Touch] Sycobob:
So this contains what exactly? Stock kernel and ROM? I'm still a little new to this.
[Samsung Epic 4G Touch] WhiteZero:
I'm confused. You're instructions seem to match your other thread here: http://xdaforums.com/showthread.php?t=1282418

Specifically the part: 7. In the PDA Section choose the tar file. (Deodexed-Rooted-Busybox-EG30.tar)

wtf?
[Samsung Epic 4G Touch] latinmaxima:
Thanks Crawj! You came through with the Epic and now the touch as well! Yeah!
[Samsung Epic 4G Touch] crawrj:
LOL oops didn't change that the filename. Just replace the filename with whatever you are flashing.
[Samsung Epic 4G Touch] crawrj:
This is a stock kernel and unrooted system. Used for returning your phone back to stock without mods.
[Samsung Epic 4G Touch] crawrj:
CWM has to be part of the kernel. That will be added to the other roms once a new version is released. The point of this one is to take you back to stock unmodded.
[Samsung Epic 4G Touch] JohnCorleone:
I am so glad you got the ET4G Crawrj! You just opened all of the doors for us. This is the one every ET4G user should have as a fallback. You are getting all of my thanks for the day
[Samsung Epic 4G Touch] ravenstarr:
+ 100000000000000000000!!!!!

I've already downloaded this, the odexed and deodexed just to have all three on hand!

Really appreciate your efforts Crawrj!
[Samsung Epic 4G Touch] crawrj:
It is my pleasure to help out. But RoadRAGEN deserves a big part of the credit. I have been trying to release this since the day root was released but could not figure out the difference between RFS and EXT4. I had everything ready except that one part. He worked, very patiently :), with me to get it resolved.
[Samsung Epic 4G Touch] ravenstarr:
Well...thanks...no THANKS to the both of you for breaking this ground for all of us who have the ET4G.

:)
[Samsung Epic 4G Touch] crawrj:
LOL you have to be careful with that selective reading :D All I saw was thanks but no thanks until I actually read it all.
[Samsung Epic 4G Touch] Devi0124:
The purpose of this is to take your phone back to a completely stock system. Adding CWM would pretty much make this pointless. There are some basically stock kernels out there with cwm though.

EDIT: Just realized this was already answered.

Thanks for the tar btw.. I have been rooted since it came out but I feel much more comfortable knowing I can go back to stock if I need to.
[Samsung Epic 4G Touch] geekaren:
HUGE thanks to crawrj & roadragen!

I'm wondering if this thread could be a sticky.
[Samsung Epic 4G Touch] crawrj:
Probably not since it will change as new versions release.
[Samsung Epic 4G Touch] BlueGoldAce:
So is your root method different then the other methods? The reason I ask is I am wondering if the return to stock method will work after using your method to root (which I just did).
[Samsung Epic 4G Touch] ravenstarr:
I don't think his method involves changing the kernel in any way shape or form...and to return to stock, you would just Odin the Stock EG30 .tar file
[Samsung Epic 4G Touch] crawrj:
This root method is by rooting the system not kernel. Using this will erase root no matter what you have installed. Because it replaces the kernel and system.
[Samsung Epic 4G Touch] Entropy512:
There are three ways to root:

1) "Insecure kernel" - Flashing a kernel with certain settings in the initramfs will always have root. Flashing a stock kernel after this loses root.

2) "root injection kernel" - It's possible to put scripts in the kernel's initramfs that will root the system partition - One or two of your root kernels are in this category, the others are category 1, not sure which. Flashing a stock kernel after one of these retains root because root stays in /system

3) "rooted system" - Samsung devices allow us to flash system images directly without Clockworkmod or special kernels using Odin/Heimdall. So if you use a root method from category 1 or 2, you can dump /system, and then make a rooted flashable image. You can then flash that to a device with any kernel (even stock) and get root. This is how they extracted the EG30 stock kernel, and this is what crawrj's root method is. (Edit: His root method in http://xdaforums.com/showthread.php?t=1282415 - the image here is bone stock without root. Since this tar has both stock system AND stock kernel, you will lose root because you don't have any of the above 3 categories.)
[Samsung Epic 4G Touch] amoricaorbust:
question

If I'm return to stock from one of your stock + root images, is there any reason I would need to wipe the data partition other than selling, returning or completely starting over on the phone?
[Samsung Epic 4G Touch] Entropy512:
Depending on what you're coming back from, sometimes going back to the stock system can result in really weird things happening if you don't wipe data.

Same reason you've got to wipe data when switching ROMs.
[Samsung Epic 4G Touch] crawrj:
No. Only reason to wipe data is to get rid of phone or start over.
[Samsung Epic 4G Touch] LxMxFxD:
Edit, I am retarded, I posted this in the completely wrong thread.
[Samsung Epic 4G Touch] connexion2005:
Great release but you could cut download times in half if you would RAR it and re-upload to your mirror. ;)
[Samsung Epic 4G Touch] crawrj:
Actually you can't. Tar is already a compressed format. I don't even think it is possible to rar a tar.
[Samsung Epic 4G Touch] JungleJiujitsu:
Not sure what the big deal is, only took an extra few mins longer than usual but anyways, as always muchas gracias hombre! I flashed back to stock this afternoon to test a few things out, and Im glad I was finally able to cuz of this post, thanks again!!
[Samsung Epic 4G Touch] musclehead84:
If he wad able to rar a tar then hewould have thousands of questions as to why it will not flash in odin.

Sent From My Evo Killer!!!
[Samsung Epic 4G Touch] Entropy512:
Actually, tar is not a compressed format. tar is a raw uncompressed archive.

There's a reason the .tar.gz and .tar.bz2 extensions exist - these indicate that the output of tar has then been compressed using gzip or bzip2. Many versions of tar will automatically do bzip2 or gzip compression/decompression if told to do so, however, Odin expects uncompressed .tar files as far as I can tell.

It's also perfectly possible to throw compressed data into a compressed archive format such as zip/rar/7zip/etc - but it doesn't make sense because they are already compressed and they may actually get slightly bigger. However, sometimes if you have multiple compressed objects, zip/rar/7zip/etc are useful just for putting them all into a single file.

However, as to the specific question of RAR - RAR sucks. It's a proprietary format. If you're going to put up a compressed archive, use an open non-proprietary format like zip or 7-zip. 7-zip is 100% open source and has quite good compression performance. .zip is usually the best choice because while it doesn't get quite the compression ratios of RAR or 7Z, it's the most widely supported archive format.
[Samsung Epic 4G Touch] kynetx:
After a long frustrating night of lockups and bootloops, I stumbled across this today and got back to root. I owe you big time crawrj.
[Samsung Epic 4G Touch] crawrj:
Learned something new. I stand corrected and thanks for the info. But I agree with muscle. You will probably cause more harm than good by compressing it.
[Samsung Epic 4G Touch] Crennie:
Thank you very much for this solution! I love this phone but data is terribly slow in my area, so taking it back.

This solution to de-root, or flash completely back to stock for my return was simple, and very effective. Even got rid of the [!] on boot splash.

Good luck to you, and thanks again.
[Samsung Epic 4G Touch] Zzim:
This cant be 100% complete stock, after I flash and go into the 4G setting to change the settings to allow it to connect at a lower signal strength they are the still the settings I had before I did the flash.
[Samsung Epic 4G Touch] crawrj:
This does not wipe the data for you. If you want to go completely stock you have to do a factory reset after loading this.
[Samsung Epic 4G Touch] crawrj:
Mirror until site is back up.

Site is back online.
[Samsung Epic 4G Touch] churro7:
root is removed?
[Samsung Epic 4G Touch] crawrj:
Yes it gives you a stock kernel and stock system.
[Samsung Epic 4G Touch] churro7:
Awesome

Samsung Galaxy S Dos indeed
[Samsung Epic 4G Touch] shades333:
sorry if was already asked

Can I just flash this through Odin and go simply back to stock but still be rooted? I am rooted now with zedomax...I need my wifi tether and the signal loss is killing me. any help would be appreciated.

Thanks

I guess I just want root with stock Kernel.....can I just flash this and that will happen?
[Samsung Epic 4G Touch] R1ptide:
No, what you want is to flash zedos v3 kernel to get root, and and then flash the stock kernel

Sent from my Samsung Galaxy S2
[Samsung Epic 4G Touch] neverends:
ok so i odined the tar and I still have superuser app, root explorer still seems to work as well... did i miss something?
[Samsung Epic 4G Touch] crawrj:
I don't think you flashed this tar because it would definitely remove root. Try to download it again and check the md5 to make sure it is correct. Odin it again and it will work.
[Samsung Epic 4G Touch] quazimodem:
first off, many thanks for this crawrj (thnk'ed on OP). Great to have an easy option to restore to stock whenever I need to.

After doing a factory restart, I noticed some Sprint apps were missing eg Sprint Music, Telenav, and a few other apps that I remember were installed which I don't really care much about.

I do care about Sprint TV does anyone have the apk? I would like to reinstall that if possible. thx.
[Samsung Epic 4G Touch] ElAguila:
Thanks a lot for this. I used this today and returned the phone with no issues.
[Samsung Epic 4G Touch] Duce HD2:
Downloasd won't start...

Can someone post a mirror? I really want to go back to stock, but link just hangs on "connecting". Please help! Thanks:)

EDIT: Never mind it started..
[Samsung Epic 4G Touch] cinematree:
I had the zedomax v3 kernel and was rooted and was having all kinds of problems with my signal. I flashed this EG30 to my phone and the phone is working great again (thank you!) but now I'm not rooted. Can you please be more specific about how I would do what you're describing above?
[Samsung Epic 4G Touch] SpartanVissepo:
http://xdaforums.com/showthread.php?t=1273647

Flash this after zedos kernel
[Samsung Epic 4G Touch] agentfazexx:
So doing this will let me use the insurance I'm paying for with this phone? I have to have it fixed because it keeps dropping cell service, and the speed is ****.
[Samsung Epic 4G Touch] poppygt:
Worked incredibly well, it actually went so fast I thought something was wrong lol.
[Samsung Epic 4G Touch] lemeiux1:
any chance of a mirror? ACS is down again and im stuck at boot screen
[Samsung Epic 4G Touch] lojak29:
need a mirror guys it cant be that hard someone has to have the eg30.tar Anyone?

acs is down and i need the eg30 tar file please i restored a htc backup from my evo by accident but i have odin still i know someone has got to have a mirror or can someone email me the file please if you have it

aaron7095@gmail.com
[Samsung Epic 4G Touch] crawrj:
Added instructional video to OP thanks to qbking77
[Samsung Epic 4G Touch] Ten Ounce:
I posted this in a different thread, but I attempted to install this on my phone and everything looks like it worked, just like on your video. When I attempt to reboot my phone it shows the Sprint 4G animation, but it just keeps looping over and over. Any idea how to fix that? I attempted to redo the Odin install but each time I get the same issue after it seemingly installs properly.
[Samsung Epic 4G Touch] crawrj:
Do a factory rest from recovery.
[Samsung Epic 4G Touch] Ten Ounce:
That did it! Thank you!
[Samsung Epic 4G Touch] crawrj:
No problem. Glad I could help.
[Samsung Epic 4G Touch] Sterist:
can't this be established by taking the battery out and holding the power button for 30 seconds? :rolleyes:

static discharge, right?
[Samsung Epic 4G Touch] miketucky350:
perfect

Amazing work here! its great to have this restore so we can flash away with no worries!
[Samsung Epic 4G Touch] smark72:
Will this flash the eg30 modem?
[Samsung Epic 4G Touch] PolishDude:
dumb question but is this all i need to flash through odin to put the phone completely to stock specs, rom and all?
[Samsung Epic 4G Touch] smark72:
Yes. I think someone may have said to do a factory data reset after flashing but I don't know if that is even necessary anymore.
[Samsung Epic 4G Touch] sfoksn:
A quick nub question: does this UNROOT the phone if I flash over any other tar file?
[Samsung Epic 4G Touch] Zurginator:
Will this flash the phone to the point that it can be returned under warranty?
[Samsung Epic 4G Touch] crawrj:
Yes
[Samsung Epic 4G Touch] crawrj:
Yes just do a factory reset after you odin this to wipe data.
[Samsung Epic 4G Touch] JUSMEJOSE:
i have a samsung epic 4g touch customer brought me with patter lock i tried using odin but doesnt return to stock...

Evrything goes ok but doesnt go to stock

i also tried doing a hard reset using Volume+ and power takes me to recovery and when i tried wipe the user data it ask me for a password i never seen this
[Samsung Epic 4G Touch] siptang:
Hi, I wanted to put the phone back to stock so I downloaded and ran it through Odin and everything ran through fine but when I turn the phone back on, I get non stop sprint boot logo looping. Any ideas on how I can fix this?

Thanks guys.

Siptang.
[Samsung Epic 4G Touch] crawrj:
Never heard of that. It is probably encrypted and can't be cleared without the pattern.
[Samsung Epic 4G Touch] crawrj:
Wipe data from recovery.
[Samsung Epic 4G Touch] siptang:
Thanks! This worked perfectly.

Quick question though, I thought Odin basically wipes everything down does it not? I'm confused why I had to do that.

Any how, thank you so much for your hard work and support!
[Samsung Epic 4G Touch] agentfazexx:
There's a counter that you need to reset with a USB jig too. You can't just reflash it with Odin.
[Samsung Epic 4G Touch] crawrj:
If we had the full tar which included the data partition than it would wipe everything. But we don't have that yet so you have to wipe it yourself until we get something.
[Samsung Epic 4G Touch] crawrj:
That is true but I highly doubt the store will check. Especially with the phone being stock and no exclamation mark.
[Samsung Epic 4G Touch] leegorkhalee:
I was able to flash to stock rom but now my phone is stuck in airplane mode. I tried many times to take it off but I cannot take airplane mode off. When I check setting>about phone baseband version= unknown; hardware version= unknown :S

any help would be appreciated.
[Samsung Epic 4G Touch] Yet Again:
You are in my boat! I recognized my mistake though. Like an idiot, I flashed the root kernel over "PHONE" in Odin effectively erasing the radio/modem. Can ANYONE supply the stock RADIO/MODEM, flashable through Odin? I'm pretty sure that'll clear my situation up, but need to get the files first. I'm not skilled enough to pull it off my second E4GT.

NEVERMIND...fixed it!
[Samsung Epic 4G Touch] davec169:
I have exactly that same problem. How did you fix it?
[Samsung Epic 4G Touch] leegorkhalee:
This is how i fixed my airplane mode issue

->download the "bin" file(Stock Modem EG30.bin) follow the link http://xdaforums.com/showthread.php?t=1274337 (all the way in the bottom of the first post. )

->then use Odin to flash the file.

->Make sure you flash it under Phone not PDA.

Hope it helps. That did it for me.
[Samsung Epic 4G Touch] agentfazexx:
I restored to stock, flashed bubby's CWM tar and restored the backup I made with MyBackup root. Those apps are not visible under My Apps in the Market. I tried installing and uninstalling some random app, which supposedly fixes this, and it didn't work. I tried clearing Market data and rebooting, still no luck.
[Samsung Epic 4G Touch] Tyrantt23:
The SuperUser app is still listed on my apps after following the steps to the T. I also checked the MD5 hash before flashing.

Should I attempt to uninstall the SuperUser app, or just run Odin again with the stock Kernel listed?

If I attempt to run an app that requires root (Titanium Backup or SetCPU), it tells me that I do not have root permissions.

Thanks!! =)
[Samsung Epic 4G Touch] crawrj:
Did you do a factory reset? This does not touch the data so the app will still be there if it is in the data partition. You can uninstall it or do a factory reset to wipe all data.

Update: Ok I have been gone for a long while. Just saw that the full tar has been released so this thread is now obsolete. Please use the full tar found here http://xdaforums.com/showthread.php?t=1351761 to return to pure stock.
[Samsung Epic 4G Touch] xlGmanlx:
@Crawrj - Just thought you might know, in the thread about getting the "fix" pushed.....well the "fix" is being pushed to the user's phone right now. Anyone know how to help him pull it out so the Dev's can tear it appart and see if it solves LOS?

LINKY

EDIT:Here are the details from the thread
[Samsung Epic 4G Touch] crawrj:
Just looked. Looks like he doesn't have time to work on it. I don't want to be negative but I question the validity of this. Getting the update while rooted is one thing but retaining root after a full update

from 2.3.4 to 2.3.6 is very questionable. Also adding in that the sgs2 doesn't have 2.3.6 yet adds further doubts in my mind. But maybe this will be a first and I hope it is true :)
[Samsung Epic 4G Touch] xlGmanlx:
I am cautiously optimistic as well.
[Samsung Epic 4G Touch] MWaV:
will this help me as my phone is stuck in boot up screen with the "!"? I tried after flashing CWM, and now I'm stuck, any ideas?
[Samsung Epic 4G Touch] crawrj:
If you can get to download mode this will help. But use the full tar now since it is complete.
[Samsung Epic 4G Touch] MWaV:
what do you mean full tar? Sorry just trying to understand everything. so where would you suggest me to begin? I mean do you mind giving me the step by step, if ok
[Samsung Epic 4G Touch] crawrj:
This is the full tar http://xdaforums.com/showthread.php?t=1351761. It is complete with everything included. Go into download mode and follow the instructions to odin this.
[Samsung Epic 4G Touch] MWaV:
Dude thank you so much on helping me!!

DUDE YOU FREAKIN ROCK!! IF IT WASNT FOR YOU DIRECTING ME TO YOURS & squshy 7's POST I WOULD STILL BE PULLING MY HAIR OUT! DEFINITELY TAUGHT ME TO STICK AROUND MORE AND LEARN SOMETHING!! :D

---------- Post added at 10:43 AM ---------- Previous post was at 10:41 AM ----------

Thanks for you guys post!! If it was for guys like you i would have my phone!! Thumbs up bro!!
[Samsung Epic 4G Touch] crawrj:
Great news. Glad you were able to get it going!
[Galaxy S I9000 General] ph.miki:
I'm trying to make a odin rom. How to pull but.bin, dbdata.rfs, param.lfs and sbl.bin. Also can not tar make in tar.md5. I looked everything about this on ineternet, and I can not find the procedure. And one more question, how to make file 512 pti.

I was try darky procedure, but nothing.

Thanks!!!
[Galaxy S I9000 General] ph.miki:
developers? Where are you now? I need help
[Galaxy S I9000 General] lownoise:
Search in developers threads and you'll find your answers.
[Galaxy S I9000 General] ph.miki:
I was, but............nothing!!!
[Galaxy S I9000 General] ph.miki:
answers?:confused::confused::confused::confused::confused::confused::confused::confused::confused::confused:

​
[Galaxy S I9000 General] hofinho:
check your pm