msm8974-common: Switch to health AIDL HAL

Change-Id: Icbb7194943388679abd25b2dbd105424c34496a1
This commit is contained in:
nyyu 2022-10-02 10:41:54 +02:00
parent 82f4e68e0d
commit a55aeeba2a
4 changed files with 11 additions and 3 deletions

View file

@ -47,7 +47,6 @@ MALLOC_SVELTE_FOR_LIBC32 := true
BOARD_BATTERY_DEVICE_NAME := "battery"
BOARD_CHARGING_CMDLINE_NAME := "androidboot.bootchg"
BOARD_CHARGING_CMDLINE_VALUE := "true"
WITH_LINEAGE_CHARGER := false
# Dexpreopt
ifeq ($(HOST_OS),linux)

View file

@ -89,6 +89,10 @@ PRODUCT_PACKAGES += \
libxml2 \
Snap
# Charger
PRODUCT_PACKAGES += \
charger_res_images_vendor
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl \
@ -116,8 +120,8 @@ PRODUCT_COPY_FILES += \
# Health
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl \
android.hardware.health@2.1-service
android.hardware.health-service.samsung \
android.hardware.health-service.samsung-recovery
# HIDL
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true

View file

@ -0,0 +1,3 @@
allow charger_vendor device:dir r_file_perms;
allow charger_vendor sysfs_battery:file r_file_perms;
allow charger_vendor sysfs_battery_writable:file r_file_perms;

View file

@ -3,6 +3,8 @@ type alarm_device, dev_type, mlstrustedobject;
type proc_bt_sleep, fs_type, proc_type;
type proc_last_kmsg, fs_type, proc_type;
type sysfs_battery, sysfs_type, fs_type;
type sysfs_battery_writable, sysfs_type, fs_type;
type sysfs_camera, fs_type, sysfs_type;
type sysfs_hal_pwr, fs_type, sysfs_type;
type sysfs_iio, fs_type, sysfs_type;