health HAL: overrides healthd.

healthd should not be installed on the device

Test: lshal -i | grep IHealth/backup fails
Test: lshal debug android.hardware.health@2.0::IHealth/backup
      shows nothing
Test: vts_treble_vintf_test shows nothing about /backup
      instance

Bug: 77541952
Change-Id: I1479da3394ee7bb0f3fba8b6bcb4e12b50ed8190
This commit is contained in:
Yifan Hong
2018-04-05 13:44:32 -07:00
parent 6452bcd371
commit 6c41af4807
3 changed files with 11 additions and 0 deletions

View File

@@ -154,6 +154,9 @@ DEVICE_FRAMEWORK_MANIFEST_FILE := device/google/wahoo/framework_manifest.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := device/google/wahoo/device_framework_matrix.xml
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
# Remove health /backup instance
DEVICE_FRAMEWORK_MANIFEST_FILE += system/libhidl/vintfdata/manifest_healthd_exclude.xml
# Use mke2fs to create ext4 images
TARGET_USES_MKE2FS := true

View File

@@ -183,3 +183,7 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.drm@
# Remove Widevine HAL 1.0
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.drm@1.0-service.widevine.rc)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.drm@1.0-service.widevine)
# Remove healthd
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/healthd)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/init/healthd.rc)

View File

@@ -46,4 +46,8 @@ cc_binary {
],
header_libs: ["libhealthd_headers"],
overrides: [
"healthd",
],
}