cecio / USBvalve

Expose USB activity on the fly
MIT License
1.22k stars 43 forks source link

fast charge detection #42

Closed Xfaiv closed 4 months ago

Xfaiv commented 5 months ago

Is it possible to create a software modification to detect if the connected USB port supports fast charge? at least on a theoretical level, I'm not asking to activate the mode, I would expect that the Arduino would fry. I know of the existence of some USB testers that are capable of this.

Thanks in advance for your trouble

Zorakie commented 5 months ago

Would that be even possible? I know from some older articles 'maybe things have changed...?), that basically every manufacturer implements their own proprietary protocol, so even if on paper the adapters may be the same in terms of specs, afaik, if you take like Xiaomi charger and you try to charge Samsung phone, it will charge, but slowly, not activating the fast charge, just because the phone can not agree with that vendor-locked charger on the voltage, amperage, etc...

cecio commented 5 months ago

Hey, thanks for your question. TBH I’m not super aligned on the matter and this looks like more a feature detection question, than a security one (and USBvalve is meant to be a security device). So let’s say is not on the roadmap, but I’ll keep this in mind anyway. Thanks