[PROGRAM] Heimdall - Open-Source Cross-Platform Flashing Suite (1.3.2 Now Available) - Galaxy S II Original Android Development

Original Thread:
What is Heimdall?
Heimdall is a cross-platform open-source tool suite used to flash ROMs onto Samsung Galaxy S devices.
How does it work?
Heimdall uses the same protocol as Odin to interact with a device in download mode. USB communication in Heimdall is handled by the popular open-source USB library, libusb-1.0.
Why “Heimdall”?
The flashing software Odin is named after the king of gods in Norse mythology. Loke, the software component on the Galaxy S that provides functionality to flash, may also to be named after an important character in Norse mythology, often translated as Loki. As such I have named my flashing software Heimdall, after the Norse god, and guardian of the Bifrost Bridge.
What platforms does Heimdall run on?
Linux, OS X and Windows (XP, Vista, 7 etc.)
Why use Heimdall when we can use Odin?
Odin is generally unreliable and only runs on Windows systems. Furthermore, Odin is leaked Samsung software that is not freely available or well understood by the community.
Is Heimdall safe?
No matter what method you chose, flashing firmware onto your phone has a lot of potential for disaster. We have tested Heimdall with a variety of phones flashing several different firmware versions resulting in a 100% success rate. As such we believe that Heimdall is generally reliable. However keep in mind, just like any flashing software, Heimdall has the potential to brick your phone if not used correctly.
How do Galaxy S phones get bricked when flashing?
Besides the inherent risks like power outs, accidental removal of the USB cable etc. The Galaxy S appears to be running extremely unreliable USB control software.
A failure to flash does not automatically equate to a bricked phone. However if you're extremely unlucky and the flash fails whilst transferring the primary boot-loader, secondary boot-loader or params.lfs (all quite small) than you've got yourself a paper weight that you're hoping Samsung will replace.
Please be extremely careful mixing files from different firmware releases. Don't do so unless you're certain it will work!
What Galaxy S variants has Heimdall been tested with?
We’ve tested Heimdall with a Galaxy S GT-I9000 (8 GB) from the United Kingdom and Galaxy S GT-I9000 (16 GB) from Australia. We don’t personally have access to any other devices to test with, however users have confirmed Heimdall functions correctly with the AT&T Captivate, Bell Vibrant, Telstra GT-I9000T, Epic 4G and the Galaxy Tab.
Enough talk, where can we get it?
The latest release is available here. Please read the instructions and README files included in the archives.
I love you, man. Will you have my baby?
No, but I will very gladly accept donations. If you appreciate my work and would like to support future development you can make a donation here. If you think you have something else to offer, then feel free to shoot me a PM or contact me via the contact form on the Glass Echidna website.
Click to expand...
Click to collapse

Source has been pushed to Github. Let me know how it goes for you Galaxy S II folk.
If you're appreciative of the updates don't forget to donate so I can get myself a Galaxy S II

Gr8 news!
Hope this won't increase the flash counter in download mode when it's finished
Swyped from my overclocked GT-I9100 using XDA Premium App

I'm happy with Odin on Windows, but great work nonetheless !

Chainfire said:
I'm happy with Odin on Windows, but great work nonetheless !
Click to expand...
Click to collapse
on windows, yes
but linux... ^^
Swyped from my overclocked GT-I9100 using XDA Premium App

Great, Ive been waiting for this. More linux love. Thanks!
Sent from my GT-I9100 using Tapatalk

Excellent! Though I may not be the first to try it, I'll probably be using this (tomorrow?) to flash my first custom ROM if all goes well

Hey Ben,
Do you think its possible to make backups of firmware using this tool? I think it'd be good for those who wants to have carrier-branded ROMS backed up for warranty purposes.

phunkycow said:
Great, Ive been waiting for this. More linux love. Thanks!
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Nice will give it a shot later.
OT:
Phunkycow u here? Left the dhd behind? Loved ur cm builds on the dhd..
Sent from my GT-I9100 using Tapatalk

Locster126 said:
Nice will give it a shot later.
OT:
Phunkycow u here? Left the dhd behind? Loved ur cm builds on the dhd..
Click to expand...
Click to collapse
<OT>Yeah, sold it finally and i'm a happy panda now lol
Good to see you here too!</OT>
(Apologies for the OT )

Heimdall 1.2.0 command line binaries are now available. Debian 32-bit, Debian 64-bit, Windows and OS X (universal) are all available.

4iedemon said:
Hey Ben,
Do you think its possible to make backups of firmware using this tool? I think it'd be good for those who wants to have carrier-branded ROMS backed up for warranty purposes.
Click to expand...
Click to collapse
Sorry, I missed this post.
Heimdall has theoretically supported dumping of firmware for quite some time. However all the devices I've ever tested it with mostly send back junk data and eventually stop responding altogether (requiring a manual reboot). As far as I can tell this is simply a result of the secondary bootloaders on devices just not supporting the functionality, however it's possible that the functionality has been finished/fixed for the SGS2.
If someone wants to test out dumping when they test out flashing that would be great. If so I recommend you enable the verbose switch so you have a better idea of what is going on.

