[Samsung Galaxy Star] malfunchan:
I've recently ported TWRP 3 and CM11 from G130H to G130E and found no difference between these devices (except camera and 3g)

i thought that 3g support is SoC or Software related issue (true or not?)

so, i started by flashing g130e with g130h system and it worked! (camera and ril isn't working)

i didn't expect for them to share the same kernel (with some flags changed in ramdisk, explained down)

next, i disassembled boot.img for both devices and found the main (and only) difference.

from 2g version:

#td rild service
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril_sp.so -m t -n 0
class core
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell sdcard_r

service ril-daemon2 /system/bin/rild -l /system/lib/libreference-ril_sp.so -m t -n 1
class core
socket rild1 stream 660 root radio
socket rild-debug1 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell sdcard_r

service ril-daemon3 /system/bin/rild -l /system/lib/libreference-ril_sp.so -m t -n 2
class core
socket rild2 stream 660 root radio
socket rild-debug2 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell sdcard_r

from 3g version:

#wcdma rild service
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril_sp.so -m w -n 0
class core
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell sdcard_r

service ril-daemon2 /system/bin/rild -l /system/lib/libreference-ril_sp.so -m w -n 1
class core
socket rild1 stream 660 root radio
socket rild-debug1 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell sdcard_r

service ril-daemon3 /system/bin/rild -l /system/lib/libreference-ril_sp.so -m w -n 2
class core
socket rild2 stream 660 root radio
socket rild-debug2 stream 660 radio system
disabled
user root
group radio cache inet misc audio sdcard_rw log shell sdcard_r

so, for now the difference between the two devices is -w flag instead of -t and this means some files are changed

and after some tinkering and a lot of help from google (thx Google!) i found this:

from g130e build.prop:

persist.modem.t.enable=1
ro.modem.t.dev=/dev/cpt
ro.modem.t.tty=/dev/stty_td
ro.modem.t.eth=rmnet
ro.modem.t.snd=1
ro.modem.t.diag=/dev/slog_td
ro.modem.t.loop=/dev/spipe_td0
ro.modem.t.nv=/dev/spipe_td1
ro.modem.t.assert=/dev/spipe_td2
ro.modem.t.vbc=/dev/spipe_td6
ro.modem.t.id=0
ro.modem.t.fixnv_size=0x40000
ro.modem.t.runnv_size=0x60000
ro.modem.t.nvp=td
ro.modem.t.count=2

from g130h build.prop:

ro.modem.wcn.enable=1
ro.modem.wcn.dev=/dev/cpwcn
ro.modem.wcn.tty=/deiv/stty_wcn
ro.modem.wcn.diag=/dev/slog_wcn
ro.modem.wcn.assert=/dev/spipe_wcn2
ro.modem.wcn.id=1
ro.modem.wcn.count=1

so, /dev/*wcn is block for 3g modem and /dev/*t is for 2g

this is the only difference for 3g modem type.

after that, i thought about flashing g130h 4file firmware to my g130e device.

tried with odin with repartition flag enabled but failed.

then reflashed stock firmware to get cm11 functional then i tried flashfire but it didn't work as i wanted

so i had to flash download mode from g130h manually (and here comes my problem)

flashed sboot2 with terminal and the device is still functional.

then tried flashing sboot but got black screen after reboot with no sign of life :'(

no vibration nor recovery nor download mode

tried connecting to pc with all possible button combination and still cannot get sprd flash mode.

any suggestions?

p.s: cm11 was on testing stage and not ready for publishing, but twrp is ready! if you want it just say and i'll gladly post it :)