33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
|
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
|
||
|
write /sys/class/usb_composite/rndis/enable 1
|
||
|
setprop sys.usb.state $sys.usb.config
|
||
|
|
||
|
on property:sys.usb.config=rndis,adb
|
||
|
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
|
||
|
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
|