mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 13:49:45 +00:00
Fix code that incorrectly transforms a hidl_string to String8 by using size of another field. Test: none Fixes: 161210887 Change-Id: I54a11e9beab4c825905dda37b121e1fc85658215
Implement the 2.1 HAL instead!
It is strongly recommended that you implement the 2.1 HAL directly. See
hardware/interfaces/health/2.1/README.md for more details.
Implement Health 1.0 HAL
-
Install common binderized service. The binderized service
dlopen()s passthrough implementations on the device, so there is no need to write your own.# Install default binderized implementation to vendor. PRODUCT_PACKAGES += android.hardware.health@1.0-service -
Add proper VINTF manifest entry to your device manifest. Example:
<hal format="hidl"> <name>android.hardware.health</name> <transport>hwbinder</transport> <version>1.0</version> <interface> <name>IHealth</name> <instance>default</instance> </interface> </hal> -
Install the proper passthrough implemetation.
-
If you want to use the default implementation (with default
libhealthd), add the following todevice.mk:PRODUCT_PACKAGES += \ android.hardware.health@1.0-impl -
Otherwise, if you have a customized
libhealthd.<board>:-
Define your passthrough implementation. Example (replace
<device>and<board>accordingly):cc_library_shared { name: "android.hardware.health@1.0-impl-<device>", vendor: true, relative_install_path: "hw", static_libs: [ "android.hardware.health@1.0-impl-helper", "android.hardware.health@1.0-convert", "libhealthd.<board>", ], } -
Add to
device.mk.PRODUCT_PACKAGES += android.hardware.health@1.0-impl-<device> -
Define appropriate SELinux permissions.
-
-