Skip to content

Commit b997b97

Browse files
Abhijeet DharmapurikarFlinny
Abhijeet Dharmapurikar
authored andcommitted
healthd: Add support for HVDCP_3 chargers
HVDCP_3 is a high voltage DCP charger where the charger's voltage can be changed by issuing pulses on the D+/D- lines. Add support to recognize it and treat it as an AC power source. Change-Id: Ib719529904e8b7a676bbdc5f5953f0f9da6df3fa
1 parent 0ce6eff commit b997b97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

healthd/BatteryMonitor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
156156
{ "USB", ANDROID_POWER_SUPPLY_TYPE_USB },
157157
{ "USB_DCP", ANDROID_POWER_SUPPLY_TYPE_AC },
158158
{ "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
159+
{ "USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC },
159160
{ "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
160161
{ "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
161162
{ "USB_C", ANDROID_POWER_SUPPLY_TYPE_AC },

0 commit comments

Comments
 (0)