This problem started like 3 weeks ago. I locked my phone and left to do some stuff, and when I came back and unlocked it, the phone thought it was being charged. I plugged it to the charger and unplugged it to see if the problem would stop. It didn't. I plugged it in again and left it there for a few minutes, and when I checked, it was discharging. I pulled out the battery and put it back in after a few minutes and the phone turned on by itself. It is worth mentioning that I'm running Carbon 4.4 from NovaFusion, and you may already know that when the phone is plugged to the charger, it reboots if you power it off. When it turned on, it still thought it was being charged. It discharged after a few minutes, and I left it plugged in to charge while off... And when it turned it back on, the problem stopped. After that, sometimes when I plug it to the charger, it won't detect it, I have to reboot the phone for it to start charging.
A few days ago I turned it off with 85% battery left, and when it turned it back on it showed 0%... And now my phone shuts down without warning randomly. It also freezes and reboots when I plug it to the charger sometimes. I've tried changing the ROM, (to golden-guy's Omni and stock), but those problems persist.
That's why I ask, is it a bad battery o a damaged charging port? Thanks in advance.
Forgot to add, sometimes when it freezes and reboots, it freezes on bootanimation and restarts itself again...