Roy Luo f13115f44c usb: correct sys.usb.controller sysprop
system/core/init/init.cpp SetUsbController picks the first udc device if
there're multiple udc devices present on the system to populate
sys.usb.controller system property.
CONFIG_USB_DUMMY_HCD enabled in kernel-5.10 GKI would introduce a
dummy udc device named "dummy_udc.0". Depends on timing, the dummy
device might be picked up by the init process and incorrectly populate
sys.usb.controller.
This issue only applies to devices on kernel-5.10 GKI, the WAR is to
overwrite the sysprop if it's incorrectly populated by the dummy udc.

Bug: 333778731
Test: tested on Cheetah
Flag: EXEMPT bugfix
Change-Id: I7555dda7f0bb436200ef7cd8a46b785232187cfd
2024-08-27 23:39:24 +00:00
2022-04-13 20:48:30 +00:00
2022-03-24 17:44:37 +00:00
2023-12-18 23:36:44 -08:00
2021-05-20 17:54:35 +08:00
2024-01-19 06:36:07 +00:00
2023-07-05 08:41:34 +00:00
2023-04-27 21:21:06 +00:00
2023-09-18 03:09:39 +00:00
2021-05-19 13:35:26 +08:00
Description
Board tree for Google Tensor G2 devices
65 MiB
Languages
C++ 60.5%
Makefile 25.6%
PureBasic 9.1%
Shell 2.1%
C 1.5%
Other 1.2%