Benjamin Dobell said:
Heimdall 1.2.0 command line binaries are now available. Debian 32-bit, Debian 64-bit, Windows and OS X (universal) are all available.
Click to expand...
Click to collapse
Nice, thanks! Would this (theoretically) work with the GUI from v1.1?

aussiebum said:
Nice, thanks! Would this (theoretically) work with the GUI from v1.1?
Click to expand...
Click to collapse
Yeah, you obviously won't be able to use any functionality that isn't available from the GUI though. Because the SGS2 has a few different partitions that aren't accessible from Heimdall Frontend you won't be able to flash to them, however you can still flash kernels etc. no problems.

OS X users, you will need to download the latest package again. The binaries are the same but I had forgotten to update the kext so that "the interface could be claimed".

Code:
$ heimdall print-pit
Heimdall v1.0.2b, Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Failed to detect compatible device
I installed the latest one in OS X 10.6, restarted, and got the above result. Note that running "adb devices" does show up my SGSII properly.

winst said:
Code:
$ heimdall print-pit
Heimdall v1.0.2b, Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Failed to detect compatible device
I installed the latest one in OS X 10.6, restarted, and got the above result. Note that running "adb devices" does show up my SGSII properly.
Click to expand...
Click to collapse
is your phone in download mode?
Sent from my GT-I9100 using XDA App

I tried print-pit and dump and ended up with a bunch of "Error -7 whilst receiving packet." print-pit seemed to work fine but was unable to end the session.
Find verbose logs here:
print-pit
dump
For obvious reasons, I'm a little hesitant to try flashing anything

jps1974 said:
I tried print-pit and dump and ended up with a bunch of "Error -7 whilst receiving packet." print-pit seemed to work fine but was unable to end the session.
Find verbose logs here:
print-pit
dump
Click to expand...
Click to collapse
Thanks for the details, much appreciated.
The dump log doesn't really surprise me, it's actually better than how it fails on Galaxy S. The Galaxy S downloads a heap (megabytes) of junk, I guess that it's good that it fails immediately.
jps1974 said:
For obvious reasons, I'm a little hesitant to try flashing anything
Click to expand...
Click to collapse
Haha, no worries.
A few questions though:
Does your device reboot after the PIT information is displayed?
When you reboot does the phone boot normally or is the connect phone to PC screen displayed?
Does "heimdall close-pc-screen" also fail to end the session?
If your device boots up fine (no connect to PC screen) then that should mean the end session packet was received (and interpreted) by your phone no problems. If that's the case then it's possible Samsung have just changed the protocol so no response is expected. It never really made sense to me that you've essentially told the phone you're done and then you still send it a reboot packet.
Alternatively the syntax to end a session may have changed slightly. Someone mentioned a flash counter, maybe I'm supposed to send a packet to update the counter (although I'd rather not anyway).
Without a SGS2 I'm unable to investigate this myself but if someone is able to get me a detailed USB log of flashing with Odin or Kies then I could sort it out. I literally need the 1s and 0s sent to/from the phone. If not then donations towards getting me a SGS2 would be immensely helpful. Thanks again to those of you who have donated.
EDIT: Doh, I just realised I spelt "successful" wrong when Heimdall downloads a PIT file

Well, I grew some balls and tried a full flash - worked just fine
To answer your questions:
Benjamin Dobell said:
Does your device reboot after the PIT information is displayed
Click to expand...
Click to collapse
Nope
Benjamin Dobell said:
When you reboot does the phone boot normally or is the connect phone to PC screen displayed?
Click to expand...
Click to collapse
Boots up normally
Benjamin Dobell said:
Does "heimdall close-pc-screen" also fail to end the session?
Click to expand...
Click to collapse
Yes, see here
Benjamin Dobell said:
Without a SGS2 I'm unable to investigate this myself but if someone is able to get me detailed USB log of flashing with Odin or Kies then I could sort it out, I literally need the 1s and 0s sent to/from the phone. If not then donations towards getting me a SGS2 would be immensely helpful. Thanks again to those of you who have donated.
Click to expand...
Click to collapse
I made a small donation towards your new device, but I'll be happy to help you out if you give me some instructions
By the way, I have to use sudo, otherwise I get this:
Code:
Failed to access device. Error: -3
Thanks for all your work!

Related

[How To] Easily Root your SGS2

