Files
device_xiaomi_rosemary/usb/Usb.cpp
Ash Blake 68edd8118c rosemary: usb: fix usb preferences by spoofing roles
Our device has broken roles: they appear to be permanently set to
NONE and don't respond to configfs writes. This causes Android to
not see the USB port as connected, breaking the USB settings.

To repair USB preferences, we spoof roles in the following fashion:
  - data role: DEVICE (if NONE)
  - port mode: UFP (if NONE)
2022-11-12 10:48:38 +03:00

22 KiB
Executable File