45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
on boot
|
|
write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
|
|
write /sys/class/android_usb/android0/iProduct $ro.product.model
|
|
write /sys/class/android_usb/android0/iSerial $ro.serialno
|
|
write /sys/class/android_usb/android0/f_mass_storage/inquiry_string "HTC HD2"
|
|
write /sys/class/android_usb/android0/f_rndis/manufacturer HTC
|
|
write /sys/class/android_usb/android0/f_rndis/vendorID 0bb4
|
|
write /sys/class/android_usb/android0/f_rndis/wceis 1
|
|
|
|
on property:sys.usb.config=mass_storage
|
|
write /sys/class/android_usb/android0/enable 0
|
|
write /sys/class/android_usb/android0/idVendor 0bb4
|
|
write /sys/class/android_usb/android0/idProduct 4e21
|
|
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
|
|
|
|
on property:sys.usb.config=mass_storage,adb
|
|
write /sys/class/android_usb/android0/enable 0
|
|
write /sys/class/android_usb/android0/idVendor 0bb4
|
|
write /sys/class/android_usb/android0/idProduct 4e22
|
|
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
|
|
|
|
on property:sys.usb.config=rndis
|
|
write /sys/class/android_usb/android0/enable 0
|
|
write /sys/class/android_usb/android0/idVendor 0bb4
|
|
write /sys/class/android_usb/android0/idProduct 4e23
|
|
write /sys/class/android_usb/android0/functions $sys.usb.config
|
|
write /sys/class/android_usb/android0/bDeviceClass 224
|
|
write /sys/class/android_usb/android0/enable 1
|
|
setprop sys.usb.state $sys.usb.config
|
|
|
|
on property:sys.usb.config=rndis,adb
|
|
write /sys/class/android_usb/android0/enable 0
|
|
write /sys/class/android_usb/android0/idVendor 0bb4
|
|
write /sys/class/android_usb/android0/idProduct 0c02
|
|
write /sys/class/android_usb/android0/functions $sys.usb.config
|
|
write /sys/class/android_usb/android0/bDeviceClass 224
|
|
write /sys/class/android_usb/android0/enable 1
|
|
start adbd
|
|
setprop sys.usb.state $sys.usb.config
|