Instructions updated based on creepyncrawly's thread found here .
1.) How to root by using DooMLoRD's Easy Rooting Toolkit. (ZergRush Exploit) (Windows)
[*]Not working for KK6 2.3.6[*]
Download the "DooMLoRD's Easy Rooting Toolkit v3.0" package from this thread and extract it to a directory on your hard drive using WinZip or a similar program.
You need to have the USB drivers for SGH-I777 installed on your computer. (It will be "Samsung USB Driver for Mobile Phones" in Control Panel\Uninstall Programs.) Download and install the latest drivers from this thread. (x86 and x64)
Both USB Debugging (Menu\Settings\Applications\Development) and Unknown Sources (Menu\Settings\Applications) should be enabled on your phone.
Increase the screen timeout on your phone to 10 minutes. (Menu\Settings\Display\Screen Timeout) Remember to set it back to a shorter interval after you are done rooting.
Connect the USB cable to the phone and the computer. Go to the directory where you extracted the package and execute "runme.bat".
The toolkit will open a command prompt window where you will see the progress of the rooting process. It takes between 5 and 10 minutes for the process to complete.
Success. You're rooted.
2.) How to root by using SuperOneClick Root. (ZergRush Exploit) (Windows, Linux and Mac OS)
[*]Not working for KK6 2.3.6[*]
Download "SuperOneClick v2.3.1 - Automatic Driver Installation" from MultiUpload and extract it to a directory on your hard drive using WinZip or a similar program.
Please go the the SuperOneClick thread and read about the tool and how to use it. For Windows XP you need to have .NET Framework v2.0 or above installed. For Mac OS and certain flavors of Linux, you need to install Mono.
I have not tested this tool. It is included here because it claims to work for Mac OS and Linux, and provides a way to use the ZergRush Exploit on those operating systems. Since I am only familiar with Windows, I will be unable to support this rooting method. For problems, try posting questions in the SuperOneClick thread linked above.
If you try SuperOneClick on Linux or Mac, please post your (success or failure) results. Thanks.
3.) How to root by flashing Entropy512's Return/Unbrick to Stock, Kernel + Rooted System Package with Modem using Odin3 One-Click Downloader (Windows)
I have prepared Odin3 One-click Downloaders for the Stock non-rooted and Stock + Root packages. Each One-click Downloader also contains the Modem. This will make flashing back to stock or flashing root in Windows easier. These were tested and flashed successfully on my device. These could be posted in the OP for convenience.
Odin3 One-click Downloader I-777 UCKH7 Stock + Root No Bootloaders
I777_UCKH7_OCD_Root_No_BL.7z
(This one-click downloader flashes: zImage, factoryfs.img with root, and modem.bin)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
How to Use:
Download the 7 zip package. Extract the contents of the zip file to a directory on your hard disk drive.
Start the Odin3 One-Click Downloader program by double clicking on "I777UCKH7 OCD No BL.exe" or "I777UCKH7 OCD Root No BL.exe".
Now Enter Download Mode:
With the phone powered off, plug in the usb cable while holding the vol up + vol down buttons (but not the power button).
When the warning screen appears, press Volume up to continue into download mode.
In Odin, the small edit box in the upper left corner will turn yellow, and say something like [0:COM8]. The number could be different.
Click Start. Watch the progress bar advance in green while the message box in the lower area describes the steps. When the flash is finished, the top left larger edit box will turn green and say PASS! and your phone will automatically reboot.
Unplug the usb cable from you phone after it boots up. Success.
The above is from creepyncrawly, found here.
4.) How to root by flashing Entropy512's Return/Unbrick to Stock, Kernel + Rooted System Package from the command line using Heimdall (Linux and Mac OS)
Tested on Linux, should work on Mac OS
Download and install the latest version of Heimdall Command Line for your operating system from here. (Latest version 1.3.1 at this writing.)
Download Entropy512's Return/Unbrick to Stock, Kernel + Rooted System Package from here. Extract the PDA.tar file from this package to a directory on your hard disk drive, then extract the two component files from the tar - zImage and factoryfs.img.
Place zImage and factoryfs.img both in the directory where you have the Heimdall command line executable, and enter the following at the command prompt:
Code:
heimdall flash --kernel zImage --factoryfs factoryfs.img
Reboot the phone. Success. You're Rooted.
Super simple, Thanks!!
Do all the buttons and data connections work properly this kernel?
Sent from my SAMSUNG-SGH-I897 using XDA App
dayv said:
Do all the buttons and data connections work properly this kernel?
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
Been running kernel for an hour no issues yet.
Cool should have my phone in a hour or two. Though I may hold off flashing till later on encase the development cause needs a virgin dump of something later on tonight.
Sent from my SAMSUNG-SGH-I897 using XDA App
dayv said:
Cool should have my phone in a hour or two. Though I may hold off flashing till later on encase the development cause needs a virgin dump of something later on tonight.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
Yea sent them mine already. Have it on pc in case they need more.
Sent from my SAMSUNG-SGH-I777 using xda premium
Might wanna get rid of the screenshot that has the first app listed. Some may frown upon it... just saying. Anyways, thank you and I will have mine in 3 hours. Yay!
Sent from my SAMSUNG-SGH-I897 using XDA Premium App
Probably a noob question, but pc drivers - are they the same as captivate or do I need to get new drivers? Link?
Thanks,
Bob
I can not for the love of God figure out why odin 1.8.2 is not recognizing my phone. I tried it first with debugging on, then off. Different ports. I know the drivers work because i can mount it and add or remove files from it. I get to downloading(do not turn off target) but Odin does not say COM1 or what not. Any suggestions/
I feel I missing something obvious, unless this driver is different then the captivate driver?
rbtconsultants said:
Probably a noob question, but pc drivers - are they the same as captivate or do I need to get new drivers? Link?
Thanks,
Bob
Click to expand...
Click to collapse
I'm pretty sure it uses the same drivers as the captivate. But I don't have the SGSII in my hands yet so I can't confirm.
---------- Post added at 10:15 AM ---------- Previous post was at 10:14 AM ----------
TheTodFather said:
I can not for the love of God figure out why odin 1.8.2 is not recognizing my phone. I tried it first with debugging on, then off. Different ports. I know the drivers work because i can mount it and add or remove files from it. I get to downloading(do not turn off target) but Odin does not say COM1 or what not. Any suggestions/
I feel I missing something obvious
Click to expand...
Click to collapse
What OS?
10 char
Windows 7.....
Did you open Odin as Administrator?
Graci, I haz rootz now.
Ok figured it out! Somehow the drivers were corrupted, I just re-installed them and all is good. I suspected it was causing the problem. Glad to get it fixed.
TheTodFather said:
Graci, I haz rootz now.
Ok figured it out! Somehow the drivers were corrupted, I just re installed them and all is good. I suspected it was causing the problem. Glad to get it fixed.
Click to expand...
Click to collapse
Do you mind linking to the drivers neccesary?
Done! not hard at all! thanks!!!
TheTodFather said:
Windows 7.....
Click to expand...
Click to collapse
Windows 7 sucks! I run it as parallel on my mac and I've had trouble with Odin many times. Whether its drivers,etc. Hopefully when I get home with my sgs 2 it won't give me any trouble
Sent from my SAMSUNG-SGH-I897 using XDA App
Super One Click doesnt seem to want to do the root. It attempts to start the daemon and then subsequently crashes.
Thoughts?
afroduck said:
Super One Click doesnt seem to want to do the root. It attempts to start the daemon and then subsequently crashes.
Thoughts?
Click to expand...
Click to collapse
Same for me... Odin goes smoothly but SuperOneClick crashes after closing and trying to restart adb
Hmm..
Two issues I am having with this. The first and most important is that I cannot seem to flash any other ROMs - or even other versions of Clockwork Mod with this. I get "signature verification failed". I've checked the MD5 of the downloaded files and it all seems to check out, so I'm unsure if this is intentional or not.
I've also now got an annoying big yellow exclamation point on boot. It doesn't really impede anything, but it is... absolutely infuriating how it stares at me with its yellowness.. It really isn't a big deal, though.
I'm going to try to reflash a third time, though, maybe it will solve itself.
Will this work with Heimdall?

