My Samsung galaxy A40 stopped charging by cable.
Wireless charge doesn't work too.
I replaced charging port and problem still persisted,then I tried hard reset by recovery mode and it starts charging again by cable.
After one week same problem: smartphone doesn't charge no more.
How can I fix it?