5747e228f7
This CL splits out healthd_mode_charger_nops for building charger.recovery. It doesn't change the functionality of the charger module under recovery, i.e. a) it still doesn't do much work other than reporting the battery status periodically; b) it keeps calling device-specific healthd functions (healthd_board_init and healthd_board_battery_update) via the statically linked HAL. Previously `charger -r` was used to indicate starting charger under recovery mode. This CL makes it a noop since we've changed the caller in recovery. Bug: 73660730 Bug: 114042635 Test: Boot into charger mode on walleye. Check that charger UI works. Test: Boot into recovery mode on walleye. Check that /system/bin/charger keeps working. Test: Run charger_test on walleye. Change-Id: Id91acfcc77ec315c2382392dc54e36c3e85de2eb
112 lines
2.2 KiB
Text
112 lines
2.2 KiB
Text
cc_library_headers {
|
|
name: "libhealthd_headers",
|
|
vendor_available: true,
|
|
recovery_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,
|
|
recovery_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",
|
|
|
|
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"],
|
|
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
init_rc: ["android.hardware.health@2.0-service.rc"],
|
|
srcs: [
|
|
"HealthServiceDefault.cpp",
|
|
],
|
|
|
|
overrides: [
|
|
"healthd",
|
|
]
|
|
}
|
|
|
|
cc_binary {
|
|
name: "healthd",
|
|
defaults: ["android.hardware.health@2.0-service_defaults"],
|
|
|
|
init_rc: ["healthd.rc"],
|
|
srcs: [
|
|
"HealthServiceHealthd.cpp",
|
|
],
|
|
local_include_dirs: ["include"],
|
|
|
|
shared_libs: [
|
|
"android.hardware.health@1.0",
|
|
],
|
|
|
|
vintf_fragments: [
|
|
"manifest_healthd.xml"
|
|
],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libhealthd_charger_nops",
|
|
|
|
srcs: [
|
|
"healthd_mode_charger_nops.cpp",
|
|
],
|
|
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
],
|
|
|
|
header_libs: [
|
|
"libhealthd_headers",
|
|
],
|
|
|
|
static_libs: [
|
|
"android.hardware.health@2.0-impl",
|
|
],
|
|
|
|
shared_libs: [
|
|
"android.hardware.health@2.0",
|
|
"libutils",
|
|
],
|
|
}
|