From 6f83f6e460f54a5ff4443e6e992f48c88e626eb7 Mon Sep 17 00:00:00 2001 From: Quarx2k Date: Wed, 13 Aug 2014 15:50:29 +0700 Subject: [PATCH] Fix usb tethering --- rootdir/init.zetaw.usb.rc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/rootdir/init.zetaw.usb.rc b/rootdir/init.zetaw.usb.rc index dc50f3b..37b7c64 100755 --- a/rootdir/init.zetaw.usb.rc +++ b/rootdir/init.zetaw.usb.rc @@ -142,12 +142,7 @@ on property:sys.usb.config=rndis write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 61FE - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,ecm + 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} @@ -155,12 +150,7 @@ on property:sys.usb.config=rndis,adb write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 61FE - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,ecm,adb + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 start adbd setprop sys.usb.state ${sys.usb.config}