sm8450-common: rootdir: Stop qcrild for qultivate targets
- For modemless qultivate targets, stop the qcrild and make ro.vendor.radio.noril property to yes Change-Id: I111fa5cabc8524ee76a5c5c8c6449b77d1ff6874 CRs-Fixed: 3694884 (cherry picked from commit 7482be9422213036d54e8e3cdb07d6ab001cda51)
This commit is contained in:
parent
d3128164e1
commit
37ff0286d1
1 changed files with 52 additions and 36 deletions
|
@ -46,46 +46,62 @@ esac
|
|||
case "$baseband" in
|
||||
"msm" | "csfb" | "svlte2a" | "mdm" | "mdm2" | "sglte" | "sglte2" | "dsda2" | "unknown" | "dsda3" | "sdm" | "sdx" | "sm6")
|
||||
|
||||
start vendor.qcrild
|
||||
|
||||
case "$baseband" in
|
||||
"svlte2a" | "csfb")
|
||||
start qmiproxy
|
||||
;;
|
||||
"sglte" | "sglte2" )
|
||||
if [ "x$sgltecsfb" != "xtrue" ]; then
|
||||
start qmiproxy
|
||||
else
|
||||
setprop persist.vendor.radio.voice.modem.index 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
multisim=`getprop persist.radio.multisim.config`
|
||||
|
||||
if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then
|
||||
start vendor.qcrild2
|
||||
elif [ "$multisim" = "tsts" ]; then
|
||||
start vendor.qcrild2
|
||||
start vendor.qcrild3
|
||||
# start qcrild only for targets on which modem is present
|
||||
# modemvalue 0x0 indicates Modem online
|
||||
# modemvalue 0x1 indicates Modem IP is not functional or disabled
|
||||
# modemvalue 0x2 indicates Modem offline
|
||||
modemvalue="0x0"
|
||||
if [ -f /sys/devices/soc0/modem ]; then
|
||||
modemvalue=`cat /sys/devices/soc0/modem`
|
||||
fi
|
||||
|
||||
case "$datamode" in
|
||||
"tethered")
|
||||
start vendor.dataqti
|
||||
if [ "$low_ram" != "true" ]; then
|
||||
start vendor.dataadpl
|
||||
fi
|
||||
if [ $modemvalue != "0x1" ] && [ $modemvalue != "0x2" ]; then
|
||||
start vendor.qcrild
|
||||
|
||||
case "$baseband" in
|
||||
"svlte2a" | "csfb")
|
||||
start qmiproxy
|
||||
;;
|
||||
"concurrent")
|
||||
start vendor.dataqti
|
||||
if [ "$low_ram" != "true" ]; then
|
||||
start vendor.dataadpl
|
||||
fi
|
||||
"sglte" | "sglte2" )
|
||||
if [ "x$sgltecsfb" != "xtrue" ]; then
|
||||
start qmiproxy
|
||||
else
|
||||
setprop persist.vendor.radio.voice.modem.index 0
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
multisim=`getprop persist.radio.multisim.config`
|
||||
|
||||
if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then
|
||||
start vendor.qcrild2
|
||||
elif [ "$multisim" = "tsts" ]; then
|
||||
start vendor.qcrild2
|
||||
start vendor.qcrild3
|
||||
fi
|
||||
|
||||
case "$datamode" in
|
||||
"tethered")
|
||||
start vendor.dataqti
|
||||
if [ "$low_ram" != "true" ]; then
|
||||
start vendor.dataadpl
|
||||
fi
|
||||
;;
|
||||
"concurrent")
|
||||
start vendor.dataqti
|
||||
if [ "$low_ram" != "true" ]; then
|
||||
start vendor.dataadpl
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
else
|
||||
setprop ro.vendor.radio.noril yes
|
||||
stop vendor.qcrild
|
||||
stop vendor.qcrild2
|
||||
stop vendor.qcrild3
|
||||
fi
|
||||
esac
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue