Project:
CyanogenMod
Code Location:
git://github.com/CyanogenMod/android_device_samsung_epicmtd.gitics
/
init.victory.usb.rc
# It's not proper to set this after updating sys.usb.state (init.rc), # however it should be OK as it will execute before any other "on property" # triggers. on property:sys.usb.config=none write /sys/devices/virtual/usb_composite/rndis/enable 0 on property:sys.usb.config=mass_storage setprop sys.usb.state $sys.usb.config on property:sys.usb.config=mass_storage,adb start adbd setprop sys.usb.state $sys.usb.config on property:sys.usb.config=rndis exec /system/bin/netcfg usb0 up write /sys/devices/virtual/usb_composite/rndis/enable 1 setprop sys.usb.state $sys.usb.config on property:sys.usb.config=rndis,adb exec /system/bin/netcfg usb0 up write /sys/devices/virtual/usb_composite/rndis/enable 1 start adbd setprop sys.usb.state $sys.usb.config
