blob: 8540d9cd3306707ecbe0627fe781f1d3c7d93fd0 [file] [log] [blame]
Colin Cross29380e62012-03-06 17:41:22 -08001on boot
2 write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
3 write /sys/class/android_usb/android0/iProduct ${ro.product.model}
4 write /sys/class/android_usb/android0/iSerial ${ro.serialno}
5 write /sys/class/android_usb/android0/f_mass_storage/inquiry_string "Manta 0100"
6 write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
7 write /sys/class/android_usb/android0/f_rndis/vendorID 18d1
8 write /sys/class/android_usb/android0/f_rndis/wceis 1
9
Benoit Gobyb95ddb82012-03-29 19:40:39 -070010on fs
11 mkdir /dev/usb-ffs 0770 shell shell
12 mkdir /dev/usb-ffs/adb 0770 shell shell
13 mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
14 write /sys/class/android_usb/android0/f_ffs/aliases adb
15
Colin Cross29380e62012-03-06 17:41:22 -080016on property:sys.usb.config=mtp
17 write /sys/class/android_usb/android0/enable 0
18 write /sys/class/android_usb/android0/idVendor 18d1
Dima Zavin5f8a6812012-07-18 11:48:17 -070019 write /sys/class/android_usb/android0/idProduct 4ee1
Colin Cross29380e62012-03-06 17:41:22 -080020 write /sys/class/android_usb/android0/functions ${sys.usb.config}
21 write /sys/class/android_usb/android0/enable 1
22 setprop sys.usb.state ${sys.usb.config}
23
24on property:sys.usb.config=mtp,adb
25 write /sys/class/android_usb/android0/enable 0
26 write /sys/class/android_usb/android0/idVendor 18d1
Dima Zavin5f8a6812012-07-18 11:48:17 -070027 write /sys/class/android_usb/android0/idProduct 4ee2
Colin Cross29380e62012-03-06 17:41:22 -080028 write /sys/class/android_usb/android0/functions ${sys.usb.config}
29 write /sys/class/android_usb/android0/enable 1
30 start adbd
31 setprop sys.usb.state ${sys.usb.config}
32
33on property:sys.usb.config=rndis
34 write /sys/class/android_usb/android0/enable 0
35 write /sys/class/android_usb/android0/idVendor 18d1
Dima Zavin5f8a6812012-07-18 11:48:17 -070036 write /sys/class/android_usb/android0/idProduct 4ee3
Colin Cross29380e62012-03-06 17:41:22 -080037 write /sys/class/android_usb/android0/functions ${sys.usb.config}
38 write /sys/class/android_usb/android0/bDeviceClass 224
39 write /sys/class/android_usb/android0/enable 1
40 setprop sys.usb.state ${sys.usb.config}
41
42on property:sys.usb.config=rndis,adb
43 write /sys/class/android_usb/android0/enable 0
44 write /sys/class/android_usb/android0/idVendor 18d1
Dima Zavin5f8a6812012-07-18 11:48:17 -070045 write /sys/class/android_usb/android0/idProduct 4ee4
Colin Cross29380e62012-03-06 17:41:22 -080046 write /sys/class/android_usb/android0/functions ${sys.usb.config}
47 write /sys/class/android_usb/android0/bDeviceClass 224
48 write /sys/class/android_usb/android0/enable 1
49 start adbd
50 setprop sys.usb.state ${sys.usb.config}
Benoit Goby970ce7a2012-07-12 14:17:50 -070051
52on property:sys.usb.config=ptp
53 write /sys/class/android_usb/android0/enable 0
54 write /sys/class/android_usb/android0/idVendor 18d1
Dima Zavin5f8a6812012-07-18 11:48:17 -070055 write /sys/class/android_usb/android0/idProduct 4ee5
Benoit Goby970ce7a2012-07-12 14:17:50 -070056 write /sys/class/android_usb/android0/functions ${sys.usb.config}
57 write /sys/class/android_usb/android0/enable 1
58 setprop sys.usb.state ${sys.usb.config}
59
60on property:sys.usb.config=ptp,adb
61 write /sys/class/android_usb/android0/enable 0
62 write /sys/class/android_usb/android0/idVendor 18d1
Dima Zavin5f8a6812012-07-18 11:48:17 -070063 write /sys/class/android_usb/android0/idProduct 4ee6
Benoit Goby970ce7a2012-07-12 14:17:50 -070064 write /sys/class/android_usb/android0/functions ${sys.usb.config}
65 write /sys/class/android_usb/android0/enable 1
66 start adbd
67 setprop sys.usb.state ${sys.usb.config}