1cf853fb65
Removes healthd from the build if -service.override is provided. This encourages developers to deprecate healthd for their devices when they can. When -service.override is used, framework manifest needs to remove the /backup instance as well; this can be done by including manifest_healthd_exclude.xml in DEVICE_FRAMEWORK_MANIFEST_FILE. Test: build and boot on 2016/2017 Pixel devices Test: build and boot on a new device Test: lshal and vts_treble_vintf_test on all these devices Bug: 77541952 Change-Id: I25744feaad3034441cd7a96a5343d4ce3eedc288
104 lines
2.2 KiB
Text
104 lines
2.2 KiB
Text
cc_library_headers {
|
|
name: "libhealthd_headers",
|
|
vendor_available: true,
|
|
export_include_dirs: ["include"],
|
|
header_libs: ["libbatteryservice_headers"],
|
|
export_header_lib_headers: ["libbatteryservice_headers"],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libbatterymonitor",
|
|
srcs: ["BatteryMonitor.cpp"],
|
|
cflags: ["-Wall", "-Werror"],
|
|
vendor_available: true,
|
|
export_include_dirs: ["include"],
|
|
shared_libs: [
|
|
"libutils",
|
|
"libbase",
|
|
],
|
|
header_libs: ["libhealthd_headers"],
|
|
export_header_lib_headers: ["libhealthd_headers"],
|
|
}
|
|
|
|
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",
|
|
"-Werror",
|
|
],
|
|
|
|
static_libs: [
|
|
"android.hardware.health@2.0-impl",
|
|
"android.hardware.health@1.0-convert",
|
|
"libhealthservice",
|
|
"libhealthstoragedefault",
|
|
"libbatterymonitor",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libhwbinder",
|
|
"liblog",
|
|
"libutils",
|
|
"android.hardware.health@2.0",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.health@2.0-service",
|
|
defaults: ["android.hardware.health@2.0-service_defaults"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.health@2.0-service.override",
|
|
defaults: ["android.hardware.health@2.0-service_defaults"],
|
|
|
|
overrides: [
|
|
"healthd",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "healthd",
|
|
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",
|
|
],
|
|
|
|
}
|