Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - determine the charging voltage

Tags:

android

usb

I want to find out the value of the charging voltage for my Android device. Is there a way in Android to somehow get this value programmatically?

like image 871
kaktuch Avatar asked Feb 01 '26 09:02

kaktuch


1 Answers

The USB voltage specification is nominally 5 volts. If you monitor the voltage manually the current available to the device can vary from 5.5 volts down to 4.5 volts depending on the charger and cable wire diameter and length.

I presume that the internal charge control chipset watches the voltage available and resistance across the wiring to limit the possible current it can pull from the line.

As far as I know, this information does not exist in the android source.

like image 113
Bill Avatar answered Feb 02 '26 22:02

Bill