blob: 801973671c8dfe3fc61aaeb5e98f5615b20bbc9b [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
Matt Mowerec009e82015-01-30 13:00:49 -060011on property:sys.usb.config=none
Matt Mowerec009e82015-01-30 13:00:49 -060012 write /sys/class/android_usb/android0/enable 0
13 write /sys/class/android_usb/android0/bDeviceClass 0
14
HandyMenny37d42992014-10-26 22:15:59 +010015on property:sys.usb.config=mass_storage,adb
Matt Mowerec009e82015-01-30 13:00:49 -060016 write /sys/class/android_usb/android0/enable 0
HandyMenny37d42992014-10-26 22:15:59 +010017 write /sys/class/android_usb/android0/functions ${sys.usb.config}
18 write /sys/class/android_usb/android0/enable 1
19
20on property:sys.usb.config=mtp,adb
21 write /sys/class/android_usb/android0/enable 0
22 write /sys/class/android_usb/android0/functions ${sys.usb.config}
Matt Mowerec009e82015-01-30 13:00:49 -060023 write /sys/class/android_usb/android0/enable 1
24 start adbd
25
26on property:sys.usb.config=adb
Matt Mowerec009e82015-01-30 13:00:49 -060027 write /sys/class/android_usb/android0/enable 0
HandyMenny37d42992014-10-26 22:15:59 +010028 write /sys/class/android_usb/android0/functions ${sys.usb.config}
Matt Mowerec009e82015-01-30 13:00:49 -060029 write /sys/class/android_usb/android0/enable ${service.adb.root}
30 start adbd