blob: b4a852a1362e06e4ea9cdfa4723e3e611d5dcb50 [file] [log] [blame]
Matt Mowerec009e82015-01-30 13:00:49 -06001on fs
2 write /sys/class/android_usb/android0/enable 0
3 write /sys/class/android_usb/android0/idVendor 18D1
4 write /sys/class/android_usb/android0/idProduct 4EE2
5 write /sys/class/android_usb/android0/f_ffs/aliases adb
6 write /sys/class/android_usb/android0/functions mtp,adb
7 write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
8 write /sys/class/android_usb/android0/iProduct ${ro.product.model}
9 write /sys/class/android_usb/android0/iSerial ${ro.serialno}
10
11on property:sys.storage.ums_enabled=1
12 write /sys/class/android_usb/android0/enable 0
13 write /sys/class/android_usb/android0/functions mass_storage,adb
14 write /sys/class/android_usb/android0/enable 1
15
16on property:sys.storage.ums_enabled=0
17 write /sys/class/android_usb/android0/enable 0
18 write /sys/class/android_usb/android0/functions ${sys.usb.config}
19 write /sys/class/android_usb/android0/enable ${service.adb.root}
20
21on property:sys.usb.config=none
22 stop adbd
23 write /sys/class/android_usb/android0/enable 0
24 write /sys/class/android_usb/android0/bDeviceClass 0
25
26on property:sys.usb.config=mtp,adb
27 stop adbd
28 write /sys/class/android_usb/android0/enable 0
29 write /sys/class/android_usb/android0/functions mtp,adb
30 write /sys/class/android_usb/android0/enable 1
31 start adbd
32
33on property:sys.usb.config=adb
34 stop adbd
35 write /sys/class/android_usb/android0/enable 0
36 write /sys/class/android_usb/android0/functions adb
37 write /sys/class/android_usb/android0/enable ${service.adb.root}
38 start adbd