devon: Switch to AIDL ST NFC HAL

Change-Id: Ie92ad50f2bb7e98301e1e272dd1c03f93412d9a0
This commit is contained in:
Michael Bestas
2025-09-18 22:09:34 +03:00
committed by Deivid21
parent 92a36a186f
commit 68577f4f6f
7 changed files with 20 additions and 11 deletions

View File

@@ -37,6 +37,7 @@ BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD)
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296
# Properties
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/system_ext.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop

View File

@@ -27,15 +27,16 @@ TARGET_SCREEN_WIDTH := 1080
# Init
PRODUCT_PACKAGES += \
fstab.qcom \
init.mmi.overlay.rc \
init.oem.fingerprint2.sh \
init.mmi.overlay.rc
init.vendor.st21nfc.rc
# LiveDisplay
$(call soong_config_set,livedisplay_sysfs,enable_ab,true)
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc@1.2-service.st
android.hardware.nfc-service.st
# Overlay
PRODUCT_PACKAGES += \

View File

@@ -31,9 +31,6 @@ lib_fixups: lib_fixups_user_type = {
}
blob_fixups: blob_fixups_user_type = {
'vendor/etc/init/android.hardware.nfc@1.2-service.st-moto.rc': blob_fixup()
.regex_replace('on property:init.svc.vendor.stflashtool=stopped &&', 'on boot &&')
.regex_replace('class hal', 'override\n class hal'),
('vendor/lib64/camera/components/com.qti.node.gpu.so', 'vendor/lib64/hw/camera.qcom.so'): blob_fixup()
.binary_regex_replace(b'camera.mot.is.coming.cts', b'vendor.camera.coming.cts'),
'vendor/lib64/libBSTSWAD.so': blob_fixup()

View File

@@ -52,11 +52,6 @@ on charger
insmod /vendor/lib/modules/mmi_discrete_turbo_charger.ko
insmod /vendor/lib/modules/tcpc_sgm7220.ko
on boot
# Change ownership and permission of st nfc device
chown nfc nfc /dev/st21nfc
chmod 0660 /dev/st21nfc
service capsense_reset /system/vendor/bin/capsense_reset
class core
user system

View File

@@ -0,0 +1,14 @@
on boot
# Change ownership and permission of st nfc device
chown nfc nfc /dev/st21nfc
chmod 0660 /dev/st21nfc
on boot && property:ro.vendor.hw.nfc=st
start vendor.st_nfc_hal_service
service vendor.st_nfc_hal_service /vendor/bin/hw/android.hardware.nfc-service.st
override
class hal
user nfc
group nfc
disabled

2
product.prop Normal file
View File

@@ -0,0 +1,2 @@
# NFC
persist.nfc_cfg.config_file_name=libnfc-nci-st.conf

View File

@@ -196,7 +196,6 @@ vendor/usr/keylayout/uinput-fpc.kl
vendor/firmware/a630_sqe.fw
# NFC (ST)
vendor/etc/init/android.hardware.nfc@1.2-service.st.rc:vendor/etc/init/android.hardware.nfc@1.2-service.st-moto.rc
vendor/etc/libnfc-hal-st.conf
vendor/etc/libnfc-nci-st.conf
vendor/etc/st21nfc_conf_ds.txt