[Galaxy S 4 i9505 Original Android Development] Creeper36:
This is also found on the First Page and OP of this Thread.. Enjoy!

HERE IS THE SUPER ULTIMATE GUIDE TO WIPING AND INSTALLING

by Creeper36

I will not be held responsible for you messing up your phone. It worked for me.. It SHOULD work for you.

This does trip your Knox Warranty Bit. This does void your warranty.

FULL WIPE (with external microsd card)

= Move any files you want to keep to your External MicroSD Card - OR YOU WILL LOSE THEM.

= DOWNLOAD your Optimized CM Rom and GApps Package

= Move your Optimized CM Rom and GApps Package to the external microsd storage

= Boot into Recovery Mode (HOLD Volume UP, Home, and Power button for 1 second after the vibrate)

= Wipe > Advanced Wipe

= Select ON (enable tick) for Dalvik / Art Cache, System, Data, Internal Storage, Cache.

= SWIPE to Wipe at bottom of screen

= Back to MAIN START SCREEN

= Wipe > Format Data

= Type ‘YES’ and press blue checkmark at the bottom-right corner

= Back to MAIN START SCREEN

= INSTALL to install Rom and GApps

= AFTER you have finished installing the Rom and GApps > WIPE CACHE/DALVIK > SWIPE to Wipe

= REBOOT SYSTEM

FULL WIPE (without external microsd card with NO Home PC access)

= Move any files you want to keep to a safe folder - OR YOU MAY LOSE THEM.

= DOWNLOAD your Optimized CM Rom and GApps Package and place in Any Folder

= Boot into Recovery Mode (HOLD Volume UP, Home, and Power button for 1 second after the vibrate)

= Wipe > Advanced Wipe

= Select ON (enable tick) for Dalvik / Art Cache, System, Data, Cache

= SWIPE to Wipe at bottom of screen

= Back to MAIN START SCREEN

= Wipe > Format Data

= Type ‘YES’ and press blue checkmark at the bottom-right corner

= Back to MAIN START SCREEN

= INSTALL to install Rom and GApps

= AFTER you have finished installing the Rom and GApps > WIPE CACHE/DALVIK > SWIPE to Wipe

= REBOOT SYSTEM.

FULL WIPE (without external microsd card with Home PC access)

= Move any files you want to keep to your Home PC - OR YOU WILL LOSE THEM.

= DOWNLOAD your Optimized CM Rom and GApps Package to the Home PC

= Boot into Recovery Mode (HOLD Volume UP, Home, and Power button for 1 second after the vibrate)

= Wipe > Advanced Wipe

= Select ON (enable tick) for Dalvik / Art Cache, System, Data, Internal Storage, Cache.

= SWIPE to Wipe at bottom of screen

= Back to MAIN START SCREEN

= Wipe > Format Data

= Type ‘YES’ and press blue checkmark at the bottom-right corner

= Back to MAIN START SCREEN.

= Copy Rom and GApps to your Internal Storage (create a new folder) using the downloaded files from the Home PC

= INSTALL to install Rom and GApps

= AFTER you have finished installing the Rom and GApps > WIPE CACHE/DALVIK > SWIPE to Wipe

= REBOOT SYSTEM

= Once first boot is completed you can safely move your files back onto your Internal Storage

FULL INSTALLATION GUIDE

.

*NOTE: The lines marked for Windows 7 is only that single line.. the rest of the instructions are for ANY versions of Windows.

= Windows 7 ONLY: Download to your PC: Samsung KIES3 - found [HERE].

= Download to your PC: ODIN 3 v3.12.3 - found [HERE]

= Download to your PC: TWRP Recovery 3.0.*-jfltexx.img.tar - found [HERE].

= Download to your Phones External MicroSD Card: Optimized CM 13 OR 14.1 ROM - found [HERE].

= Download to your Phones External MicroSD Card: Open GApps - found [HERE]- (Look for "ARM - 6.0 OR 7.1 – Nano")

= Power ON your phone and boot into the normal system.

= CHARGE YOUR PHONE TO AT LEAST 80%.. if your battery runs out while your flashing or loading you will be in trouble!!

= Windows 7 ONLY: Install KIES3 on your PC -- You must install KIES3 in order to install the Samsung phone drivers -- You do not actually need to use it. (Windows 8/8.1/10 does this automatically on the next step).

= Win 7/8/8.1/10: Plug your phone into your PC via USB cable.. WAIT for your PC to finish installing drivers.

= TRANSFER all the needed files to your phone now.. put the files in a 'ROM' folder on your External MicroSD Card.

= Unplug your phone from your PC.

= Power OFF your phone.

= Boot your phone into DOWNLOAD MODE (While Powered OFF - HOLD Power, Home, and Volume DOWN buttons for 6 secs, let go as soon as the screen changes).. then press the Vol UP button.

= Run ODIN3-v3.12.3 on your PC -- use "Run as Administrator".

= Plug in your phone (phone is still in Download Mode) via USB cable to your PC.

= In ODIN3: Make sure you see "COM #" and "ADDED!!" -- SEE HELP IMAGE HERE

* If you Do NOT see the 'COM#' and 'ADDED!!' then Samsung Drivers is Installed INCORRECTLY!

* If you DO see the 'COM#' and 'ADDED!!' then you Can Continue Below to the Next Step.

= Insert the 'twrp-3.0.*-jfltexx.img.tar' file in "AP" - Click START -- SEE HELP IMAGE HERE

= Wait for your phone to reboot into system.

= You can unplug your USB cable now.

= Power OFF your phone.

* Your custom recovery is now successfully installed!

= Boot into TWRP Recovery (While Powered OFF - HOLD Power, Home, and Volume UP buttons for 6 secs).. Let go of the buttons after the vibrate but just before you see the small blue writing appear at the top.. I was holding mine down for too long and it would just boot like normal and not recovery mode.

= MAKE A CURRENT BACKUP: Tap 'Select Storage' near the bottom > Select "Micro SDCard" > then "OK"

= Backup: Tick (enable): EFS Only > Swipe to Backup -- Hint: Change the filename from 'Auto-Generate' to 'EFS-ONLY'

* Note: You should only backup EFS by itself.. You only need to backup EFS one (1) time ever.

= Backup: Tick (enable): Boot, System, Data > Swipe to Backup -- Hint: You may change the filename from 'Auto-Generate' but its optional.

= Go back to Main Menu

= WIPE BY FOLLOWING WIPING INSTRUCTIONS ABOVE IN THIS POST.

= Install Optimized CM 13/14.1 ROM by Clicking 'INSTALL' > Find your Optimized CM13 ROM you downloaded. --> 'Select Storage' (near the bottom) > 'Micro SDCard' > 'OK'.

= Install Open GApps by Clicking 'ADD MORE ZIPS' > Find your Open GApps you downloaded.

= 'SWIPE to Confirm Flash'.

= Wait for completion.

= 'Wipe Cache and Dalvik'.

= 'REBOOT' into system.

* Your System is now successfully Installed!

* IF YOU HAVE ANY PROBLEMS WITH MOBILE DATA, PHONE CALLS, OR TEXT MESSAGES ALWAYS CHECK YOUR APN SETTINGS! *

.