"Claiming interface failed" alert when rooting on mac

so the title pretty much sums it up, im on a mac 10.7.2 and trying to root my sgs2, im new to rooting so im still trying to figure everything out but ive followed multiple guides. they all end with "claiming interface failed" can someone help me with this please?
I'm guessing you're using heimdal? Just covering the ground work. Have you tested out if it can be accessed through adb? And that it can mount the sdcard to the computer?
Sent from my páhhōniē
ElectronicYank said:
so the title pretty much sums it up, im on a mac 10.7.2 and trying to root my sgs2, im new to rooting so im still trying to figure everything out but ive followed multiple guides. they all end with "claiming interface failed" can someone help me with this please?
Click to expand...
Click to collapse
Not sure this is the kind of help you're looking for but I'd tried rooting with heimdal on mac 10.7.2 also, for about 5 hours with no success! Booted up Parallels (Win 7) and flashed with odin first time. Some have reported success using heimdal on 10.7.2 but I tried everything I could find with no luck. All that to say, if you have access to a pc just root on that and start enjoying your phone!
Or check out mobile Odin. Can flash everything you need with just your phone, and not trip the flash counter. Which means you can just download Entropy512's kernel and you'll have cwm. And from there flash any rom you want.
Sent from my páhhōniē
gr8hairy1 said:
Or check out mobile Odin. Can flash everything you need with just your phone, and not trip the flash counter. Which means you can just download Entropy512's kernel and you'll have cwm. And from there flash any rom you want.
Sent from my páhhōniē
Click to expand...
Click to collapse
isnt that only if your phone is rooted?
gr8hairy1 said:
I'm guessing you're using heimdal? Just covering the ground work. Have you tested out if it can be accessed through adb? And that it can mount the sdcard to the computer?
Sent from my páhhōniē
Click to expand...
Click to collapse
yes i installed heimdall 1.3.1
idk what you mean by testing it through adb and how mounting the sd card is part of the process though
im a noob to all this so i apologize for my stupidity in advance
I can't help with using Heimdall on Lion 10.7.2, but...
You should be able to root using SuperOneClick v2.2. This program uses the ZergRush Exploit and is supported on mac with mono v1.2.6 or better.
If you try this, please post back to let us know if it worked for you.
As I understand it, Heimdall seems to have a LOT of problems with Lion.
Entropy512 said:
As I understand it, Heimdall seems to have a LOT of problems with Lion.
Click to expand...
Click to collapse
thats unfortunate news
creepyncrawly said:
I can't help with using Heimdall on Lion 10.7.2, but...
You should be able to root using SuperOneClick v2.2. This program uses the ZergRush Exploit and is supported on mac with mono v1.2.6 or better.
If you try this, please post back to let us know if it worked for you.
Click to expand...
Click to collapse
am i running any serious risks by trying this?
None that I've heard. Just used it tonight on my friends sgsii. Worked with no issues.
Sent from my páhhōniē
gr8hairy1 said:
None that I've heard. Just used it tonight on my friends sgsii. Worked with no issues.
Click to expand...
Click to collapse
Working from a Windows pc?
creepyncrawly said:
Working from a Windows pc?
Click to expand...
Click to collapse
Oops, forgot the op is using mac. Yeah windows 7.
Sent from my páhhōniē
ya ive been trying this guide here and this one
but they both bring up the same error
i tried to use bootcamp and put windows 7 on but for some reason my mac wont let me now
Just download zergrush root and samsung Kies. Put it on any windows box and you'll be all done with root in probably less than 15 min, from start to finish.
For sure you'll be able to get things working on your Mac at some point. But no sense in also being frustrated you can root your phone. Keep the stress level low
Sent from my páhhōniē
ElectronicYank said:
ya ive been trying this guide here and this one
but they both bring up the same error
i tried to use bootcamp and put windows 7 on but for some reason my mac wont let me now
Click to expand...
Click to collapse
Have you tried SuperOneClick on Lion yet? I'd be really interested to know if it will work for you.
creepyncrawly said:
Have you tried SuperOneClick on Lion yet? I'd be really interested to know if it will work for you.
Click to expand...
Click to collapse
is there a version for lion?
ElectronicYank said:
is there a version for lion?
Click to expand...
Click to collapse
I've never use Mac computers. Did you read CLShortFuse's SuperOneClick thread? He states that the program works on mac after installing mono 1.2.6 or greater. He doesn't say anything specific about Lion. Please go to his thread at SuperOneClick v2.2 and look at the information.
If you decide to try this, and I can't think of any reason why you shouldnt at least try, then your results will be important so we can tell other mac users if this method works or not.
Good luck, I hope it works.
i downloaded everything but there isnt a real guide for mac's
ElectronicYank said:
i downloaded everything but there isnt a real guide for mac's
Click to expand...
Click to collapse
Can't help you there. From reading a little bit in the SuperOneClick thread, it looks like it might be a little more involved than just installing mono and then the program. All I can suggest is search his thread.
Or... maybe it would be easier to find a Windows pc you can borrow and root from there.
i searched the thread for a couple of hours and couldnt find anything useful

