os-issue-tracker
os-issue-tracker copied to clipboard
Explore if (ab)using water protection in USB controller can be used to enhance USB restrictions
USB port could be electrically disabled if we can do this, similar to how it works on iPhones. May or may not be feasible.
My Graphene-based Pixel 5a already does this, or at least displays a message saying that it has disabled the USB port after moisture got into it.
The feature request here is that water protection feature could potentially be manually invoked when you disable USB accessories in Security options to further disable the USB-C port instead of just blocking the data lines.
Why would you use water protection for this? Is it not possible to just implement separately?
Because it's already available infrastructure that can possibly be made to work with kernel USB restrictions, instead of rebuilding the wheel.