summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinit.tuna.usb.rc11
-rw-r--r--ueventd.tuna.rc3
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