[Q] Root this phone on a Mac?

Hi All;
Coming to this phone from a Sprint Epic Touch 4G; i have a lot of experience flashing phones over the years, and very excited about upgrading to this beast!
Anyways, I am in an all OSX house, so no Odin for this phone; Rooting my ET4G was a breeze using Heimdall, and a rooted stock kernel with CWM.
Has anyone rooted this phone is the same manner? If so, what rooted kernel with CWM did you flash in Heimdall?
Thanks so much, and I am looking forward to being a helpful member of these threads!
I use vm ware fusion. Using my windows 7, Odin, it took all of 5 mins. Now on HTC phones I had to use a real PC because the phone had to reboot and finish. This my second Samsung and it's way earlier.
well, I am on Lion 10.7.2, and vm ware fusion isn't really reliable on my machine; heimdall is so easy and fast, and works natively in OSX, and I've used it dozens of times on my E4GT; I assume it would work the same on this phone, since they are such similar phones..I just want to make sure..
wase4711 said:
well, I am on Lion 10.7.2, and vm ware fusion isn't really reliable on my machine; heimdall is so easy and fast, and works natively in OSX, and I've used it dozens of times on my E4GT; I assume it would work the same on this phone, since they are such similar phones..I just want to make sure..
Click to expand...
Click to collapse
Idk bro. I'm running the same OS, but I did upgrade to the newest version of vm. It never gave me problems. Good luck
I use bootcamp with Windows 7 on my MBP.
Bootcamp was a pain for me... I couldn't get it to boot my cracked windows 7. Anyways I'm running parallels and it's great. Pm if you need the serial I have one that's worked for a year or so
Sent from my SAMSUNG-SGH-I717
crazzysandman said:
Bootcamp was a pain for me... I couldn't get it to boot my cracked windows 7. Anyways I'm running parallels and it's great. Pm if you need the serial I have one that's worked for a year or so
Sent from my SAMSUNG-SGH-I717
Click to expand...
Click to collapse
thanks man; I am trying to avoid going the parallels/vmware route; heimdall was super easy on my other Sammy phone; I am just hoping someone can confirm they used it on this guy; also, I have to find a rooted kernel for this phone, so I can extract the zimage to use..
I appreciate the offer!
just an update; I tried to root today with heimdall, using the same exact procedure that I did with my Sammy E4gt, and its a no go; heimdall won't work on the Note, as of now...hope someone can figure out a pure OSX method of rooting this bad boy..
If you're desperate to root, try rooting the old fashioned way using adb. I believe adb would still work on MAC right? If so use adb to get root, then install clockwork recovery and from there you should be able to flash the ROM/kernel if your choice
Sent from my SGH-I897 using xda premium
crazzysandman said:
Bootcamp was a pain for me... I couldn't get it to boot my cracked windows 7. Anyways I'm running parallels and it's great. Pm if you need the serial I have one that's worked for a year or so
Sent from my SAMSUNG-SGH-I717
Click to expand...
Click to collapse
Cracked windows 7?
Serial number for parallels
Talk about dishonesty dude.
crazzysandman said:
Bootcamp was a pain for me... I couldn't get it to boot ..
Sent from my SAMSUNG-SGH-I717
Click to expand...
Click to collapse
Use reFIT as the boot loader, it allows you to select which OS to boot in. Very easy to install.
lindenhurst said:
Cracked windows 7?
Serial number for parallels
Talk about dishonesty dude.
Click to expand...
Click to collapse
Keep rude comments to yourself, im just trying to help the guy out and windows was given to me, dont act like you never done something bad, and dont put someone on the spot...
Sent from my SAMSUNG-SGH-I717
otisranson said:
Use reFIT as the boot loader, it allows you to select which OS to boot in. Very easy to install.
Click to expand...
Click to collapse
Cool thanks im just going to stick to parelles
Sent from my SAMSUNG-SGH-I717
wase4711 said:
thanks man; I am trying to avoid going the parallels/vmware route; heimdall was super easy on my other Sammy phone; I am just hoping someone can confirm they used it on this guy; also, I have to find a rooted kernel for this phone, so I can extract the zimage to use..
I appreciate the offer!
Click to expand...
Click to collapse
True no problem i havent rooted just yet but i just had everything read for root lol
Sent from my SAMSUNG-SGH-I717

