From 1412ac943ff9f5c4337082df5b40eb6676ef5cae Mon Sep 17 00:00:00 2001 From: Valera1978 Date: Thu, 17 Nov 2016 14:12:29 +0300 Subject: [PATCH] Fix ril --- rootdir/etc/init.qcom.rc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3d7e168..2692157 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -62,6 +62,12 @@ on early-boot start wcnss-service + # Remove symlinks to avoid issues with migrate after nandroid restores + # Will be recreated at end of boot + rm /data/data/com.android.providers.telephony/databases/telephony.db + rm /data/data/com.android.providers.telephony/shared_prefs/preferred-apn.xml + + on boot mount debugfs /sys/kernel/debug /sys/kernel/debug @@ -432,7 +438,7 @@ service p2p_supplicant /system/bin/wpa_supplicant \ oneshot service macloader /system/bin/macloader - class main + class main late_start oneshot service ril-daemon /system/bin/rild @@ -443,6 +449,9 @@ service ril-daemon /system/bin/rild user root group radio cache inet misc audio log wakelock qcom_diag +on property:wlan.driver.status=ok + start macloader + on property:init.svc.macloader=stopped chown system root /data/.cid.info chmod 0664 /data/.cid.info @@ -626,6 +635,12 @@ on property:sys.boot_completed=1 # Post boot services start mpdecision + # Symlink telephony.db and preferred-apn.xml + mkdir /data/data/com.android.providers.telephony/databases 0700 radio radio + mkdir /data/data/com.android.providers.telephony/shared_prefs 0700 radio radio + symlink /data/user_de/0/com.android.providers.telephony/databases/telephony.db /data/data/com.android.providers.telephony/databases/telephony.db + symlink /data/user_de/0/com.android.providers.telephony/shared_prefs/preferred-apn.xml /data/data/com.android.providers.telephony/shared_prefs/preferred-apn.xml + service hdmid /system/bin/hdmid class late_start socket hdmid stream 0660 root system graphics