Skip to content

Commit

Permalink
porsche: Build Lineage Health HAL
Browse files Browse the repository at this point in the history
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
  • Loading branch information
mikeNG authored and resist15 committed Nov 23, 2023
1 parent 3c17ae9 commit aa770a5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ KERNEL_CUSTOM_LLVM := true
KERNEL_FULL_LLVM := true
KERNEL_DEFCONFIG := lahaina-qgki_defconfig

# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/oplus_chg/battery/mmi_charging_enable

# OTA Assert
TARGET_OTA_ASSERT_DEVICE := porsche,RE58B2L1

Expand Down
4 changes: 4 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ PRODUCT_PACKAGES += \
[email protected] \
[email protected]

# Lineage Health
PRODUCT_PACKAGES += \
vendor.lineage.health-service.default

# Manifests
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/configs/vintf/manifest_lahaina.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
Expand Down
3 changes: 3 additions & 0 deletions init/ueventd.porsche.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
# SPDX-License-Identifier: Apache-2.0
#

# Charger
/sys/class/oplus_chg/* mmi_charging_enable 0660 system system

# WiFi
firmware_directories /odm/etc/wifi/
1 change: 1 addition & 0 deletions sepolicy/vendor/genfs_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
genfscon proc /wireless u:object_r:vendor_proc_wireless:s0
genfscon sysfs /devices/platform/soc/soc:oplus,chg_gki/power_supply u:object_r:vendor_sysfs_usb_supply:s0
genfscon sysfs /devices/platform/soc/soc:oplus,chg_intf/oplus_chg u:object_r:vendor_sysfs_usb_supply:s0
genfscon sysfs /devices/virtual/oplus_chg u:object_r:vendor_sysfs_usb_supply:s0
genfscon sysfs /devices/virtual/oplus_chg/usb u:object_r:vendor_sysfs_usb_supply:s0
genfscon sysfs /devices/virtual/oplus_chg/battery u:object_r:vendor_sysfs_battery_supply:s0
genfscon sysfs /devices/virtual/oplus_chg/battery/voocchg_ing u:object_r:vendor_sysfs_battery_supply:s0
Expand Down

0 comments on commit aa770a5

Please sign in to comment.