usb: Rename the config to "charger" in charger mode
init.usb.configfs.rc has the same trigger condition of midi function. Rename the config name to "charger" to avoid triggerring twice of the midi function. Bug: 188744218 Test: USB enumerated in charger mode Signed-off-by: Kyle Tso <kyletso@google.com> Change-Id: Ica112fb4be66356901f6d5f21b79b9e648d49f35
This commit is contained in:
parent
5edd757a24
commit
d5fa4a5534
1 changed files with 2 additions and 2 deletions
|
@ -108,9 +108,9 @@ on charger
|
|||
setprop sys.usb.configfs 1
|
||||
|
||||
on property:ro.bootmode=charger
|
||||
setprop sys.usb.config midi
|
||||
setprop sys.usb.config charger
|
||||
|
||||
on property:sys.usb.config=midi && property:sys.usb.configfs=1
|
||||
on property:sys.usb.config=charger && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/idVendor 0x18d1
|
||||
write /config/usb_gadget/g1/idProduct 0x4eea
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "midi"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue