healthd provides IHealth/backup.

Test: lshal shows IHealth/backup
Bug: 62229583
Change-Id: Ibffdd2ec392682385ed491df22084a57280e1513
This commit is contained in:
Yifan Hong 2017-09-25 17:25:00 -07:00
parent 3f5b43789c
commit 12df1b9508
2 changed files with 26 additions and 59 deletions

View File

@ -74,3 +74,29 @@ cc_binary {
"android.hardware.health@2.0",
],
}
cc_binary {
name: "healthd",
srcs: ["HealthService.cpp"],
local_include_dirs: ["include"],
cflags: ["-DHEALTH_INSTANCE_NAME=\"backup\""],
static_libs: [
"android.hardware.health@2.0-impl",
"android.hardware.health@1.0-convert",
"libbatterymonitor",
],
shared_libs: [
"libbase",
"libcutils",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"liblog",
"libutils",
"android.hardware.health@2.0",
],
}

View File

@ -2,27 +2,6 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
healthd_mode_android.cpp \
BatteryPropertiesRegistrar.cpp
LOCAL_MODULE := libhealthd_android
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := \
libbatterymonitor \
libbatteryservice \
libutils \
libbase \
libcutils \
liblog \
libc \
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libhealthd_draw
@ -174,41 +153,3 @@ include $(BUILD_PHONY_PACKAGE)
_add-charger-image :=
_img_modules :=
endif # LOCAL_CHARGER_NO_UI
### healthd ###
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
healthd_common.cpp \
healthd.cpp \
LOCAL_MODULE := healthd
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
ifneq ($(BOARD_PERIODIC_CHORES_INTERVAL_FAST),)
LOCAL_CFLAGS += -DBOARD_PERIODIC_CHORES_INTERVAL_FAST=$(BOARD_PERIODIC_CHORES_INTERVAL_FAST)
endif
ifneq ($(BOARD_PERIODIC_CHORES_INTERVAL_SLOW),)
LOCAL_CFLAGS += -DBOARD_PERIODIC_CHORES_INTERVAL_SLOW=$(BOARD_PERIODIC_CHORES_INTERVAL_SLOW)
endif
LOCAL_STATIC_LIBRARIES := \
libhealthd_android \
libbatterymonitor \
libbatteryservice \
android.hardware.health@1.0-convert \
LOCAL_SHARED_LIBRARIES := \
libbinder \
libbase \
libutils \
libcutils \
liblog \
libm \
libc \
libhidlbase \
libhidltransport \
android.hardware.health@1.0 \
include $(BUILD_EXECUTABLE)