[DO NOT MERGE] Usb Gadget HAL: modify monitorfs behavior
Currently, monitorffs will pull up gadget when the ffs
endpoints are ready. When the device change the data
role from peripheral to host, the pullup behavior will
still occur. It will cause the host mode and peripheral
mode start in the same time.
This patch will check typec and USB gadget state before
pulling up gadget.
Bug: 263435622
Bug: 266635426
Test: verified pass
Change-Id: Ibd8d3c3c34b91657327903e1063351448722e41c
Merged-In: Ibd8d3c3c34b91657327903e1063351448722e41c
Signed-off-by: Ray Chi <raychi@google.com>
(cherry picked from commit 502013d5347849aa9a2ec95d114998c22b646b17)
2 files changed