From 7d8d74514dbf908018307852a50e80f671beeee6 Mon Sep 17 00:00:00 2001 From: "sujin119.kim" Date: Tue, 3 Jan 2012 17:05:02 +0900 Subject: Toro: USB: Add RNDIS+DM+MODEM Add RNDIS+DM+MODEM for CP logging 1. Add USB composite setting for RNDIS+DM+MODEM 2. Change the permission for ttyGS0 Change-Id: Ifec615a33b7bb2c3e64098525f968a9026ff14c4 Signed-off-by: sujin119.kim --- init.tuna.usb.rc | 11 ++++++++++- ueventd.tuna.rc | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/init.tuna.usb.rc b/init.tuna.usb.rc index 9d3d336..20bf090 100755 --- a/init.tuna.usb.rc +++ b/init.tuna.usb.rc @@ -64,7 +64,16 @@ on property:sys.usb.config=ptp,adb on property:sys.usb.config=rndis,dm write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6862 + write /sys/class/android_usb/android0/idProduct 6864 + write /sys/class/android_usb/android0/functions $sys.usb.config + write /sys/class/android_usb/android0/enable 1 + setprop sys.usb.state $sys.usb.config + +on property:sys.usb.config=rndis,acm,dm + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6864 write /sys/class/android_usb/android0/functions $sys.usb.config + write /sys/class/android_usb/android0/f_acm/instances 1 write /sys/class/android_usb/android0/enable 1 setprop sys.usb.state $sys.usb.config diff --git a/ueventd.tuna.rc b/ueventd.tuna.rc index 3fa9fe2..d1a8b47 100644 --- a/ueventd.tuna.rc +++ b/ueventd.tuna.rc @@ -38,7 +38,8 @@ /dev/cdma_rmnet5 0660 radio radio /dev/cdma_rmnet6 0660 radio radio /dev/lte_rmnet4 0660 radio radio -/dev/ttyGS1 0660 radio radio +/dev/ttyGS0 0660 radio radio +/dev/ttyGS1 0660 radio radio /dev/block/mmcblk0p4 0660 radio radio /dev/modem_br 0660 radio radio /dev/cdma_ramdump0 0660 radio radio -- cgit v1.1