Unfortunately, that approach will become less useful in the future, as all USB-C cables that support USB 3 and/or high power contain a chip to advertise that fact[1]. (And then there are Thunderbolt cables, which look the same but require even more sophisticated electronics.)
[1] https://e2e.ti.com/blogs_/b/analogwire/archive/2016/03/07/wh...