Jean-Baptiste Queru | 671476b | 2012-05-29 10:40:37 -0700 | [diff] [blame] | 1 | on init |
| 2 | write /sys/class/android_usb/android0/iSerial ${ro.serialno} |
| 3 | |
| 4 | on boot |
| 5 | write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} |
| 6 | write /sys/class/android_usb/android0/iProduct ${ro.product.model} |
| 7 | |
| 8 | on 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 | |
| 16 | on 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 | |
| 25 | on 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 | |
| 33 | on 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} |