From bc026993579679fefa95ef12e5c7f6f33f8a9184 Mon Sep 17 00:00:00 2001 From: GuaiYiHu Date: Fri, 4 Jan 2019 21:36:54 +0800 Subject: [PATCH] sdm660-common: rootdir: Start ipacm for all devices even with no ril Change-Id: I50b600e2270b4b7628c14c362db87fd391d29252 --- rootdir/bin/init.class_main.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rootdir/bin/init.class_main.sh b/rootdir/bin/init.class_main.sh index 5db1031e..e87b7bbf 100755 --- a/rootdir/bin/init.class_main.sh +++ b/rootdir/bin/init.class_main.sh @@ -39,10 +39,14 @@ vendor_rild_status=`getprop init.svc.vendor.ril-daemon` case "$baseband" in "apq" | "sda" | "qcs" ) setprop ro.vendor.radio.noril yes + setprop ro.radio.noril yes + setprop hw.nophone yes + start vendor.ipacm if [ -n "$rild_status" ] || [ -n "$vendor_rild_status" ]; then - stop ril-daemon - stop vendor.ril-daemon - start vendor.ipacm + stop ril-daemon + stop vendor.ril-daemon + stop vendor.qcrild + stop vendor.qcrild2 fi esac @@ -58,7 +62,7 @@ case "$baseband" in modem=`cat /vendor/firmware_mnt/verinfo/ver_info.txt | sed -n 's/^[^:]*modem[^:]*:[[:blank:]]*//p' | sed 's/.*MPSS.\(.*\)/\1/g' | cut -d \. -f 1` - # Check if this is AT 3.0 or below. If so, start ril-daemon + # Check if this is AT 3.0 or below. If so, start ril-daemon if [ "$modem" = "AT" ]; then version=`cat /vendor/firmware_mnt/verinfo/ver_info.txt | sed -n 's/^[^:]*modem[^:]*:[[:blank:]]*//p' |