• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on init
2    write /sys/class/android_usb/android0/iSerial ${ro.serialno}
3    write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
4    write /sys/class/android_usb/android0/f_rndis/vendorID 04e8
5    write /sys/class/android_usb/android0/f_rndis/wceis 1
6
7on boot
8    write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
9    write /sys/class/android_usb/android0/iProduct ${ro.product.model}
10
11on property:sys.usb.config=mtp
12    write /sys/class/android_usb/android0/enable 0
13    write /sys/class/android_usb/android0/idVendor 04e8
14    write /sys/class/android_usb/android0/idProduct 685c
15    write /sys/class/android_usb/android0/functions ${sys.usb.config}
16    write /sys/class/android_usb/android0/enable 1
17    setprop sys.usb.state ${sys.usb.config}
18
19on property:sys.usb.config=mtp,adb
20    write /sys/class/android_usb/android0/enable 0
21    write /sys/class/android_usb/android0/idVendor 04e8
22    write /sys/class/android_usb/android0/idProduct 6860
23    write /sys/class/android_usb/android0/functions ${sys.usb.config}
24    write /sys/class/android_usb/android0/enable 1
25    start adbd
26    setprop sys.usb.state ${sys.usb.config}
27
28on property:sys.usb.config=rndis
29    write /sys/class/android_usb/android0/enable 0
30    write /sys/class/android_usb/android0/idVendor 04e8
31    write /sys/class/android_usb/android0/idProduct 6863
32    write /sys/class/android_usb/android0/functions ${sys.usb.config}
33    write /sys/class/android_usb/android0/bDeviceClass 224
34    write /sys/class/android_usb/android0/enable 1
35    setprop sys.usb.state ${sys.usb.config}
36
37on property:sys.usb.config=rndis,adb
38    write /sys/class/android_usb/android0/enable 0
39    write /sys/class/android_usb/android0/idVendor 04e8
40    write /sys/class/android_usb/android0/idProduct 6864
41    write /sys/class/android_usb/android0/functions ${sys.usb.config}
42    write /sys/class/android_usb/android0/bDeviceClass 224
43    write /sys/class/android_usb/android0/enable 1
44    start adbd
45    setprop sys.usb.state ${sys.usb.config}
46
47on property:sys.usb.config=ptp
48    write /sys/class/android_usb/android0/enable 0
49    write /sys/class/android_usb/android0/idVendor 04e8
50    write /sys/class/android_usb/android0/idProduct 6865
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
55on property:sys.usb.config=ptp,adb
56    write /sys/class/android_usb/android0/enable 0
57    write /sys/class/android_usb/android0/idVendor 04e8
58    write /sys/class/android_usb/android0/idProduct 6866
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
64on property:sys.usb.config=rndis,dm
65    write /sys/class/android_usb/android0/enable 0
66    write /sys/class/android_usb/android0/idVendor 04e8
67    write /sys/class/android_usb/android0/idProduct 6864
68    write /sys/class/android_usb/android0/functions ${sys.usb.config}
69    write /sys/class/android_usb/android0/enable 1
70    setprop sys.usb.state ${sys.usb.config}
71
72on property:sys.usb.config=rndis,acm,dm
73    write /sys/class/android_usb/android0/enable 0
74    write /sys/class/android_usb/android0/idVendor 04e8
75    write /sys/class/android_usb/android0/idProduct 6864
76    write /sys/class/android_usb/android0/functions ${sys.usb.config}
77    write /sys/class/android_usb/android0/f_acm/instances 1
78    write /sys/class/android_usb/android0/enable 1
79    setprop sys.usb.state ${sys.usb.config}
80