Is there an Android API for stop charging even though physically the charging is on?
Toggle the Enable switch at the top of the screen, then Battery Charge Limit will ask for Superuser access, so tap "Grant" on the popup. Once you're done there, you're all set to go.
The apps on your phone could also be preventing it from charging, since they may be using a lot of power because you have too many open. There's an issue with a specific app. There could be an issue with an Android OS update preventing your phone from charging properly.
To do that, you need to enable Developer Mode. Go to Settings, and use the search field to locate the “Disable USB audio routing” option. Then, simply toggle off the option. Alternatively, you can also go to Settings, and select System, and then tap About Phone.
Reading previous answers, it looks like there's no way to do this exclusively in software. However, it should be relatively easy to do it with a little hardware help - i.e. by using any Bluetooth- or WiFi-enabled smart electrical switch with open API. The phone could then switch the charger on or off programmatically whenever it feels like it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With