Is it possible to identify if any USB cable is connected to the charging port of android phone with another end of cable as loosely connected?
I'm able to find when device is connected or disconnected from AC/USB power or if any media is mounted or unmounted but in all those cases, there is always a signal from another end which tells android about what type of connection it is.
But what if another end is not giving any signal? What if its a broken cable and hence don't have anything on the other end but yet connected into android charging port? Is it possible to find out such cases by some hardware level monitoring or something?