sm7125-common: Build Lineage Health HAL

Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
fourteen-wip
Michael Bestas 2 years ago committed by Simon1511
parent 220a5ee0bb
commit 55bc3d36ea
  1. 6
      BoardConfigCommon.mk
  2. 4
      common.mk
  3. 3
      rootdir/etc/init.qcom.rc
  4. 1
      sepolicy/vendor/genfs_contexts
  5. 2
      sepolicy/vendor/hal_lineage_health_default.te

@ -173,6 +173,12 @@ BOARD_USES_QCOM_HARDWARE := true
# Samsung
BOARD_VENDOR := samsung
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/power_supply/battery/batt_slate_mode
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED := 0
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED := 1
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
# DRM
TARGET_ENABLE_MEDIADRM_64 := true

@ -188,6 +188,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
vendor.lineage.fastcharge@1.0-service.samsung
# Lineage Health
PRODUCT_PACKAGES += \
vendor.lineage.health-service.default
# FlipFlap
PRODUCT_PACKAGES += \
FlipFlap

@ -88,6 +88,9 @@ on init
chown root system /sys/fs/cgroup/memory/bg/tasks
chmod 0660 /sys/fs/cgroup/memory/bg/tasks
# Charger
chown system system /sys/class/power_supply/battery/batt_slate_mode
on post-fs
chmod 0755 /sys/kernel/debug/tracing

@ -23,6 +23,7 @@ genfscon sysfs /devices/virtual/lcd/panel/
genfscon sysfs /devices/platform/soc/9800000.qcom,npu/subsys6/ u:object_r:sysfs_npu:s0
genfscon sysfs /devices/platform/soc/soc:battery/power_supply/ u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/soc/soc:battery/power_supply/battery/lcd u:object_r:sysfs_battery_writable:s0
genfscon sysfs /devices/platform/soc/soc:battery/power_supply/battery/batt_slate_mode u:object_r:sysfs_battery_writable:s0
genfscon sysfs /devices/platform/soc/soc:sec-direct-charger/power_supply/ u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/soc/890000.i2c/i2c-22/22-0049/ u:object_r:sysfs_battery:s0
genfscon sysfs /devices/platform/soc/890000.i2c/i2c-22/22-0057/ u:object_r:sysfs_battery:s0

@ -0,0 +1,2 @@
rw_dir_file(hal_lineage_health_default, sysfs_battery_writable)
r_dir_file(hal_lineage_health_default, sysfs_battery)
Loading…
Cancel
Save