I tried this method with my LG G5 running Nougat and it doesn't work. I like the idea of it, and it seems to work initially in that it gets my phone to calm down after repeatedly detecting and alerting me to a USB connection, but the connection that it finally stabilizes is just the charging...