dimanche 1 mars 2015

[Q] D6633 radio / CM12 topic






Hi guys,

as some of you migh be aware, CM12 doesn't have radio on z3 dual's (d6633) - that is, after patching the .zip with [[ || getprop("ro.product.device") == "leo" ]]

I have attempted to copy over all the ril things I could find in /system from the stock 23.0.1.F.0.96 ROM - to no effect.

The I looked in the initrd and found the following:
init.rc

Code:


service ril-daemon /system/bin/rild
    class main
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc audio log qcom_diag


init.qcom.rc

Code:


service ril-daemon1 /system/bin/rild -c 1
    class main
    socket rild1 stream 660 root radio
    socket rild-debug1 stream 660 radio system
    user root
    disabled
    group radio cache inet misc audio sdcard_r sdcard_rw diag qcom_diag log

service ril-daemon2 /system/bin/rild -c 2
    class main
    socket rild2 stream 660 root radio
    socket rild-debug2 stream 660 radio system
    user root
    disabled
    group radio cache inet misc audio sdcard_r sdcard_rw diag qcom_diag log


init.class_main.sh

Code:


#
# start ril-daemon only for targets on which radio is present
#
baseband=`getprop ro.baseband`
netmgr=`getprop ro.use_data_netmgrd`
sgltecsfb=`getprop persist.radio.sglte_csfb`

case "$baseband" in
    "apq")
    setprop ro.radio.noril yes
    stop ril-daemon
esac

case "$baseband" in
    "msm" | "csfb" | "svlte2a" | "mdm" | "sglte" | "sglte2" | "dsda2" | "unknown")
    start qmuxd
    case "$baseband" in
        "svlte2a" | "csfb")
          start qmiproxy
        ;;
        "sglte" | "sglte2" )
          if [ "x$sgltecsfb" != "xtrue" ]; then
              start qmiproxy
          else
              setprop persist.radio.voice.modem.index 0
          fi
        ;;
        "dsda2")
          setprop persist.radio.multisim.config dsda
    esac

    multisim=`getprop persist.radio.multisim.config`

    if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then
        stop ril-daemon
        start ril-daemon
        start ril-daemon1
    elif [ "$multisim" = "tsts" ]; then
        stop ril-daemon
        start ril-daemon
        start ril-daemon1
        start ril-daemon2
    fi

    case "$netmgr" in
        "true")
        start netmgrd
    esac
esac


Could somebody (a dev) evaluate the difficulty of getting CM12 in line with this?






Aucun commentaire:

Enregistrer un commentaire