Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 129 lines (115 sloc) 5.777 kb
74efaef @rmcc star: Initial ICS support
rmcc authored
1 on init
2 write /sys/class/android_usb/android0/iSerial $ro.serialno
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
3 write /sys/class/android_usb/android0/f_ecm/manufacturer LG
4 write /sys/class/android_usb/android0/f_ecm/vendorID 1004
5 # write /sys/class/android_usb/android0/f_rndis/manufacturer LG
6 # write /sys/class/android_usb/android0/f_rndis/vendorID 1004
7 # write /sys/class/android_usb/android0/f_rndis/wceis 1
74efaef @rmcc star: Initial ICS support
rmcc authored
8
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
9 on post-fs-data
10 chown system system /sys/class/android_usb/android0/f_cdrom_storage/lun/cdrom_usbmode
11 chmod 0660 /sys/class/android_usb/android0/f_cdrom_storage/lun/cdrom_usbmode
12
74efaef @rmcc star: Initial ICS support
rmcc authored
13 on boot
14 write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
15 write /sys/class/android_usb/android0/iProduct $ro.product.model
16
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
17 on recovery
74efaef @rmcc star: Initial ICS support
rmcc authored
18 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
19 write /sys/class/android_usb/android0/idVendor 1004
20 write /sys/class/android_usb/android0/idProduct 61A6
21 write /sys/class/android_usb/android0/functions mass_storage,adb
74efaef @rmcc star: Initial ICS support
rmcc authored
22 write /sys/class/android_usb/android0/enable 1
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
23 start adbd
74efaef @rmcc star: Initial ICS support
rmcc authored
24 setprop sys.usb.state $sys.usb.config
25
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
26 on property:sys.usb.config=adb
74efaef @rmcc star: Initial ICS support
rmcc authored
27 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
28 write /sys/class/android_usb/android0/idVendor 1004
29 write /sys/class/android_usb/android0/idProduct 6000
30 write /sys/class/android_usb/android0/functions acm,adb
74efaef @rmcc star: Initial ICS support
rmcc authored
31 write /sys/class/android_usb/android0/enable 1
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
32 start adbd
74efaef @rmcc star: Initial ICS support
rmcc authored
33 setprop sys.usb.state $sys.usb.config
34
35 on property:sys.usb.config=mass_storage
36 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
37 write /sys/class/android_usb/android0/idVendor 1004
38 write /sys/class/android_usb/android0/idProduct 61C5
39 write /sys/class/android_usb/android0/functions mass_storage
74efaef @rmcc star: Initial ICS support
rmcc authored
40 write /sys/class/android_usb/android0/enable 1
41 setprop sys.usb.state $sys.usb.config
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
42
43 on property:sys.usb.config=mass_storage,adb
74efaef @rmcc star: Initial ICS support
rmcc authored
44 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
45 write /sys/class/android_usb/android0/idVendor 1004
46 write /sys/class/android_usb/android0/idProduct 61A6
74efaef @rmcc star: Initial ICS support
rmcc authored
47 write /sys/class/android_usb/android0/functions $sys.usb.config
48 write /sys/class/android_usb/android0/enable 1
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
49 start adbd
74efaef @rmcc star: Initial ICS support
rmcc authored
50 setprop sys.usb.state $sys.usb.config
51
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
52 on charger
74efaef @rmcc star: Initial ICS support
rmcc authored
53 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
54 write /sys/class/android_usb/android0/idVendor 1004
55 write /sys/class/android_usb/android0/idProduct 61FC
56 write /sys/class/android_usb/android0/bDeviceClass 239
57 write /sys/class/android_usb/android0/bDeviceSubClass 2
58 write /sys/class/android_usb/android0/bDeviceProtocol 1
59 write /sys/class/android_usb/android0/functions acm,serial,cdrom_storage,mass_storage,adb
74efaef @rmcc star: Initial ICS support
rmcc authored
60 write /sys/class/android_usb/android0/enable 1
61 start adbd
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
62 start port-bridge
74efaef @rmcc star: Initial ICS support
rmcc authored
63 setprop sys.usb.state $sys.usb.config
64
65 on property:sys.usb.config=rndis
66 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
67 write /sys/class/android_usb/android0/idVendor 1004
68 write /sys/class/android_usb/android0/idProduct 61DA
74efaef @rmcc star: Initial ICS support
rmcc authored
69 write /sys/class/android_usb/android0/functions $sys.usb.config
70 write /sys/class/android_usb/android0/bDeviceClass 224
71 write /sys/class/android_usb/android0/enable 1
72 setprop sys.usb.state $sys.usb.config
73
74 on property:sys.usb.config=rndis,adb
75 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
76 write /sys/class/android_usb/android0/idVendor 1004
77 write /sys/class/android_usb/android0/idProduct 61D9
74efaef @rmcc star: Initial ICS support
rmcc authored
78 write /sys/class/android_usb/android0/functions $sys.usb.config
79 write /sys/class/android_usb/android0/bDeviceClass 224
80 write /sys/class/android_usb/android0/enable 1
81 start adbd
82 setprop sys.usb.state $sys.usb.config
83
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
84 on property:sys.usb.config=mtp
74efaef @rmcc star: Initial ICS support
rmcc authored
85 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
86 write /sys/class/android_usb/android0/idVendor 1004
87 write /sys/class/android_usb/android0/idProduct 631C
88 write /sys/class/android_usb/android0/bDeviceClass 0
89 write /sys/class/android_usb/android0/bDeviceSubClass 0
90 write /sys/class/android_usb/android0/bDeviceProtocol 0
91 write /sys/class/android_usb/android0/functions mtp
92 write /sys/class/android_usb/android0/enable 1
93 setprop sys.usb.state $sys.usb.config
94
95 on property:sys.usb.config=mtp,adb
96 write /sys/class/android_usb/android0/enable 0
97 write /sys/class/android_usb/android0/idVendor 1004
98 write /sys/class/android_usb/android0/idProduct 61F9
99 write /sys/class/android_usb/android0/bDeviceClass 239
100 write /sys/class/android_usb/android0/bDeviceSubClass 2
101 write /sys/class/android_usb/android0/bDeviceProtocol 1
102 write /sys/class/android_usb/android0/functions mtp,adb
74efaef @rmcc star: Initial ICS support
rmcc authored
103 write /sys/class/android_usb/android0/enable 1
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
104 start adbd
74efaef @rmcc star: Initial ICS support
rmcc authored
105 setprop sys.usb.state $sys.usb.config
106
107 on property:sys.usb.config=ptp,adb
108 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
109 write /sys/class/android_usb/android0/idVendor 1004
110 write /sys/class/android_usb/android0/idProduct 631D
111 write /sys/class/android_usb/android0/bDeviceClass 239
112 write /sys/class/android_usb/android0/bDeviceSubClass 2
113 write /sys/class/android_usb/android0/bDeviceProtocol 1
114 write /sys/class/android_usb/android0/functions ptp,adb
74efaef @rmcc star: Initial ICS support
rmcc authored
115 write /sys/class/android_usb/android0/enable 1
116 start adbd
117 setprop sys.usb.state $sys.usb.config
118
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
119 on property:sys.usb.config=ptp
74efaef @rmcc star: Initial ICS support
rmcc authored
120 write /sys/class/android_usb/android0/enable 0
9ce500f @rmcc star: Use the p880's USB layout
rmcc authored
121 write /sys/class/android_usb/android0/idVendor 1004
122 write /sys/class/android_usb/android0/idProduct 631E
123 write /sys/class/android_usb/android0/bDeviceClass 0
124 write /sys/class/android_usb/android0/bDeviceSubClass 0
125 write /sys/class/android_usb/android0/bDeviceProtocol 0
126 write /sys/class/android_usb/android0/functions ptp
74efaef @rmcc star: Initial ICS support
rmcc authored
127 write /sys/class/android_usb/android0/enable 1
128 setprop sys.usb.state $sys.usb.config
Something went wrong with that request. Please try again.