[Sprint Samsung Galaxy S6] flett044:
I rooted my galaxy S6 a couple of days ago and wow was it totally worth tripping Knox, any way I am writing this because I could not find a thread that had a guide usng these methods. I had to figure out how to get past several errors in TWRP and Magisk and I thought some people might be curious how I did it. I did not make any of these programs used, credit to the original authors. I did this so I could play Pokemon Go with root. :)

WARNING: THIS WILL TRIP KNOX AND MAY BRICK YOUR PHONE. DO THIS AT YOUR OWN RISK I AM NOT RESPONSIBLE FOR ANYTHING THAT HAPPENS. MAKE SURE YOU HAVE A FULL BACKUP OF YOUR DEVICE BEFORE CONTINUING. THIS WILL ALSO DISABLE OTAS.

Prerequisites:

Odin (make sure its version 3.10.6 others may not work): https://androidmtk.com/download-odin-downloader-versions

Galaxy s6 (have not tested on edge)

TWRP in .tar format for your model: https://dl.twrp.me/zerofltespr/

Stock ROM in case you mess up

Windows PC

Magisk v11.1: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Magisk manager: https://play.google.com/store/apps/details?id=com.topjohnwu.magisk&hl=en

Installing TWRP:

1.) Download all the necessary files and extract Odin to your desk top.

2.) Go into developer mode on your phone and enable OEM unlocking and USB debugging.

3.) Turn off your phone and enter download mode by holding power button, home button and volume down until the screen comes up that says something along the lines of installing a custom OS is dangerous, push volume up to continue.

4.) Plug your phone into your computer and start Odin.exe.

5.) Make sure Odin says "added" in the text window.

6.) Click on AP and browse for the TWRP .tar that you downloaded in the beginning.. Check the box next to AP once TWRP is loaded, then click "Start".

A.) If TWRP fails to install go to "options" and un-check "auto reboot". If this is un-checked make sure to reboot into recovering when Odin says "reset" by first exiting download mode by repeating the steps used to get into it and then holding home, power button and volume up until the TWRP logo appears.

7.) Congratulations you have now installed TWRP!

Rooting and installing Magisk:

1.) This will not work unless you have followed my previous steps.

2.) Make sure your phone is in recovery mode by holding power button, home, and volume up until the TWRP logo appears.

3.) Make sure your PC recognizes the phone and copy the Magisk 11.1 .Zip you downloaded earlier.

4.) Tap install on TWRP and and browse for the Magisk 11.1 .Zip, swipe to install.

5.) When it is done installing tap reboot.

6.) When your phone is done rebooting install Magisk manager from the play store.

7.) When you open Magisk it should say rooted with MAGISKSU in the center box.

A.) If it does not say that flash Magisk 11.1 in TWRP again.

B.) If the above does not work re-flash to stock and repeat all steps again.

8.) You are now rooted.

A.) If you would like to use Magisk hide tap the first box where it says install Magisk and follow the onscreen instructions.

1.) You can try rebooting your phone when it asks you too, but it would not install this way for me.

B.) After you have installed Magisk Framework, go into to settings and enable the hide Magisk option.

C.) Go back to the status section and tap on safety net check, it should be a green check-mark

1.) If it is not green restart and install Magisk again, then go into settings and disable and re-enable Magisk hide.

2.) If it is not green after doing the above re-flash the stock ROM and start over.

9.) You will have to reinstall Magisk Framework every-time you reboot, your root should stay installed after a reboot though.