Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop an android device from being charged programmatically?

Tags:

android

Is there an Android API for stop charging even though physically the charging is on?

like image 345
daniel Avatar asked Jul 11 '11 17:07

daniel


People also ask

How do I get my android to stop charging automatically?

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.

Can software prevent phone from charging?

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.

How do I stop my phone from charging?

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.


1 Answers

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.

like image 138
Kibber Avatar answered Sep 20 '22 21:09

Kibber