Source
1
1
on boot
2
2
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
3
3
write /sys/class/android_usb/android0/iProduct ${ro.product.model}
4
4
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
5
5
write /sys/class/android_usb/android0/idVendor 0451
6
6
write /sys/class/android_usb/android0/idProduct D101
7
7
write /sys/class/android_usb/f_mass_storage/inquiry_string "Texas Instruments OMAP5 0100"
8
8
9
+
on fs
10
+
mkdir /dev/usb-ffs 0770 shell shell
11
+
mkdir /dev/usb-ffs/adb 0770 shell shell
12
+
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
13
+
write /sys/class/android_usb/android0/f_ffs/aliases adb
14
+
9
15
on property:sys.usb.config=none
10
16
stop adbd
11
17
write /sys/class/android_usb/android0/enable 0
12
18
write /sys/class/android_usb/android0/bDeviceClass 0
13
19
setprop sys.usb.state ${sys.usb.config}
14
20
15
21
on property:sys.usb.config=adb
16
22
write /sys/class/android_usb/android0/enable 0
17
23
write /sys/class/android_usb/android0/idVendor 0451
18
24
write /sys/class/android_usb/android0/idProduct D101