android_device_htc_leo/prebuilt/init.htcleo.usb.rc

44 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

on property:sys.usb.config=none
exec /system/bin/netcfg usb0 down
stop adbd
write /sys/class/usb_composite/adb/enable 0
write /sys/class/usb_composite/usb_mass_storage/enable 0
write /sys/class/usb_composite/rndis/enable 0
setprop sys.usb.state $sys.usb.config
2011-12-21 00:35:36 +00:00
on property:sys.usb.config=adb
write /sys/class/usb_composite/adb/enable 1
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mass_storage
write /sys/class/usb_composite/usb_mass_storage/enable 1
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mass_storage,adb
write /sys/class/usb_composite/usb_mass_storage/enable 1
write /sys/class/usb_composite/adb/enable 1
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=rndis
exec /system/bin/netcfg usb0 up
2011-12-21 00:35:36 +00:00
write /sys/class/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
2011-12-21 00:35:36 +00:00
write /sys/class/usb_composite/rndis/enable 1
write /sys/class/usb_composite/adb/enable 1
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mass_storage,rndis,adb
exec /system/bin/netcfg usb0 up
write /sys/class/usb_composite/usb_mass_storage/enable 1
write /sys/class/usb_composite/rndis/enable 1
write /sys/class/usb_composite/adb/enable 1
start adbd
setprop sys.usb.state $sys.usb.config