My phone thinks it's charging After upgrading my Galaxy Nexus to 4.0.4, it keeps thinking the cable is being plugged in and out all the time. The battery discharges at a normal rate, even though the screen keeps lighting up as a result of the random plug events. I don't think this is a hardware issue, but I've not completely discarded the idea either.

Has anyone experienced this? Is this a known issue? Anything I can do about it?
I faced a similar problem recently on my Nexus S upgraded to stock ICS.
The problems were:


Connecting the phone to the AC charger would sometimes show the phone to be charging, while the battery level was not actually increasing and sometimes the opposite.
Connecting the phone through USB to my laptop would allow it to charge, but my laptop used to throw a "Unrecognized USB Device" error.
The battery level displayed on my phone was misleading. For eg, the battery level was shown to be 44%, but when I restarted it, it suddenly dropped to 19%.
Shutting it down while connected to AC charger would cause it to hang on the shutting down screen till I remove the charger.
Connecting it to an AC charger while switched off would cause it to automatically turn on.


A little research on the net yielded this dicussion on the Google Product forums.
The alleged problem was the pin in the phone's USB port, and the solution was to bend it upwards a little using a penknife.

I was a little wary of taking things into my own hands, so I went to a nearby Samsung service center where they replaced the charging connector, and I haven't faced any problems since.