blob: 5b440987049b188c9246a82263feb5558e58b890 [file] [log] [blame]
Jean-Baptiste Queru671476b2012-05-29 10:40:37 -07001on init
2 write /sys/class/android_usb/android0/iSerial ${ro.serialno}
3
4on boot
5 write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
6 write /sys/class/android_usb/android0/iProduct ${ro.product.model}
7
8on property:sys.usb.config=mtp
9 write /sys/class/android_usb/android0/enable 0
10 write /sys/class/android_usb/android0/idVendor 18d1
11 write /sys/class/android_usb/android0/idProduct 4e41
12 write /sys/class/android_usb/android0/functions ${sys.usb.config}
13 write /sys/class/android_usb/android0/enable 1
14 setprop sys.usb.state ${sys.usb.config}
15
16on property:sys.usb.config=mtp,adb
17 write /sys/class/android_usb/android0/enable 0
18 write /sys/class/android_usb/android0/idVendor 18d1
19 write /sys/class/android_usb/android0/idProduct 4e42
20 write /sys/class/android_usb/android0/functions ${sys.usb.config}
21 write /sys/class/android_usb/android0/enable 1
22 start adbd
23 setprop sys.usb.state ${sys.usb.config}
24
25on property:sys.usb.config=ptp
26 write /sys/class/android_usb/android0/enable 0
27 write /sys/class/android_usb/android0/idVendor 18d1
28 write /sys/class/android_usb/android0/idProduct 4e43
29 write /sys/class/android_usb/android0/functions ${sys.usb.config}
30 write /sys/class/android_usb/android0/enable 1
31 setprop sys.usb.state ${sys.usb.config}
32
33on property:sys.usb.config=ptp,adb
34 write /sys/class/android_usb/android0/enable 0
35 write /sys/class/android_usb/android0/idVendor 18d1
36 write /sys/class/android_usb/android0/idProduct 4e44
37 write /sys/class/android_usb/android0/functions ${sys.usb.config}
38 write /sys/class/android_usb/android0/enable 1
39 start adbd
40 setprop sys.usb.state ${sys.usb.config}