Wouldn't it make more sense to control it by software?
Android already allows you to only use an USB connection for charging. Setting this as the default when you are in an unknown place sounds reasonable.
Android already allows you to only use an USB connection for charging. Setting this as the default when you are in an unknown place sounds reasonable.
OTOH, a USB Y-cable physically has no data lines connected on the extra USB-A male connector; it thus provides a far stronger guarantee that there is no data travelling across them. (Not foolproof, but safer than a software-controlled switch.)
If you don't trust that cellphone won't transfer your private data via USB, I don't understand why you trust it not to do it via any wireless connection.