Read usb input power

Is there any way to read the power input from the USB connection in Android?

For example, plug a micro-USB cable into your phone from the computer’s USB output, AC charger or something similar and read the voltage and output of the amplifier?

I don’t know where to start looking for this information, and when I search, I can only find batteries, widgets or applications for energy consumption - this is not what I'm looking for, I want to be able to read how much energy is sent through the connected USB interface.

Many thanks.

+5
source share
1 answer

, BatteryManager, . , , BatteryManager, , , ( USB). , / , % , ,

() : android, /. , . java. , BatteryManager BatteryStatsImpl .

+1

All Articles