From aab375b80548386e806be2d74cddda38033b3af3 Mon Sep 17 00:00:00 2001 From: Kazuhiro Ondo Date: Tue, 20 Jul 2010 14:50:00 -0500 Subject: [PATCH] RIL and modem IPC enablers. Change-Id: I0988685c7bf7a61c4c7755e8456fee57aca3847e --- init.stingray.rc | 12 ++++++++++++ system.prop | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/init.stingray.rc b/init.stingray.rc index bd07f9b..5d1e1ac 100644 --- a/init.stingray.rc +++ b/init.stingray.rc @@ -20,6 +20,18 @@ on boot export EXTERNAL_STORAGE /data/media mkdir /data/media 0775 system sdcard_rw +# modem + chown radio radio /dev/ttyUSB0 + chmod 0640 /dev/ttyUSB0 + chown radio radio /dev/ttyUSB1 + chmod 0640 /dev/ttyUSB1 + chown radio radio /dev/ttyUSB2 + chmod 0640 /dev/ttyUSB2 + chown radio radio /dev/ttyUSB3 + chmod 0640 /dev/ttyUSB3 + chown radio radio /dev/ttyUSB4 + chmod 0640 /dev/ttyUSB4 + # bluetooth # power up/down interface chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type diff --git a/system.prop b/system.prop index ad70485..35407e4 100644 --- a/system.prop +++ b/system.prop @@ -1,2 +1,13 @@ # This is a large screen device with more memory, so larger vm heaps for it. dalvik.vm.heapsize=32m + +# RIL and telephony related settings +rild.libargs=-d /dev/chnlat10 +rild.libpath=/system/lib/libmoto_ril.so +persist.ril.mux.ttydevice=/dev/ttyUSB2 +persist.ril.mux.noofchannels=8 +persist.ril.modem.mode=1 +ro.cdma.home.operator.numeric=31020 +persist.ril.modem.ttydevice=/dev/ttyUSB4 +ro.telephony.default_network=4 +