Chosen Solution
My samsung galaxy s6 only charges through a computer and not through an outlet. I had encountered this problem last week and fixed it with a factory reset. It then worked for an entire week and suddenly, today, it stopped working again. I hadn’t downloaded anything new nor changed anything and yet the problem occurred again.
Hi I got the same problem and was so upset bc all my battery 0% I cannot access to anything, I finally got this idea to connect my phone on the pc then proceed these step below: Try disabling the USB debugging mode from the developer option settings. Tap Settings. Tap on “About Device” menu and then tap on “Build Number” 7 times. You will get a prompt that says that you’re a developer now. Go back to the Settings menu then tap on Developer options. From the Developer options, uncheck the box that says USB Debugging. which this could help some :)