For sometime we have been hearing false news on rooting samsung galaxy s4. Lets bid bye to those non-working roots. Now XDA Elite Recognized Developer Chainfire have figured out a way to root the device using his tried-and-true CF-Auto-Root process. There had been trouble for quite some time for rooting s4. SEAndroid was set restrictive on some firmwares (easily circumvented) and aside from that we had the mystery reboots.
In this method, SEAndroid was set to permissive on this firmware, and it doesn't suffer from that reboot issue. This is as plain a root as all the CF-Auto-Root's for any other Galaxy device, or other methods to inject root by flashing a custom kernel/recovery/system.
This root currently works only on the GT-I9505 (Qualcomm LTE) version of the S4(XXUAMD2 firmware (dated April 2) for the I9505).
- flash the included .tar.md5 as PDA using Odin
- Make sure that the repartition is not checked
- You should be seeing a red Android coming up, and your device will be rooted. If the device boots normally without the red Android, reboot into recovery manually to trigger the process
Source : XDA