healthd: uses android.hardware.health@2.0-service_defaults

Test: builds
Test: boots
Change-Id: Ia47ba805aa0e8f7cd6c0a7f5877b3120b0265c78
This commit is contained in:
Yifan Hong 2018-07-10 13:07:08 -07:00
parent d5c59f729e
commit ef26fe4c16

View file

@ -24,12 +24,6 @@ cc_library_static {
cc_defaults {
name: "android.hardware.health@2.0-service_defaults",
init_rc: ["android.hardware.health@2.0-service.rc"],
vendor: true,
relative_install_path: "hw",
srcs: [
"HealthServiceDefault.cpp",
],
cflags: [
"-Wall",
@ -60,6 +54,13 @@ cc_binary {
name: "android.hardware.health@2.0-service",
defaults: ["android.hardware.health@2.0-service_defaults"],
vendor: true,
relative_install_path: "hw",
init_rc: ["android.hardware.health@2.0-service.rc"],
srcs: [
"HealthServiceDefault.cpp",
],
overrides: [
"healthd",
]
@ -67,35 +68,16 @@ cc_binary {
cc_binary {
name: "healthd",
defaults: ["android.hardware.health@2.0-service_defaults"],
init_rc: ["healthd.rc"],
srcs: [
"HealthServiceHealthd.cpp",
],
local_include_dirs: ["include"],
cflags: [
"-Wall",
"-Werror",
],
static_libs: [
"android.hardware.health@2.0-impl",
"android.hardware.health@1.0-convert",
"libhealthservice",
"libbatterymonitor",
"libhealthstoragedefault",
],
shared_libs: [
"libbase",
"libcutils",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"liblog",
"libutils",
"android.hardware.health@1.0",
"android.hardware.health@2.0",
],
vintf_fragments: [