summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2025-08-13 21:56:50 +0200
committertechyguyperplexable <hlcj1234567@gmail.com>2025-08-25 16:08:16 +0100
commit1f658b279e6da35dddc5009a379e1745536151ea (patch)
tree0bc3b46fb91fac26f78f4a069df38af25d8b305d
parent61d95fe9d25b840258c5ceb0356e3d6dc387bb56 (diff)
universal9830: Migrate to Lineage Health IFastCharge
Change-Id: Ia2f1f213de2f2e5afd913e5de38712fddc386b49 Signed-off-by: Ksawlii <maja.blaszczak@proton.me>
-rw-r--r--BoardConfigCommon.mk3
-rw-r--r--device-common.mk6
-rw-r--r--manifest.xml5
-rw-r--r--ramdisk/etc/init/init.exynos990.rc4
4 files changed, 10 insertions, 8 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 540b46a..3badfc3 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -133,6 +133,9 @@ $(call soong_config_set,lineage_health,charging_control_charging_disabled,0)
$(call soong_config_set,lineage_health,charging_control_charging_bypass,true)
$(call soong_config_set,lineage_health,charging_control_charging_toggle,true)
$(call soong_config_set,lineage_health,charging_control_charging_deadline,false)
+$(call soong_config_set,lineage_health,fast_charge_node,/sys/class/sec/switch/afc_disable)
+$(call soong_config_set,lineage_health,fast_charge_value_none,1)
+$(call soong_config_set,lineage_health,fast_charge_value_fast_charge,0)
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 61865984
diff --git a/device-common.mk b/device-common.mk
index 41cb351..d47aa48 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -87,10 +87,6 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_PACKAGES += \
fastbootd
-# FastCharge
-PRODUCT_PACKAGES += \
- vendor.lineage.fastcharge@1.0-service.samsung
-
# Fingerprint
PRODUCT_PACKAGES += \
init.udfps.rc
@@ -369,7 +365,7 @@ PRODUCT_COPY_FILES += \
# Touch features
PRODUCT_PACKAGES += \
- vendor.lineage.touch@1.0-service.universal9830
+ vendor.lineage.touch-service.samsung
# TUI
PRODUCT_PACKAGES += \
diff --git a/manifest.xml b/manifest.xml
index 964db11..1c12ae9 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -222,13 +222,16 @@
</hal>
<hal format="aidl">
<name>vendor.lineage.touch</name>
- <transport>hwbinder</transport>
<version>1</version>
<interface>
<name>IGloveMode</name>
<instance>default</instance>
</interface>
<interface>
+ <name>IHighTouchPollingRate</name>
+ <instance>default</instance>
+ </interface>
+ <interface>
<name>ITouchscreenGesture</name>
<instance>default</instance>
</interface>
diff --git a/ramdisk/etc/init/init.exynos990.rc b/ramdisk/etc/init/init.exynos990.rc
index 15c60b9..dddcf34 100644
--- a/ramdisk/etc/init/init.exynos990.rc
+++ b/ramdisk/etc/init/init.exynos990.rc
@@ -460,8 +460,8 @@ on init
# Allow system processes to read / write power state.
chmod 0660 /sys/power/wakeup_count
- # Fastcharge switch
- chown system radio /sys/class/sec/switch/afc_disable
+# AFC permissions for fast charge
+ chown system radio /sys/class/sec/switch/afc_disable
# ZRAM setup
write /proc/sys/vm/page-cluster 0