You can never trust software to block data flows. There is no such thing as "charge-only" as long as the cable still has data wires in it.
> We found that in some cases the "charge-only" USB mode may also fail to block AT commands.
> We found that in some cases the "charge-only" USB mode may also fail to block AT commands.
It would only work on USB-C host devices as well though, USB-A would still revert to either 500mA as long as the data lines are tied with a resistor
Thus various companies have made devices that conditionally apply said short.
Here is one example: https://www.startech.com/Cables/USB-2.0/USB-Adapters/USB-2-F...