Home | History | Annotate | Download | only in panda
      1 on boot
      2     write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
      3     write /sys/class/android_usb/android0/iProduct ${ro.product.model}
      4     write /sys/class/android_usb/android0/iSerial ${ro.serialno}
      5 
      6 on property:sys.usb.config=none
      7     stop adbd
      8     write /sys/class/android_usb/android0/enable 0
      9     write /sys/class/android_usb/android0/bDeviceClass 0
     10     setprop sys.usb.state ${sys.usb.config}
     11 
     12 on property:sys.usb.config=adb
     13     write /sys/class/android_usb/android0/enable 0
     14     write /sys/class/android_usb/android0/idVendor 0451
     15     write /sys/class/android_usb/android0/idProduct D101
     16     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     17     write /sys/class/android_usb/android0/enable 1
     18     setprop sys.usb.state ${sys.usb.config}
     19