mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-29 04:07:47 +00:00
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:
committed by
TreeHugger Robot
parent
61dfc1e350
commit
d26a7befb8
@@ -103,9 +103,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"
|
||||
|
||||
Reference in New Issue
Block a user