[GUIDE] Mac Root (tested)

This guide is for the select few that need to root their Samsung Galaxy S4 via Mac.
This guide only shows how to swap kernels in order for you to run motochopper then swap back to stock kernel.
Please keep in mind this is technical and involves using manual commands for heimdall in terminal.
If you have anything to add or have any questions, don't hesitate to ask.
I have tested this method using Heimdall on my Windows 7 machine.
I do not own a Mac to fully test this.
I am not an expert nor do I portray myself to be one.
I am not responsible to any problems from this method including bricking any devices, loss of data, or other issues that may arise with your device or computer. (Just to cover my behind.)
Things you need:
1. Heimdall
2. prerelease kernel boot.img (MD5: cd49d9c337d624abec5f6f1229e1abf6)
3. stock kernel boot.img (MD5: 3c776b87c2c1390787189e60d311c769)
4. Motochopper Root Exploit Tool
5. Drivers can be installed by installing Kies
First install Heimdall.
And make sure you have the drivers installed.
Make sure you have the prerelease kernel boot.img (MD5: cd49d9c337d624abec5f6f1229e1abf6) in an easy place to find and make sure you keep it seperate from the stock kernel boot.img (MD5: 3c776b87c2c1390787189e60d311c769).
If you have Kies installed, uninstall it.
Then open the heimdall-frontend application that was installed with heimdall.
Use the heimdall-frontend app to detect the device by going to Utilites > Detect.
Next open a terminal type
Code:
sudo heimdall flash --BOOT <full path to prerelease kernel>
Enter your password.
The prerelease kernel will be flashed and your device will reboot.
Go to Settings > More > About phone
and check to make sure your kernel version is 423399.
Then go into Settings > More > About phone > tap "Build number" about 7 times until it unlocks Developer options
Verify in Developer options setting on your device that you have "USB debugging" checked.
Verify in Developer options setting on your device that you have "Verify apps via USB" unchecked.
Verify in Security setting on your device that you have "Unknown sources" checked.
Verify in Security setting on your device that you have "Verify apps" unchecked.
Extract the motochopper.zip file.
Open terminal, navigate to the motochopper folder and type
Code:
sudo chmod +x run.sh
Then type
Code:
sudo ./run.sh
Follow the on screen prompts.
After you are rooted, make sure you update the su binaries.
Otherwise you will lose root later on.
Next boot your phone into download mode in order to put the stock kernel back.
Open the heimdall-frontend application and detect your device once again. (Utilities > Detect)
Next open a terminal and type
Code:
sudo heimdall flash --BOOT <full path to stock kernel>
Then go to Settings > More > About phone
and make sure the stock 562219 kernel is installed.
Credits go to djrbliss, chainsdd, Samsung, creators of Heimdall, and if I missed anybody please let me know and I will add them to it.
Thanks to Doppletronica for confirming the method.
If you found this guide helpful please hit the thanks button
EDIT: If this thread now belongs somewhere else due to its nature, please move it mods.
Also anybody is free to share this guide, just link them to this thread and please give credit where credit is due.
Thanks.
klabit87 said:
Is there anybody willing to test a root method running a Mac?
I may have found a way but I don't have any way to test it myself otherwise I would.
If interested please pm me.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
Click to expand...
Click to collapse
does it have an unroot? i'd be willing to try it out. if so
theidoctor said:
does it have an unroot? i'd be willing to try it out. if so
Click to expand...
Click to collapse
I'm not too sure about an unroot method.
I'm sure if I looked at it hard enough I could come up with something.
Are you looking for an unroot method via Mac?
Sent from my Verizon Galaxy S4 using Tapatalk 2.
klabit87 said:
I'm not too sure about an unroot method.
I'm sure if I looked at it hard enough I could come up with something.
Are you looking for an unroot method via Mac?
Sent from my Verizon Galaxy S4 using Tapatalk 2.
Click to expand...
Click to collapse
yea. i mean, just for testings sake. i dont want to have to go through the whole unroot just to test a root method drama.
i could unroot on my VM and try your root, but what are the possible effects to it going down? does it work with you?
theidoctor said:
yea. i mean, just for testings sake. i dont want to have to go through the whole unroot just to test a root method drama.
i could unroot on my VM and try your root, but what are the possible effects to it going down? does it work with you?
Click to expand...
Click to collapse
Pm sent.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
Update:
I tried making an unroot method.
That completely failed.
So I had to use Odin to get running again.
I did however get a chance to test the root method for Mac users.
It worked with no problems for me.
I may continue working on the unroot method but that depends on my own free time.
If anyone is interested in assisting with it that would be great.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
klabit87 said:
Update:
I tried making an unroot method.
That completely failed.
So I had to use Odin to get running again.
I did however get a chance to test the root method for Mac users.
It worked with no problems for me.
I may continue working on the unroot method but that depends on my own free time.
If anyone is interested in assisting with it that would be great.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
Click to expand...
Click to collapse
pm me instructions and i will try it out tonight. i dont mind being a flashaholic tonight
theidoctor said:
pm me instructions and i will try it out tonight. i dont mind being a flashaholic tonight
Click to expand...
Click to collapse
I will finish my write-up and get it to you as soon as I can.
I'm not around a computer at work so it may be later this evening possibly.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
theidoctor said:
pm me instructions and i will try it out tonight. i dont mind being a flashaholic tonight
Click to expand...
Click to collapse
Pm has been sent. Let me know if you have any questions or concerns.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
You can unroot it the same way you root. Use Heimdall.
DarkMenace said:
You can unroot it the same way you root. Use Heimdall.
Click to expand...
Click to collapse
Thanks. I knew I was making it harder than it was supposed to be.
I was really only interested in the root guide since a good few people were asking about it.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
I was wondering if someone can help me. I keep getting this error message:
patxp:desktop ArmandoOrona$ sudo heimdall detect
Password:
Device detected
patxp:desktop ArmandoOrona$ sudo heimdall flash --BOOT boot.img
Heimdall v1.4.0
Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Claiming interface...
libusbx: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
ERROR: Claiming interface failed!
patxp:desktop ArmandoOrona$
I uninstalled kies and android file transfer and restarted mac. Any help would be greatly appreciated.
Has anyone else tested this? Just curious.
anothamexican said:
I was wondering if someone can help me. I keep getting this error message:
Initialising connection...
Detecting device...
Claiming interface...
libusbx: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
ERROR: Claiming interface failed!
patxp:desktop ArmandoOrona$
I uninstalled kies and android file transfer and restarted mac. Any help would be greatly appreciated.
Click to expand...
Click to collapse
I got this same error. What I did was uninstall kies and then open the heimdall-frontend app that was installed with heimdall, and use it to detect the phone. (In Utilities->Detect) From there I could run the command line part successfully. Worked for me.
Doppletronica said:
I got this same error. What I did was uninstall kies and then open the heimdall-frontend app that was installed with heimdall, and use it to detect the phone. (In Utilities->Detect) From there I could run the command line part successfully. Worked for me.
Click to expand...
Click to collapse
So just to clarify, are you saying the whole process worked for you?
Whereas you successfully rooted your phone?
Sent from my Verizon Galaxy S4 using Tapatalk 2.
klabit87 said:
So just to clarify, are you saying the whole process worked for you?
Whereas you successfully rooted your phone?
Sent from my Verizon Galaxy S4 using Tapatalk 2.
Click to expand...
Click to collapse
Yep. Once I got the kernel to flash okay, The rooting process worked flawlessly.
Doppletronica said:
Yep. Once I got the kernel to flash okay, The rooting process worked flawlessly.
Click to expand...
Click to collapse
Great! Thanks for your confirmation.
Sent from my Verizon Galaxy S4 using Tapatalk 2.
Man.....I wish I saw this yesterday. I spent 2 hours getting my old imac up and running with bootcamp to install windows.....another hour looking for my old XP disc to actually install it on the iMac, another half hour to install XP, then a good 45 minutes or so trying and failing to gett all the samsung drivers to wok (too several installs and unistalls til it finally worked). After all that, I downloaded the all in one root kit and install recovery as well.
Doppletronica said:
I got this same error. What I did was uninstall kies and then open the heimdall-frontend app that was installed with heimdall, and use it to detect the phone. (In Utilities->Detect) From there I could run the command line part successfully. Worked for me.
Click to expand...
Click to collapse
I got heimdall frontend to detect the device, where do I type in the commands? Under which tab?
anothamexican said:
I got heimdall frontend to detect the device, where do I type in the commands? Under which tab?
Click to expand...
Click to collapse
The guide has been updated.
You need to continue the process in terminal.
Sent from my Verizon Galaxy S4 using Tapatalk 2.

