Step 2. Reboot then tap on “build number” under Settings->Software Information until it says you have enabled developer options.
Step 3. Tap on Settings->Developer Options then enable “USB Debugging” and “OEM Unlock”.
Step 4. Power off your S7 or S7 Edge then hold down Volume Down, Center Home, and Power buttons together until you see a warning screen like below.
Step 5. Hit Volume Up key to enter ODIN download mode and connect a micro-USB cable from your phone to your computer.
Step 6. You should have downloaded all the files required to root.
They should all be in your Downloads directory like shown below:
Step 7. Unzip the ODIN-modified.zip then run the ODIN program inside the newly unzipped folder.
Step 8. You should see a blue-highlighted box on top-left of the ODIN program, if you do not see it, run the Samsung USB driver program and unplug/re-plug your phone then you should see it.
Select “AP” then browse and select the file ending in “TAR”, which is the ENG Boot file you downloaded for either Galaxy S7 or S7 Edge.
Then select “Start” and this will flash ENG Boot file.
You should see “PASS!” and your phone will reboot if successful.
Step 9. If your phone ends up in a bootloop (which most likely will), you will need to do a factory reset. To do this, hold down Volume Down, Center Home, and Power buttons together until your phone resets then quickly switch the Volume Down to Up key while holding the rest of the buttons down until you see “Recovery booting” at the top-left of the screen. If you mess up, don’t worry you can keep trying until you get it right.