mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Adds a thread that handles add uevents of USB devices, and enables auto suspend on that USB device (i.e. set power/control to auto) if the device idProduct/idVendor is whitelisted. The android kernel will already autosuspend audio devices, however this enables autosuspend for the Google USB-C to 3.5mm adapter, which presents an HID-only interface when no 3.5mm headset is connected. Test: with the selinux and .rc changes for access permission - MIR without headset: power/control set to auto - MIR with headset: power/control set to auto - regular mouse: power/control set to on Bug: 38352281 Change-Id: I81572584ea02f6bdc814e70ab3439ab86c34a50a