Odin
Odin is an official flasher for many Samsung devices, runs only on Windows.
To flash your phone with it you will need .pit file containing information about all partitions, you can find one online or download it from the device e.g using Heimdall.
Using Odin
For Samsung phones only. Only available on Windows. The Knox switch (if present) will trip.
- Get the root file ready.
- Download Odin (there are many different versions, which mainly differ in the names used).
- Launch the phone in Download mode: hold the Volume Down+Power+Home buttons together when the phone is off. Accept the disclaimer.
- Select the root file in the appropriate catetory in Odin (the file should tell you which one).
- Click Start. Make sure that the phone is detected (a yellow box like COM x should appear).
- The phone will restart and the phone should now be rooted. Look for a SuperSu app or similar to confirm the presence of a root.
Logs
1. Odin failed during rooting. The writing to the phone memory never started on a Galaxy S6. The USB plug was pulled off after waiting for a noticiable amount of time with no progress sign either on the phone or Odin. Rebooting the phone led to stock, as expected (as nothing actually happened). Here’s the log from Odin3 v3.09:
<ID:0/004> Added!!
<ID:0/004> Removed!!
<ID:0/012> Added!!
<ID:0/012> Odin v.3 engine (ID:12)..
<ID:0/012> File analysis..
<ID:0/012> SetupConnection..
<ID:0/012> Initialzation..
<ID:0/012> Get PIT for mapping..
<ID:0/012> Firmware update start..
<ID:0/012> SingleDownload.
<ID:0/012> recovery.img
<ID:0/012> NAND Write Start!!
<ID:0/012> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
<ID:0/012> Removed!!
<ID:0/004> Added!!
So I tried to change the USB port on the computer and then downloaded the latest version of Odin3. And it worked! What I’m not sure is which of the two (or both?) helped; but do keep it in mind if you do the same.
Content of this page is based on informations from wikibooks.org and postmarketos.org, under CC BY-SA 3.0 licence.