This method to root galaxy s4 was developed by Android developer Dan Rosenberg (aka djrbliss) using his motorola root app Motochopper. It works for U.S. model GS4 or any model with a Qualcomm-based variant such as AT&T,Sprint,T-mobile .So If you have doubt first read this basic rooting guide.
ROOT Galaxy S4 Verzion brand
UPDATE: For those of you with T-Mobile’s latest UVUAMDL firmware or Sprint’s latest VPUAMDLfirmware, this root method will not work. BUT, you can use CWM or TWRP method below along with kernel fix to root. (See Sprint Kernel fix and T-Mobile Kernel fix)
Root Galaxy s4 any brand
-Ensure that you’ve installed the latest Samsung USB drivers available for your phone before you start.
-Install latest adb version for your PC.
-First Download the motochopper zip file .
-Extract the entire contents of the zip file.
-Make sure that USB Debugging mode is enabled on your device (Apps -> Settings -> Developer Options -> USB debugging).
-Connect your device to your PC via USB.
-If you’re using Windows, navigate to the directory You have extracted the ontents of the file and execute “run.bat“
and If you’re using Linux or OS X navigate to the extracted directory in a terminal and execute “run.sh“.
-Approve the ADB connection from your PC on your device.
-Wait for process to complete.
-Congrats process of root galaxy s4 is complete !.
Video on how to root Galaxy S4
You can also post your comment on rooting experience and for any help you want on how to root galaxy s4. If you want rooting guide for any other phone also mention it in comments.Root Galaxy S4 (AT&T,Sprint,Verizon & T-Mobile brand)