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:
Ganesh Vilas Chaudhari 2023-11-08 15:10:34 +05:30 committed by Arian
parent d3128164e1
commit 37ff0286d1

View file

@ -46,6 +46,16 @@ esac
case "$baseband" in
"msm" | "csfb" | "svlte2a" | "mdm" | "mdm2" | "sglte" | "sglte2" | "dsda2" | "unknown" | "dsda3" | "sdm" | "sdx" | "sm6")
# 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
if [ $modemvalue != "0x1" ] && [ $modemvalue != "0x2" ]; then
start vendor.qcrild
case "$baseband" in
@ -86,6 +96,12 @@ case "$baseband" in
*)
;;
esac
else
setprop ro.vendor.radio.noril yes
stop vendor.qcrild
stop vendor.qcrild2
stop vendor.qcrild3
fi
esac
#