[Galaxy S 4 i9505 Android Development] victorator:
For the sake of making things 100% clear

Stock ME2 recovery.img

/ramdisk/res/recovery.do

on init-recovery
mount /system
unmount /cache
exec -f "/system/bin/e2fsck -v -y <dev_node:/cache>"

insmod -f -v /system/lib/modules/exfat_core.ko
insmod -f -v /system/lib/modules/exfat_fs.ko

lsmod

mount /cache
ls /cache/recovery/

mount /data
fcut --limited-file-size=64k -f /data/log/recovery_log.txt /tmp/recovery_backup.txt

on multi-csc
echo
echo "-- Appling Multi-CSC..."
mount /system
echo "Applied the CSC-code : <salse_code>"
cp -y -f -r -v /system/csc/common /
unmount /system
mount /system
cmp -r /system/csc/common /
cp -y -f -r -v /system/csc/<salse_code>/system /system
rm -v /system/csc_contents
ln -v -s /system/csc/<salse_code>/csc_contents /system/csc_contents
unmount /system
mount /system
cmp -r /system/csc/<salse_code>/system /system
rm -v --limited-file-size=0 /system/app/*
echo "Successfully applied multi-CSC."

on factory-out
precondition define /preload
echo "Coping medias..."
mount /preload
mount /data
mkdir media_rw media_rw 0770 /data/media
cp -y -r -v -f --with-fmode=0664 --with-dmode=0775 --with-owner=media_rw.media_rw /preload/INTERNAL_SDCARD/ /data/media/
unmount /data
mount /data
cmp -r /preload/INTERNAL_SDCARD/ /data/media/

on post-recovery
mount /data
mkdir system log 0775 /data/log
cp -y -f -v /tmp/recovery_backup.txt /data/log/recovery_log.txt

init.rc

import /init.recovery.${ro.hardware}.rc

on early-init
start ueventd

on init
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard

mkdir /sdcard
mkdir /sdcard1
mkdir /system
mkdir /data
mkdir /cache
mkdir /preload
mkdir /custom
mkdir /efs
mkdir /tmp
mkdir /firmware 0771 system system

chown root shell /tmp
chmod 0775 /tmp

# for lkmauth
mount vfat /dev/block/mmcblk0p1 /firmware ro

# ko files for exfat
insmod /system/lib/modules/exfat_core.ko
insmod /system/lib/modules/exfat_fs.ko

on boot

ifup lo
hostname localhost
domainname localdomain

class_start default

service ueventd /sbin/ueventd
critical

service recovery /sbin/recovery

service adbd /sbin/adbd recovery
disabled

# Always start adbd on userdebug and eng builds
on property:ro.debuggable=1
setprop adb.recovery 1

on property:adb.recovery=1
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 04e8
write /sys/class/android_usb/android0/idProduct 6860
write /sys/class/android_usb/android0/functions adb
write /sys/class/android_usb/android0/enable 1
write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
write /sys/class/android_usb/android0/iProduct $ro.product.model
write /sys/class/android_usb/android0/iSerial $ro.serialno
start adbd

# Restart adbd so it can run as root
on property:service.adb.root=1
write /sys/class/android_usb/android0/enable 0
restart adbd
write /sys/class/android_usb/android0/enable 1

default.prop

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
ro.adb.secure=1
persist.sys.usb.config=mtp
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=JDQ39
ro.build.display.id=JDQ39.I9505XXUAME2
ro.build.version.incremental=I9505XXUAME2
ro.build.version.sdk=17
ro.build.version.codename=REL
ro.build.version.release=4.2.2
ro.build.date=Thu May 2 22:12:40 KST 2013
ro.build.date.utc=1367500360
ro.build.type=user
ro.build.user=se.infra
ro.build.host=SEP-101
ro.build.tags=release-keys
ro.product.model=GT-I9505
ro.product.brand=samsung
ro.product.name=jfltexx
ro.product.device=jflte
ro.product.board=MSM8960
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=samsung
ro.product.locale.language=en
ro.product.locale.region=GB
ro.wifi.channels=
ro.board.platform=msm8960
# ro.build.product is obsolete; use ro.product.device
ro.build.product=jflte
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=jfltexx-user 4.2.2 JDQ39 I9505XXUAME2 release-keys
ro.build.fingerprint=samsung/jfltexx/jflte:4.2.2/JDQ39/I9505XXUAME2:user/release-keys
ro.build.characteristics=default
# Samsung Specific Properties
ro.build.PDA=I9505XXUAME2
ro.build.hidden_ver=I9505XXUAME2
ro.build.changelist=526204
ro.product_ship=true
ro.chipname=apq8064
# end build properties
#
# system.prop for surf
#

#
# START system.prop for RIL
#
rild.libpath=/system/lib/libril-qc-qmi-1.so
ro.sf.lcd_density=480
rild.libargs=-d /dev/smd0
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
ril.subscription.types=NV,RUIM
persist.radio.lte_vrat_report=1
#
# END system.prop for RIL
#

DEVICE_PROVISIONED=1
debug.sf.hw=1
debug.composition.7x27A.type=mdp
debug.composition.7x25A.type=mdp
dalvik.vm.heapsize=24m
debug.composition.type=dyn
persist.hwc.mdpcomp.enable=true
service.camera.gpu.enable=0

#
# system props for the cne module
#
persist.cne.feature=0

#
# system props for the MM modules
#
media.stagefright.enable-player=true
media.stagefright.enable-meta=false
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-fma2dp=true
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.enable-commonsource=true

#
# system props for the LPA/TUNNEL
#
lpa.decode=false
tunnel.decode=true
lpa.use-stagefright=true

#
# system prop for opengles version
#
ro.opengles.version=131072

#
# system props for the data modules
#
ro.use_data_netmgrd=true
persist.data.ds_fmc_app.mode=0

#
# system props for IMS module
#
persist.ims.regmanager.mode=0

#
# system prop for requesting Master role in incoming Bluetooth connection.
#
ro.bluetooth.request.master=true

#
# system prop for Bluetooth FTP profile
#
ro.qualcomm.bluetooth.ftp=true

#
# system prop for Bluetooth SAP profile
#
ro.qualcomm.bluetooth.sap=true

#
# system prop for Bluetooth Auto connect for remote initated connections
#
ro.bluetooth.remote.autoconnect=true

#
#system property for Bluetooth discoverability timeout in seconds
#0: Always discoverable
#debug.bt.discoverable_time=0

#
# System prop to disable strict mode flash on display
#
persist.sys.strictmode.visual=false

#
# System prop to enable/disable OMH. Enabled by default
#
persist.omh.enabled=1

#System prop to enable ehrpd capability
ro.config.ehrpd=true

# System property for cabl
ro.qualcomm.cabl=0

#
#System prop to determine availability of
#analog fm path
#
ro.fm.analogpath.supported=true

#
#System property for FM transmitter
#
ro.fm.transmitter=false

#
#System property for single instance recording
#
ro.fm.mulinst.recording.support=false
#
#System property for msm
#
ro.hw_plat=7x27a

#
# system props for SD card emulation of emmc partition
#
ro.emmc.sdcard.partition=18

#
# system property to enforce Phone Mode view
#
ro.screen.layout=normal
#
# Turn off tiled rendering
#
debug.enabletr=false
#
#System prop for setting the pixel format
#
ro.staticwallpaper.pixelformat=RGB_565

#
#System prop for disabling the meta data mode for encoder
#
debug.camcorder.disablemeta=0

#
# Simulate sdcard on /data/media
#
persist.fuse_sdcard=true

#
# System prop for using landscape preview layout in camera
#
debug.camera.landscape=true

#
# System prop for capping scroll velocity
#
ro.max.fling_velocity=4000

#
#system prop for Bluetooth hci transport
#
ro.qualcomm.bt.hci_transport=smd

#
# System prop for Tvout/HDMI
#
persist.sys.camera.transform=0
persist.sys.camera.connect=0
persist.sys.videomode=0
ro.hdmi.enable=true

# System proverty for sys info indication
persist.radio.add_power_save=1

# System property for Default Brightness
ro.lcd_min_brightness=10
ro.lcd_brightness=143

# Keep SIM state on LPM mode
persist.radio.apm_sim_not_pwdn=1

persist.sys.storage_preload=1

# VQG - User Agent Header for Video-Streaming Client
net.streaming.rtsp.uaprof=http://wap.samsungmobile.com/uaprof/

#
# ADDITIONAL_BUILD_PROPERTIES
#
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=128m
dalvik.vm.heapsize=512m
dalvik.vm.heaputilization=0.25
dalvik.vm.heapidealfree=8388608
dalvik.vm.heapconcurrentstart=2097152
ro.vendor.extension_library=/system/lib/libqc-opt.so
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.hwui.texture_cache_size=48
ro.hwui.layer_cache_size=32
ro.hwui.path_cache_size=8
ro.hwui.shape_cache_size=2
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=4
ro.hwui.texture_cache_flush_rate=0.5
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=512
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
ro.sec.fle.encryption=true
ro.hdcp2.rx=tz
ro.secwvk=144
ro.crypto.support=recovery_mount|others
ro.config.alarm_alert=Alarm_Morning_flower.ogg
ro.config.ringtone=Over_the_horizon.ogg
ro.config.notification_sound=S_Whistle.ogg
ro.monkey=0
ro.error.receiver.default=com.samsung.receiver.error
ro.config.media_sound=Media_preview_Touch_the_light.ogg
keyguard.no_require_sim=true
ro.com.android.dateformat=MM-dd-yyyy
ro.carrier=unknown
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.adb.qemud=1
ro.com.google.clientidbase=android-samsung
ro.com.google.gmsversion=4.2_r1
ro.kernel.qemu=0
ro.build.selinux=1
ro.config.tima=1
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.qc.sdk.izat.premium_enabled=0
persist.gps.qc_nlp_in_use=0

---------- Post added at 11:12 PM ---------- Previous post was at 11:09 PM ----------

I especially liked the

salse

code