2012-06-04 16:40:30 +00:00
|
|
|
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
|
2012-06-04 16:40:30 +00:00
|
|
|
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
|
2012-06-04 16:40:30 +00:00
|
|
|
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
|
|
|
|
|
2012-06-04 16:40:30 +00:00
|
|
|
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
|