From 12df1b9508ecc27accad7b46bb7cd773e0ba73ab Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Mon, 25 Sep 2017 17:25:00 -0700 Subject: [PATCH] healthd provides IHealth/backup. Test: lshal shows IHealth/backup Bug: 62229583 Change-Id: Ibffdd2ec392682385ed491df22084a57280e1513 --- healthd/Android.bp | 26 ++++++++++++++++++++ healthd/Android.mk | 59 ---------------------------------------------- 2 files changed, 26 insertions(+), 59 deletions(-) diff --git a/healthd/Android.bp b/healthd/Android.bp index d3488665e..4b3274ca9 100644 --- a/healthd/Android.bp +++ b/healthd/Android.bp @@ -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", + ], + +} diff --git a/healthd/Android.mk b/healthd/Android.mk index 8c3dcfd50..c1a82c29d 100644 --- a/healthd/Android.mk +++ b/healthd/Android.mk @@ -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)