sm8250-common: Import Xiaomi TouchFeature service

This commit is contained in:
johnmart19
2025-05-09 15:08:11 +03:00
committed by bntxperses
parent 9be65e2af7
commit 02271875b7
6 changed files with 122 additions and 0 deletions

View File

@@ -4260,6 +4260,40 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.xiaomi.hardware.touchfeature@1.0-impl",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so",
],
shared_libs: [
"libhidlbase",
"libhidltransport",
"libutils",
"liblog",
"libcutils",
"libhardware",
"libbase",
"libbinder",
"vendor.xiaomi.hardware.touchfeature@1.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
relative_install_path: "hw",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "jcos_nq_client",
owner: "xiaomi",
@@ -13614,6 +13648,40 @@ cc_prebuilt_binary {
soc_specific: true,
}
cc_prebuilt_binary {
name: "vendor.xiaomi.hardware.touchfeature@1.0-service",
owner: "xiaomi",
target: {
android_arm64: {
srcs: [
"proprietary/vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service",
],
shared_libs: [
"liblog",
"libcutils",
"libbase",
"libutils",
"libbinder",
"libhardware",
"libhidlbase",
"libhidltransport",
"vendor.xiaomi.hardware.touchfeature@1.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
strip: {
none: true,
},
prefer: true,
relative_install_path: "hw",
soc_specific: true,
}
cc_prebuilt_binary {
name: "ims_rtp_daemon",
owner: "xiaomi",
@@ -14574,6 +14642,35 @@ cc_prebuilt_binary {
soc_specific: true,
}
cc_prebuilt_binary {
name: "toucheventcheck",
owner: "xiaomi",
target: {
android_arm64: {
srcs: [
"proprietary/vendor/bin/toucheventcheck",
],
shared_libs: [
"libutils",
"libhardware",
"liblog",
"libcutils",
"libbinder",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
strip: {
none: true,
},
prefer: true,
soc_specific: true,
}
cc_prebuilt_binary {
name: "vppservice",
owner: "xiaomi",

Binary file not shown.

BIN
proprietary/vendor/bin/toucheventcheck vendored Executable file

Binary file not shown.

View File

@@ -0,0 +1,21 @@
# Copyright (c) 2017 Xiaomi, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Xiaomi, Inc.
#
on boot
chown system system /dev/xiaomi-touch
chmod 0664 /dev/xiaomi-touch
chown system system /sys/class/touch/tp_dev/fod_status
chmod 0664 /sys/class/touch/tp_dev/fod_status
service touchfeature-hal-1-0 /vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service
class hal
user system
group system system
onrestart restart touchfeature
service toucheventcheck /vendor/bin/toucheventcheck
class main
user root
group system
oneshot

View File

@@ -96,6 +96,7 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.qti.rmt_storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.rmt_storage.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.qti.secure_element@1.2-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.secure_element@1.2-service.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.qti.tftp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.tftp.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vppservice.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vppservice.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/izat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat.conf \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf \
@@ -258,6 +259,7 @@ PRODUCT_PACKAGES += \
vendor.qti.hardware.qseecom@1.0-impl \
vendor.qti.hardware.qteeconnector@1.0-impl \
vendor.qti.hardware.soter@1.0-impl \
vendor.xiaomi.hardware.touchfeature@1.0-impl \
jcos_nq_client \
lib-imscmservice \
lib-imsdpl \
@@ -577,6 +579,7 @@ PRODUCT_PACKAGES += \
vendor.qti.hardware.tui_comm@1.0-service-qti \
vendor.qti.media.c2@1.0-service \
vendor.qti.secure_element@1.2-service \
vendor.xiaomi.hardware.touchfeature@1.0-service \
ims_rtp_daemon \
imsdatadaemon \
imsqmidaemon \
@@ -609,6 +612,7 @@ PRODUCT_PACKAGES += \
tftp_server \
thermal-engine \
time_daemon \
toucheventcheck \
vppservice \
wifidisplayhalservice \
xtra-daemon \