health: convert to aidl hal

* hardware/interfaces/health/aidl/default
This commit is contained in:
Konsta
2023-07-28 22:09:01 +03:00
parent cc4df73839
commit b11baea4dd
11 changed files with 137 additions and 54 deletions

View File

@@ -1,33 +1,32 @@
// Copyright (C) 2021-2022 KonstaKANG
// Copyright (C) 2018 The Android Open Source Project
// Copyright (C) 2023 KonstaKANG
//
// SPDX-License-Identifier: Apache-2.0
cc_binary {
name: "android.hardware.health@2.0-service.rpi",
init_rc: ["android.hardware.health@2.0-service.rpi.rc"],
vintf_fragments: ["android.hardware.health@2.0-service.rpi.xml"],
proprietary: true,
name: "android.hardware.health-service.rpi",
relative_install_path: "hw",
vendor: true,
init_rc: ["android.hardware.health-service.rpi.rc"],
vintf_fragments: ["android.hardware.health-service.rpi.xml"],
srcs: [
"HealthService.cpp",
],
cflags: [
"-Wall",
"-Werror",
"HealthImpl.cpp",
"main.cpp",
],
static_libs: [
"android.hardware.health@2.0-impl",
"android.hardware.health@1.0-convert",
"libhealthservice",
"android.hardware.health-translate-ndk",
"libbatterymonitor",
"libhealthstoragedefault",
"libhealthloop",
"libhealth_aidl_impl",
],
shared_libs: [
"libbase",
"libbinder_ndk",
"libcutils",
"libhidlbase",
"liblog",
"libutils",
"android.hardware.health@2.0",
"android.hardware.health-V1-ndk",
],
header_libs: ["libhealthd_headers"],
overrides: ["charger"],
}