msm8974-common: Switch to health AIDL HAL
Change-Id: Icbb7194943388679abd25b2dbd105424c34496a1
This commit is contained in:
parent
82f4e68e0d
commit
a55aeeba2a
4 changed files with 11 additions and 3 deletions
|
@ -47,7 +47,6 @@ MALLOC_SVELTE_FOR_LIBC32 := true
|
||||||
BOARD_BATTERY_DEVICE_NAME := "battery"
|
BOARD_BATTERY_DEVICE_NAME := "battery"
|
||||||
BOARD_CHARGING_CMDLINE_NAME := "androidboot.bootchg"
|
BOARD_CHARGING_CMDLINE_NAME := "androidboot.bootchg"
|
||||||
BOARD_CHARGING_CMDLINE_VALUE := "true"
|
BOARD_CHARGING_CMDLINE_VALUE := "true"
|
||||||
WITH_LINEAGE_CHARGER := false
|
|
||||||
|
|
||||||
# Dexpreopt
|
# Dexpreopt
|
||||||
ifeq ($(HOST_OS),linux)
|
ifeq ($(HOST_OS),linux)
|
||||||
|
|
|
@ -89,6 +89,10 @@ PRODUCT_PACKAGES += \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
Snap
|
Snap
|
||||||
|
|
||||||
|
# Charger
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
charger_res_images_vendor
|
||||||
|
|
||||||
# DRM
|
# DRM
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.drm@1.0-impl \
|
android.hardware.drm@1.0-impl \
|
||||||
|
@ -116,8 +120,8 @@ PRODUCT_COPY_FILES += \
|
||||||
|
|
||||||
# Health
|
# Health
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.health@2.1-impl \
|
android.hardware.health-service.samsung \
|
||||||
android.hardware.health@2.1-service
|
android.hardware.health-service.samsung-recovery
|
||||||
|
|
||||||
# HIDL
|
# HIDL
|
||||||
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
|
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
|
||||||
|
|
3
sepolicy/common/charger_vendor.te
Normal file
3
sepolicy/common/charger_vendor.te
Normal 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;
|
|
@ -3,6 +3,8 @@ type alarm_device, dev_type, mlstrustedobject;
|
||||||
type proc_bt_sleep, fs_type, proc_type;
|
type proc_bt_sleep, fs_type, proc_type;
|
||||||
type proc_last_kmsg, 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_camera, fs_type, sysfs_type;
|
||||||
type sysfs_hal_pwr, fs_type, sysfs_type;
|
type sysfs_hal_pwr, fs_type, sysfs_type;
|
||||||
type sysfs_iio, fs_type, sysfs_type;
|
type sysfs_iio, fs_type, sysfs_type;
|
||||||
|
|
Loading…
Add table
Reference in a new issue