mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 18:37:19 +00:00
If fastbootd starts before the dwc3 device probes, fastbootd would be failed to enable USB gadget. This patch adds a dependency on the dwc3 device probing before setting the sys.usb.controller property. Bug: 220393297 Test: build pass, fastboot works Change-Id: I4e5b34354f19547f55acc53ccff0b54adce2d982
17 lines
432 B
Plaintext
17 lines
432 B
Plaintext
on init
|
|
wait /sys/devices/platform/11210000.usb/11210000.dwc3/driver 10
|
|
setprop sys.usb.controller "11210000.dwc3"
|
|
setprop sys.usb.configfs 1
|
|
|
|
on init && property:ro.debuggable=1 && property:ro.boot.mode=recovery
|
|
start recovery-console
|
|
|
|
service recovery-console /system/bin/sh
|
|
class core
|
|
console
|
|
disabled
|
|
user root
|
|
group root shell log readproc
|
|
seclabel u:r:su:s0
|
|
setenv HOSTNAME console
|