ANDROID: GKI: add vendor hooks to avoid unsupported usb device probing
In GKI config, a lot of USB class drivers are buitin,
these drivers are automatically loaded, so we cannot disable devices probed
if the devices are connected.
We need to disable unsupported USB devices for security reason,
so need this vendor hook to ignore to bind drivers on static id_table.
if vendor hook return bypass as true, then ignore match up staic id_table.
But dynamic id is still allowed since it's configured by userspace.
Bug: 278041365
Change-Id: I1f5ca166fd49ecbc7fd406ceff1f80f3646596db
Signed-off-by:
Norihiko Hama <Norihiko.Hama@alpsalpine.com>
Loading