Android Pie + S9plus + Odin + Chromebook

Hi everyone,
Im looking for some help if its possible at all.
I have a S9+ on android pie beta (ZRLF/CRLF) and want to update to the stable. But im not able to find the update.zip and therefor looking to flash it with Odin.
But i have a Chromebook and just cant seem to install it on the chromebook, anyone have a suggestion for me how to flash it either direct on the phone or the chromebook?
Thanks in advance
allanpersson said:
Hi everyone,
Im looking for some help if its possible at all.
I have a S9+ on android pie beta (ZRLF/CRLF) and want to update to the stable. But im not able to find the update.zip and therefor looking to flash it with Odin.
But i have a Chromebook and just cant seem to install it on the chromebook, anyone have a suggestion for me how to flash it either direct on the phone or the chromebook?
Thanks in advance
Click to expand...
Click to collapse
I've been using Chromebooks exclusively for several years now, and I always use my mother's Windows desktop when I need to use Odin. Currently it's just such a hassle to even attempt on a Chromebook, there might be a better way than this now, but I think you would need to install Linux via crouton, then setup a Windows virtualbox within that, and then hope that your phone is recognized through the USB port. I mean some people I guess install Linux directly to their Chromebook hard drive, but then I think you would still need a Windows virtualbox in that. Although, there is a Linux program called Heimdall that used to be able to flash Samsung firmware onto phones, but I am not sure if that still works, but that might be worth a look. if your Chromebook supports Linux apps now, you might try and install Heimdall, or else you would have to have some kind of Linux working.
The only other thing I can think of is there is talk that Chromebooks will be able to run Windows somehow in the future, hopefully not too far off! Some kind of dual boot situation I believe?
Oh and the other thing is maybe it's possible to find the update.zip for Pie?
And then one other idea to throw out is there used to be a program called Mobile Odin where you could flash firmware right on your phone, but I'm not sure if that's still around or if it's even safe to use now or what, but that might possibly be worth a look as well.
YrrchSebor said:
I've been using Chromebooks exclusively for several years now, and I always use my mother's Windows desktop when I need to use Odin. Currently it's just such a hassle to even attempt on a Chromebook, there might be a better way than this now, but I think you would need to install Linux via crouton, then setup a Windows virtualbox within that, and then hope that your phone is recognized through the USB port. I mean some people I guess install Linux directly to their Chromebook hard drive, but then I think you would still need a Windows virtualbox in that. Although, there is a Linux program called Heimdall that used to be able to flash Samsung firmware on two phones, but I am not sure if that still works, but that might be worth a look. if your Chromebook supports Linux apps now, you might try and install Heimdall, or else you would have to have some kind of Linux working.
The only other thing I can think of is there is talk that Chromebooks will be able to run Windows somehow in the future, hopefully not too far off! Some kind of dual boot situation I believe?
Oh and the other thing is maybe it's possible to find the update.zip for Pie?
and then one other idea to throw out is there used to be a program called Mobile Odin where you could flash firmware right on your phone, but I'm not sure if that's still around or if it's even safe to use now or what, but that might possibly be worth a look as well.
Click to expand...
Click to collapse
Thanks for the reply, I have installed heimdall front and backend, but I don't see any program in my Linux apps [emoji85] I might as you say need to borrow a windows pc to do it [emoji19]
Sendt fra min SM-G965F med Tapatalk
allanpersson said:
Thanks for the reply, I have installed heimdall front and backend, but I don't see any program in my Linux apps [emoji85] I might as you say need to borrow a windows pc to do it [emoji19]
Sendt fra min SM-G965F med Tapatalk
Click to expand...
Click to collapse
Oh cool, did you install it with the new Linux functionality? That's kind of intriguing and would be cool if it would work. Otherwise yeah, it might be easiest just to borrow a Windows PC ?. I think I used mobile Odin to flash a kernel or something but I can't remember if it was really safe or not.
YrrchSebor said:
Oh cool, did you install it with the new Linux functionality? That's kind of intriguing and would be cool if it would work. Otherwise yeah, it might be easiest just to borrow a Windows PC [emoji2]. I think I used mobile Odin to flash a kernel or something but I can't remember if it was really safe or not.
Click to expand...
Click to collapse
Yes it's installed with the included functionality. But the heimdall apps is not becoming available in the folder [emoji4]
Sendt fra min SM-G965F med Tapatalk
allanpersson said:
Yes it's installed with the included functionality. But the heimdall apps is not becoming available in the folder [emoji4]
Sendt fra min SM-G965F med Tapatalk
Click to expand...
Click to collapse
Ah ok, it looks like if you type heimdall flash in the command line, it gives you the options for flashing stuff. I'm not sure how to do it though, especially nowadays with Samsung firmware coming with fout separate files. You might look up some guides for using Heimdall from the command line.
the other thing is that I've read that Heimdall does work within crouton if you have that, you could always install it and give that a try.
YrrchSebor said:
Ah ok, it looks like if you type heimdall flash in the command line, it gives you the options for flashing stuff. I'm not sure how to do it though, especially nowadays with Samsung firmware coming with fout separate files. You might look up some guides for using Heimdall from the command line.
the other thing is that I've read that Heimdall does work within crouton if you have that, you could always install it and give that a try.
Click to expand...
Click to collapse
I just tried that and found the "app" but it's all command line, and I'm not comfortable with that, I'll try to find a windows pc or hope the Ota upgrade file will be available
Sendt fra min SM-G965F med Tapatalk

Categories

Resources