[Galaxy Tab S General] ashyx:
I take no responsibility for what happens to your device if you follow this guide. Rooting or modifying carries risks, however I have tested this procedure many times with 100% success on my SM-t805. It should work for any device, but I can't confirm, so feedback please if it works for your device.

1. Firstly you need to downgrade your device to a XXU1ANF8 or earlier firmware suitable for your particular model. This is available at http://samsung-updates.com/ or you can use this one XSG-T805XXU1ANF8-20140625 which is for the T805 model only.

https://www.androidfilehost.com/?fid=23501681358555496 T800 only

Download and then install the firmware on your device with ODIN.

If you are still on Kitkat then there is no need to wipe the data partition. However if you are running Lollipop after successful installation you will need to boot into recovery POWER + HOME + VOL UP then select WIPE DATA/RESET -

YOU WILL LOSE ALL YOUR USER DATA SO BACK UP ANYTHING YOU NEED TO THE SD CARD FIRST!

NOTE: IF THE INSTALL FAILS AT HIDDEN.IMG OR CACHE.IMG SIMPLY BOOT INTO RECOVERY AFTERWARDS AND WIPE CACHE THEN CARRY ON WITH THE REST OF THE PROCEDURE.

2. Once booted into Android, set up your wifi and google account and skip everything else (this wont be needed if you didn't wipe the data partition)

3. Next we need to install a Few apps, so go ahead and install these apps from Play Store:

System app remover(root)

Root Validator

Terminal Emulator For Android

KINGROOT 4.1

Kingroot updates and earlier versions if posted version doesn't work:

http://androidxda.com/download-kingroot-application

Kingroot 4.5 (latest version)

We also need to download the package from this LINK

4. Using the built in File Manager extract the zip package to your internal SD card. Once extracted, inside the extracted folder is another folder called MRW.

THIS FOLDER NEEDS TO BE MOVED TO THE ROOT OF YOUR INTERNAL SD CARD OR THIS WON'T WORK.

5. Next go to Settings set your display timeout to 10 mins.

Now Run KINGROOT then wait for it to do it's thing. If it reboots part way through the process then after rebooting unlock your device, but don't touch anything for a couple of mins. The app should restart and continue. If you are successful you can move to the next step. If not, exit the app and run it again, it may take several attempts before you eventually achieve root.

6. After success uninstall the KINGROOT app (NOT KINGUSER) (not required with v4.5) and the other blue app with Chinese writing.

Now reboot - DO NOT RUN THE KINGUSER APP

7. Let your device fully boot then run the Terminal Emulator and wait for the command prompt

NOTE: IF AT ANY POINT YOU SEE A POP UP BOX WITH CHINESE WRITING ASKING YOU TO UPDATE THE KINGUSER APP SELECT CANCEL.

Now type or copy and paste the following command into the Terminal window:

su

It will ask for root permission, so select ALLOW.

Without closing the terminal emulator window, hit the HOME button and run the SYSTEM APP REMOVER app. (The app is red and simply called UNINSTALL)

The app will ask for root permission, hit ALLOW.

Look for the KINGUSER app then select it and uninstall it. Exit from the app.

Re-open the terminal emulator window and type the following:

sh /sdcard/mrw/root.sh

This will run a script, you will see a bunch of warnings, just ignore them .At then end of the script the SUPERSU app will run.

8. Hit CONTINUE then NORMAL.

Next you may see another message that 'Samsung knox has been detected'. When you see this message select CANCEL.

Once completed you should see a message saying that installation has been successful. Hit OK.

If you see the message again 'Samsung knox has been detected' select CANCEL then exit the SUPERSU app.

9 . Now check with ROOT VALIDATOR that you have root and everything looks ok.

DO NOT REBOOT.

The root is only temporary, if you reboot you will lose root.

10. The next step is to install our ROM of choice with Flashfire.

For more info on FLASHFIRE see here: http://xdaforums.com/general/paid-software/flashfire-t3075433

11. Run FLASHFIRE and grant it root.

12. Agree to the disclaimer and then hit the Red circle with a white +.

Next select 'Flash firmware package' and then navigate to the firmware you want to install (in this case the stock tar package) and select it.

Wait until it finishes scanning the archive.

Next you will see the list of partitions to be flashed, all that is really required is BOOT, RECOVERY and SYSTEM. You can flash the others if you wish.

When you're happy hit the TICK and then you will see a list of what will be flashed. If you tap any one of them you will be able to change the options. Tap the REBOOT option then select DOWNLOAD from the list. This is so we can boot into download mode after the flashing process to flash the Lollipop BOOTLOADER. If not upgrading to lollipop just select REBOOT

I'd advise to leave the rest as is and then hit FLASH

NOW WATCH CHAINFIRES MAGIC!

13. After reboot it should boot directly into DOWNLOAD mode or REBOOT if not updating to Lollipop.

If updating to Lollipop we need to flash a Lollipop BOOTLOADER. I have provided a link below for the T800 and T805. If you have a T700/705/T807/T707 or if the ones provided don't work then you will have to extract it from the Lollipop stock ROM and then TAR it up.

T800XXU1BOCC_BOOTLOADER.tar

T805XXU1BOCC_BOOTLOADER.tar

Latest T800 boot loader thanks DUHasian skillz.

T800XXU1BOE3 bootloader

Flash the BOOTLOADER with ODIN.

If successful then after reboot you should have a rooted version of Lollipop or whatever rom you decided to install and an untripped Knox counter(hopefully)

Good luck and please give feed back. :)

If you wish you can give feedback to Chainfire at the link posted at the beginning of this post.

NOTE: If you wish to change roms or update and wish to keep root you will have to use the same procedure with Flashfire.

Also note that if you flash a custom KERNEL or BOOTLOADER then it may trip KNOX. Custom ROMs with stock KERNEL and BOOTLOADER should be OK(but don't hold me to that)

CREDITS TO CHAINFIRE FOR FLASHFIRE AND SUPERSU, KINGTEAM FOR ROOT AND WOLFDROID FOR THE KINGROOT REMOVAL SCRIPT.