Home | History | Annotate | Download | only in wingray
      1 on boot
      2     write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
      3     write /sys/class/android_usb/android0/iProduct ${ro.boot.modelno}
      4     write /sys/class/android_usb/android0/iSerial ${ro.serialno}
      5     write /sys/class/android_usb/android0/f_rndis/manufacturer Motorola
      6     write /sys/class/android_usb/android0/f_rndis/vendorID 22b8
      7     write /sys/class/android_usb/android0/f_rndis/wceis 1
      8 
      9 on property:sys.usb.config=mtp
     10     write /sys/class/android_usb/android0/enable 0
     11     write /sys/class/android_usb/android0/idVendor 22b8
     12     write /sys/class/android_usb/android0/idProduct 70a8
     13     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     14     write /sys/class/android_usb/android0/enable 1
     15     setprop sys.usb.state ${sys.usb.config}
     16 
     17 on property:sys.usb.config=mtp,adb
     18     write /sys/class/android_usb/android0/enable 0
     19     write /sys/class/android_usb/android0/idVendor 22b8
     20     write /sys/class/android_usb/android0/idProduct 70a9
     21     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     22     write /sys/class/android_usb/android0/enable 1
     23     start adbd
     24     setprop sys.usb.state ${sys.usb.config}
     25 
     26 on property:sys.usb.config=rndis
     27     write /sys/class/android_usb/android0/enable 0
     28     write /sys/class/android_usb/android0/idVendor 22b8
     29     write /sys/class/android_usb/android0/idProduct 70ae
     30     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     31     write /sys/class/android_usb/android0/bDeviceClass 224
     32     write /sys/class/android_usb/android0/enable 1
     33     write /sys/class/net/rndis0/mtu 1428
     34     setprop sys.usb.state ${sys.usb.config}
     35 
     36 on property:sys.usb.config=rndis,adb
     37     write /sys/class/android_usb/android0/enable 0
     38     write /sys/class/android_usb/android0/idVendor 22b8
     39     write /sys/class/android_usb/android0/idProduct 70af
     40     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     41     write /sys/class/android_usb/android0/bDeviceClass 224
     42     write /sys/class/android_usb/android0/enable 1
     43     start adbd
     44     write /sys/class/net/rndis0/mtu 1428
     45     setprop sys.usb.state ${sys.usb.config}
     46 
     47 on property:sys.usb.config=ptp
     48     write /sys/class/android_usb/android0/enable 0
     49     write /sys/class/android_usb/android0/idVendor 22b8
     50     write /sys/class/android_usb/android0/idProduct 70b4
     51     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     52     write /sys/class/android_usb/android0/enable 1
     53     setprop sys.usb.state ${sys.usb.config}
     54 
     55 on property:sys.usb.config=ptp,adb
     56     write /sys/class/android_usb/android0/enable 0
     57     write /sys/class/android_usb/android0/idVendor 22b8
     58     write /sys/class/android_usb/android0/idProduct 70b5
     59     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     60     write /sys/class/android_usb/android0/enable 1
     61     start adbd
     62     setprop sys.usb.state ${sys.usb.config}
     63 
     64 # factory test
     65 on property:sys.usb.config=usbnet
     66     write /sys/class/android_usb/android0/enable 0
     67     write /sys/class/android_usb/android0/idVendor 22b8
     68     write /sys/class/android_usb/android0/idProduct 70a3
     69     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     70     write /sys/class/android_usb/android0/enable 1
     71     setprop sys.usb.state ${sys.usb.config}
     72 
     73 # factory test with adb on. Note adb over TCP will be used.
     74 on property:sys.usb.config=usbnet,adb
     75     write /sys/class/android_usb/android0/enable 0
     76     write /sys/class/android_usb/android0/idVendor 22b8
     77     write /sys/class/android_usb/android0/idProduct 70a3
     78     write /sys/class/android_usb/android0/functions usbnet
     79     write /sys/class/android_usb/android0/enable 1
     80     setprop sys.usb.state ${sys.usb.config}
     81     setprop service.adb.tcp.port 5555
     82     start adbd
     83 
     84 # BP configurations
     85 on property:sys.usb.config=acm,usbnet
     86     write /sys/class/android_usb/android0/enable 0
     87     write /sys/class/android_usb/android0/idVendor 22b8
     88     write /sys/class/android_usb/android0/idProduct 70b0
     89     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     90     write /sys/class/android_usb/f_acm/instances 3
     91     write /sys/class/android_usb/android0/enable 1
     92     setprop sys.usb.state ${sys.usb.config}
     93 
     94 on property:sys.usb.config=acm,usbnet,adb
     95     write /sys/class/android_usb/android0/enable 0
     96     write /sys/class/android_usb/android0/idVendor 22b8
     97     write /sys/class/android_usb/android0/idProduct 70b1
     98     write /sys/class/android_usb/android0/functions ${sys.usb.config}
     99     write /sys/class/android_usb/f_acm/instances 3
    100     write /sys/class/android_usb/android0/enable 1
    101     start adbd
    102     setprop sys.usb.state ${sys.usb.config}
    103 
    104 on property:sys.usb.config=rndis,acm,usbnet
    105     write /sys/class/android_usb/android0/enable 0
    106     write /sys/class/android_usb/android0/idVendor 22b8
    107     write /sys/class/android_usb/android0/idProduct 70b2
    108     write /sys/class/android_usb/android0/functions ${sys.usb.config}
    109     write /sys/class/android_usb/f_acm/instances 3
    110     write /sys/class/android_usb/android0/enable 1
    111     write /sys/class/net/rndis0/mtu 1428
    112     setprop sys.usb.state ${sys.usb.config}
    113 
    114 on property:sys.usb.config=rndis,acm,usbnet,adb
    115     write /sys/class/android_usb/android0/enable 0
    116     write /sys/class/android_usb/android0/idVendor 22b8
    117     write /sys/class/android_usb/android0/idProduct 70b3
    118     write /sys/class/android_usb/android0/functions ${sys.usb.config}
    119     write /sys/class/android_usb/f_acm/instances 3
    120     write /sys/class/android_usb/android0/enable 1
    121     start adbd
    122     write /sys/class/net/rndis0/mtu 1428
    123     setprop sys.usb.state ${sys.usb.config}
    124 
    125