These are the instructions to root Samsung Galaxy Tab 4 8.0 SM-T335K (running on android 5.1.1, built id LMY47X.T335KKTU1BOG1) using Odin on Windows Computer.
Requirements: Your Samsung Galaxy Tab 4 8.0 SM-T335K should have atleast 30-40 percent of battery to perform the rooting process.
Step 1: Download and Install Samsung USB Driver on your computer. If Samsung USB Driver already installed on your computer then Skip this Step.
Step 2: Download and extract the root files on your computer. After extracting you will be able to see the following files:
Step 3: Now, Switch off your Smartphone.
Step 4: After switching-off the phone, you need to boot into Download Mode. To boot into download mode Press and hold Zoom Left and Power button at same time for 5-8 seconds until download mode is active.
Step 5: In the Download mode you will be able to see a Warning Yellow Triangle Sign. In this situation you have to press the Zoom Right key to continue.
Step 6: Now, Open Odin3 (found in the extracted files, that you have downloaded in the Step#2) on your computer. Then connect your Smartphone to the computer.
Step 7: Once you have connected the Smartphone to the computer, Odin will automatically recognize the device and show “Added” message at the lower-left panel.
Step 8: Once your device detected by Odin, click on the PDA button and select the CF-Auto-Root.tar file (you have downloaded this file in step#2).
Step 9: Now, click on the Start button in Odin to begin the Flashing.
Step 10: Flashing usually takes 30-50 seconds to complete the rooting process on your Samsung Galaxy Tab 4 8.0 SM-T335K. Once Rooting process got completed, you will be able to see a Green Box with Pass written on it in Odin. During this process Smartphone will re-boot automatically.
Step 11: Once you see, the Pass message in Odin, you can disconnect your Device from the computer.
Step 12: Now, to make sure you have successfully rooted your Samsung Galaxy Tab 4 8.0 SM-T335K, open Applications Menu on your Smartphone and Find SuperSU App. If this app exist on your Smartphone then it means you have successfully rooted your device. Congratulations.
Optional: You can also verify the root status of your device by using the Root Checker Application.
[*] Warning: The above tutorial only works for Android 5.1.1 with the built id LMY47X.T335KKTU1BOG1.
[*] If your device isnt running on the same built id LMY47X.T335KKTU1BOG1, then you need to download and flash the firmware based on the same build id then after try to root your device from the above method.
[*] No data loss process: Your Personal Data including contacts, pictures, videos, music wont be affected using the above method. In short, no data loss process.
[*] Samsung Stock Firmware: If you are looking for the original firmware for your device then head over to Download Samsung Stock Firmware for all devices page.
[*] Samsung USB Driver: If you are looking for the original USB Driver for your device then head over to Download Samsung USB Driver for all devices page.
[*] Big thanks to Chainfire for their CF Auto Root file for Samsung Galaxy Tab 4 8.0 SM-T335K, without this tool this tutorial was not possible.