[Galaxy S 4 Q&A, Help & Troubleshooting] stylemessiah:
Nice pickup on the sig

Im the king of typos...i have a wonky brain, and it doesnt always connect my hand with the right keys :) Sig corrected

Heres what i did on mine, and how i remember doing it, though if some steps dont match up, let me know via PM or email, in my profile:

Required utils/files (assuming you have a standard i9505):

Odin: http://dl.sammobile.com/Odin3-v3.11.1.zip

CF Auto Root: https://download.chainfire.eu/316/CF-Root/CF-Auto-Root/CF-Auto-Root-jflte-jfltexx-gti9505.zip

TWRP: https://dl.twrp.me/jfltexx/twrp-3.0.2-0-jfltexx.img.tar.html

1) Rooting

a) Put phone into download mode - Power + Home + Vol Down, then Vol Up

b) Connect to PC via cable

c) Run Odin

d) Tick next AP

e) Press AP and browse to locate and select the CF Auto file downloaded

f) Press Start

g) It should upload to phone and phone should reboot into recovery and do its thing and then reboot

h) Unplug the phone form the cable

i) You may get, i did, a Google Play update to update SuperSU. I did this and rebooted, you may also get a prompt to update the su binary, do this using the Normal method, and reboot

2) TWRP

a) Put phone into download mode - Power + Home + Vol Down, then Vol Up

b) Connect to PC

c) Run Odin

d) Tick next AP

e) Press AP and browse to locate and select the TWRP file downloaded

f) Click options, and untick Auto Reboot - if you dont manage to catch the device using the recovery boot keys as it reboots, it may boot normally and over-write the recovery, and you'll have flash it again, so i turned this off

f) Press Start

g) When its uploaded, unplug phone,and hold down Power + Home + Vol Up until it reboots and you see the recovery boot text appear in the top left (lines of blue, yellow, red text), let go at this point, a

the device should boot to recovery and install recovery

h) Unplug the phone form the cable

i) Power down the phone (i got a cache mounting issue - discovered when i was flashing Xposed, that you may need to fix...best to do it anyways, and do it now to fix the issue before you try and flash a custom ROM in the future etc)

j) Boot to recovery again - Power + Home + Vol Up until it reboots and you see the recovery boot text appear in the top left, let go at this point, the device should boot to recovery

k) Go into Mount and see if Cache is mounted, if it is, youre fine, if it isnt, try mounting it by ticking Cache. If it wont mount:

i) Click Wipe,

ii) Click Advanced Wipe

iii) Tick Cache

iiii) Click Repair or Change File System

iv) Click Change Filesystem

v) Click Ext4

vi) Swipe to change

It may take some time to fix....

l)Reboot when done

3) Debloating (highly recommended on the stock ROM)

Theres a few pages on which apps and files to remove using a root uninstaller app, or you can Install this and tick the items you want removed: https://play.google.com/store/apps/details?id=com.adamioan.s4lollipopdebloater&hl=en

Please dont ask me what to tick or leave ticked :) Theres descriptions in the app, or more info on the forums. Personally i tend to decimate ROM's from all non-essential apps, but what works for me may not work for you, you may use things i dont.

When done, reboot

Optional though recommended: Boot into recovery and wipe your dalvik & cache (note: once Dalvik is wiped your next reboot will be long due to app optimising - it will be shorter than normal with less apps though)

Hope this helps