healthd: charger use health 2.0 HAL
Test: charger_test
Test: off-mode charging, charger runs correctly
Bug: 63702641
Bug: 69268160
Change-Id: I7dfc83ae4020ada7e9d11ab955f648abb74f435b
diff --git a/healthd/Android.mk b/healthd/Android.mk
index c1a82c2..d725f73 100644
--- a/healthd/Android.mk
+++ b/healthd/Android.mk
@@ -47,6 +47,8 @@
$(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := \
+ android.hardware.health@2.0 \
+ android.hardware.health@1.0 \
libminui \
libpng \
libz \
@@ -74,7 +76,6 @@
endif
LOCAL_SRC_FILES := \
- healthd_common.cpp \
charger.cpp \
LOCAL_MODULE := charger
@@ -96,6 +97,13 @@
endif
LOCAL_STATIC_LIBRARIES := \
+ android.hardware.health@2.0-impl \
+ android.hardware.health@2.0 \
+ android.hardware.health@1.0 \
+ libhidltransport \
+ libhidlbase \
+ libhwbinder \
+ libvndksupport \
libhealthd_charger \
libhealthd_draw \
libbatterymonitor \