diff --git a/Android.bp b/Android.bp index 39c4434..cbe010a 100644 --- a/Android.bp +++ b/Android.bp @@ -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", diff --git a/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service b/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service new file mode 100755 index 0000000..076778b Binary files /dev/null and b/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service differ diff --git a/proprietary/vendor/bin/toucheventcheck b/proprietary/vendor/bin/toucheventcheck new file mode 100755 index 0000000..0d0dcb9 Binary files /dev/null and b/proprietary/vendor/bin/toucheventcheck differ diff --git a/proprietary/vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc b/proprietary/vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc new file mode 100644 index 0000000..9157f74 --- /dev/null +++ b/proprietary/vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc @@ -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 diff --git a/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so b/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so new file mode 100644 index 0000000..cb055a1 Binary files /dev/null and b/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so differ diff --git a/sm8250-common-vendor.mk b/sm8250-common-vendor.mk index 9590732..a25039d 100644 --- a/sm8250-common-vendor.mk +++ b/sm8250-common-vendor.mk @@ -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 \