From 056538c0a9ec2bf1b641957ef7a260c465a0eb75 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 11 Jul 2018 17:04:12 -0700 Subject: recovery uses IHealth::getService recovery is_battery_ok function uses get_health_service(), which calls IHealth::getService("default") then IHealth::getService("backup"). - An OEM can provide the default instance by installing android.hardware.health@2.0-impl-.so to recovery partition. - If that's not found, the "backup" instance is provided to the recovery partition by default. Test: call is_battery_ok() in recovery, successfully get battery information. Bug: 80132328 Change-Id: Ibfee80636325a07bc20b24d044d007a60b3dd7c2 --- Android.bp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index 630c7965e..177eeb715 100644 --- a/Android.bp +++ b/Android.bp @@ -104,6 +104,7 @@ cc_defaults { ], shared_libs: [ + "android.hardware.health@2.0", "libbase", "libbootloader_message", "libcrypto", @@ -113,6 +114,8 @@ cc_defaults { "libfs_mgr", "libfusesideload", "libhidl-gen-utils", + "libhidlbase", + "libhidltransport", "liblog", "libpng", "libselinux", @@ -127,20 +130,11 @@ cc_defaults { "libminui", "libverifier", "libotautil", + + // external dependencies + "libhealthhalutils", "libvintf_recovery", "libvintf", - - // TODO(b/80132328): Remove the dependency on static health HAL. - "libhealthd.default", - "android.hardware.health@2.0-impl", - "android.hardware.health@2.0", - "android.hardware.health@1.0", - "android.hardware.health@1.0-convert", - "libhealthstoragedefault", - "libhidltransport", - "libhidlbase", - "libhwbinder_noltopgo", - "libbatterymonitor", ], } -- cgit v1.2.3