RENAMING RECOVERY RESTORE FILES
There is an auto recovery restore system on the newer builds of Android that will reflash the Stock Recovery when rebooting a Stock Rom. If the restore files are renamed then the Custom Recovery should not be overwritten after a reboot.
If you have flashed a custom recovery and end up in the stock recovery screen after booting to recovery then you want to do the following:
a. Boot your device back to android and select option 7 [Rename Recovery Restore Files] from the Main Menu.
b. Choose the push method to push the flashable zip file to your devices internal storage [sdcard].
c. When Odin opens untick the auto reboot option to stop your device rebooting back to Android after flashing the custom recovery completes.
d. After the flash completes re-tick the auto reboot option and close Odin.
e. Unplug the usb cable then hold the volume up, home and power buttons together for about 10 seconds until you see the samsung logo. Release the buttons right away to boot straight to custom recovery.
Note: For Samsung Galaxy Gear users, Open the charging case and hold the power button [on the side] in for about 10 seconds until you see a “Rebooting…” message on the screen. Release the power button then press it 3 times quite fast. Wait a second then press it 3 times again and a screen should appear with 3 reboot options [continue, download and recovery]. Tap the power button to scroll down to recovery then hold the power button in for 5 seconds and release. You should now boot to recovery.
f. Choose Install or Install zip from the recovery menu and select the permanent-recovery.zip file from the internal storage.
After the zip file has been flashed you should be able reboot your device without the stock recovery being restored. Any custom recovery flashed will now be permanent and any procedures that require one should work fine.