[Galaxy S 4 General] Chahk:
With the help of the ever awesome Team Win, and specifically a developer named Dees Troy we now have a working recovery for the I9505G.

[Update 8/22/2013]: Thanks to ClockworkMod developer gweedo767, the official CWM Recovery for I9505/jfltexx/International GS4 is now fully compatible with I9505G/jgedlte/GS4 GPe. Download either the regular or Touch version here (scroll down to "Samsung Galaxy S4 (i9505)"). Also, official CM 10.x and CM 11 nightlies for I9505/jfltexx are now fully compatible with I9505G/jgedlte, without any modifications.

Here is the guide to get both the recovery and CM 10.x/11 onto the GS4 GPe GT-I9505G:

Assuming you are on a Windows machine.

First we need to install the USB drivers:

Download and install Android SDK tools from here.

Run "SDK Manager.exe" from wherever you installed Android SDK in previous step.

Under "Tools" section select "Android SDK Tools" and "Android SDK Platform-tools". Under "Extras" section select "Google USB Driver."

Click the "Install" button and wait for installation to complete.

Exit the SDK Manager program.

Now unlock the bootloader (according to some people this step may not be necessary):

Boot up device normally, skip setup or do minimal setup - NOTE: you will wipe your phone during this process, so don't go nuts yet on config/installing apps.

Go to Settings --> About Phone

Tap Build Number 7 times, go back to Main Settings Menu and under now shown Developer Options enable USB debugging.

Plug into PC and ensure the phone is recognized.

On the phone accept the footprint signature popup - if it DOESN'T appear unplug/replug USB cable.

Under Command Prompt or Terminal on PC type in "adb devices" and press Enter. Ensure it shows the device and doesn't show "Offline" - if it does repeat steps 4-5.

Under Command Prompt or Terminal type in:

adb reboot bootloader

and press Enter.

Once in bootloader, on your PC Command Prompt type in:

fastboot oem unlock

and press Enter. Note that in Linux you will need to run fastboot with elevated privileges, i.e.

sudo fastboot oem unlock

.

Accept unlock using Volume key, and confirm with Power button - device will reboot possibly a few times, once rebooted and in device you can sign into accounts - REPEAT step 2-3 to re-enable USB debugging.

Now we can get down to flashing a custom recovery:

Un-install all existing Samsung drivers from your PC. This includes Kies program. I can't stress enough how important this step is for avoiding issues with flashing images via Heimdall or Odin.

Download the latest version of Heimdall from here and extract the ZIP to a folder on your hard drive (e.g. C:\Heimdall\ )

Download and install Microsoft Visual C++ 2012 redistributables package from here. These are required to have Heimdall work properly.

Download either the latest TWRP recovery from here, or latest official ClockworkMod Recovery for I9505 here and place the .IMG file into the Heimdall folder.

Shut down your phone, disconnect it from USB, and turn it on by holding Home + Volume Down + Power buttons together. This will start the phone in the Download mode. *NOTE: It is very important to get into the Download mode from a switched off phone. If you are coming from a different custom ROM, do not simply reboot into download mode (via advanced reboot option, or via "adb reboot bootloader" command) as that will cause issues with Heimdall and Odin.

Connect the phone to your computer via USB.

Run zadig.exe included in the "Drivers" sub-directory of Heimdall installation. From the menu chose Options -> List All Devices. From the USB Device list chose "Samsung USB Composite Device", or "MSMnnnn" - basically the S4. Press "Install Driver", click "Yes" to the prompt and if you receive a message about being unable to verify the publisher of the driver click "Install this driver software anyway". Your phone should now be recognized by Heimdall.

Open Windows Command Prompt and navigate to the directory where you extracted Heimdall. Now type in the following command:

heimdall flash --RECOVERY file-name-of-recovery-image-here.img --no-reboot

and press Enter. This will flash the recovery. Disconnect the USB cable, and hold the Power button until the phone vibrates. Now hold Home + Volume Up + Power to boot into the recovery.

Now we can flash the i9505's CM nightly:

Once in Recovery mode, connect your phone to USB. You may need to once again install the USB drivers. Just point it to \extras\google\usb_driver\ folder and select "Samsung USB Composite Device".

Perform a backup if you wish (highly recommended!)

Back on the computer, download the CM nightly build (10.x or 11) for the i9505/jflte from here.

Download the latest GApps package appropriate for the CM version you downloaded in previous step from here. (CM 11 compatible gapps, especially those working with new ART VM are currently in flux, but someone put together images of most used ones here).

Back on the phone in Recovery mode perform a full wipe (system, data, cache, and dalvik-cache.)

Flash the files in the following order: 1) CM nightly 2) GApps zip 3) Any other ZIPs you usually flash.

Reboot.

At this point your phone should be booting CyanogenMod. Should something go wrong, follow instructions in donovanbrock's thread to flash back to the stock GE firmware.

Older CM 10.1 ROMs for jfltexx used an outdated syntax for MOUNT command that required an edit to the updater-script, as described here. However, latest CM 10.x and all CM 11 nightlies converted to using a new mount syntax that does not need any modifications.

Working:

Root (superuser) without having to flash or install other packages.

Wi-Fi

Cell data (with LTE)

GPS

Bluetooth

NFC

Vibration

A/C and USB charging

Voice calls

Notification lights

All sensors

Both cameras

Physical and capacitive buttons

Google Apps (Gmail, Play Store, etc.)

Wi-Fi Tethering.

Not Working:

IR Blaster - CM doesn't have official support for it yet. Only apps that access IR modules via root methods will work (e.g. IR Universal Remote.) The functionality has changed from Android 4.3 to 4.4, so it will take some time for CM team to get it working properly. It should make it into CM eventually.

Sometimes when you simply reboot the phone, it gets stuck on the Google logo and doesn't proceed to boot into CM. This seems to be a known issue for the GS4 models and CM, which might have been introduced with SELinux commits. Experts think this is due to a race condition during initial boot-up phases, and are working on a fix. For now the work-around is manually ejecting the SD Card, and immediately putting it back in.

Untested:

Wireless display.

HDMI-out

Thanks and acknowledgements:

Team Win for TWRP recovery, especially Dees_Troy for making it work on I9505G.

CloclworkMod team for the CWM recovery, especially gweedo767 for getting it to work on I9505G.

CM Team for the ROM.

@donovanbrock for the flashing back to stock guide.

@NPS_CA for the bootloader unlock instructions.

Google for Android, and JBQ for AOSP.

WinZip ;)

I claim no credit or ownership of any of the above. The pieces were already out there, I just put them together.