Prerequisites
» Install Samsung device drivers and reboot your PC: Click here
» Enable USB Debugging if you haven’t enabled it till now, detailed steps on how to do it could be found here.
» Charge your S4 at least to 60% of battery to avoid any mishaps during the process.
» Backup everything, this includes your internal storage, music, photos, SMS, contacts etc.
» Download Odin flashing tool and extract it to a suitable location: Click here
» Download the firmware package and extract its content: Click here