blob: 8ef20e0ec9ca7dddb4708e023d38087c9a4c6b48 [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
Matt Mower84830ce2017-02-14 20:36:16 -06004 write /sys/class/android_usb/android0/idProduct D001
Matt Mowerec009e82015-01-30 13:00:49 -06005 write /sys/class/android_usb/android0/f_ffs/aliases adb
Matt Mower84830ce2017-02-14 20:36:16 -06006 write /sys/class/android_usb/android0/functions adb
Matt Mowerec009e82015-01-30 13:00:49 -06007 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