diff --git a/Android.bp b/Android.bp index 8fcc05c..734fe9a 100644 --- a/Android.bp +++ b/Android.bp @@ -40889,6 +40889,30 @@ cc_prebuilt_binary { device_specific: true, } +cc_prebuilt_binary { + name: "touch_report", + owner: "xiaomi", + target: { + android_arm64: { + srcs: [ + "proprietary/odm/bin/touch_report", + ], + shared_libs: [ + "libtouchreport", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + strip: { + none: true, + }, + prefer: true, + device_specific: true, +} + cc_prebuilt_binary { name: "toucheventcheck", owner: "xiaomi", @@ -41185,6 +41209,48 @@ install_symlink { symlink_target: "/odm/bin/crossbuild/DataSet/SQLiteModule/db/tuning_DB_aov/mt6899/ISP_info.db", } +install_symlink { + name: "vendor_bin_touch_report", + soc_specific: true, + installed_location: "bin/touch_report", + symlink_target: "/odm/bin/touch_report", +} + +install_symlink { + name: "vendor_etc_init_touch_report_rc", + soc_specific: true, + installed_location: "etc/init/touch_report.rc", + symlink_target: "/odm/etc/init/touch_report.rc", +} + +install_symlink { + name: "vendor_lib64_libtouchreport_so", + soc_specific: true, + installed_location: "lib64/libtouchreport.so", + symlink_target: "/odm/lib64/libtouchreport.so", +} + +install_symlink { + name: "vendor_lib64_libtouchreport_alg_so", + soc_specific: true, + installed_location: "lib64/libtouchreport_alg.so", + symlink_target: "/odm/lib64/libtouchreport_alg.so", +} + +install_symlink { + name: "vendor_lib64_libtouchreport_hal_so", + soc_specific: true, + installed_location: "lib64/libtouchreport_hal.so", + symlink_target: "/odm/lib64/libtouchreport_hal.so", +} + +install_symlink { + name: "vendor_lib64_libtouchreport_sensor_so", + soc_specific: true, + installed_location: "lib64/libtouchreport_sensor.so", + symlink_target: "/odm/lib64/libtouchreport_sensor.so", +} + install_symlink { name: "vendor_bin_hw_android_hardware_graphics_allocator-V2-service-mediatek", soc_specific: true, diff --git a/klee-vendor.mk b/klee-vendor.mk index b0d96df..41b2642 100644 --- a/klee-vendor.mk +++ b/klee-vendor.mk @@ -341,6 +341,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/klee/proprietary/odm/etc/dsi_p10_42_02_0b_dsc_vdo_mi.xml:$(TARGET_COPY_OUT_ODM)/etc/dsi_p10_42_02_0b_dsc_vdo_mi.xml \ vendor/xiaomi/klee/proprietary/odm/etc/init.panel_info.sh:$(TARGET_COPY_OUT_ODM)/etc/init.panel_info.sh \ vendor/xiaomi/klee/proprietary/odm/etc/init/display.rc:$(TARGET_COPY_OUT_ODM)/etc/init/display.rc \ + vendor/xiaomi/klee/proprietary/odm/etc/init/touch_report.rc:$(TARGET_COPY_OUT_ODM)/etc/init/touch_report.rc \ vendor/xiaomi/klee/proprietary/odm/etc/init/vendor.xiaomi.hardware.aidl.mtdservice-miteeservice.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.hardware.aidl.mtdservice-miteeservice.rc \ vendor/xiaomi/klee/proprietary/odm/etc/init/vendor.xiaomi.hardware.aidl.tidaservice-miteeservice.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.hardware.aidl.tidaservice-miteeservice.rc \ vendor/xiaomi/klee/proprietary/odm/etc/init/vendor.xiaomi.hardware.idmanager.rc:$(TARGET_COPY_OUT_ODM)/etc/init/vendor.xiaomi.hardware.idmanager.rc \ @@ -2406,6 +2407,7 @@ PRODUCT_PACKAGES += \ mlipayd_mitee \ mtd_mitee \ tidad_mitee \ + touch_report \ toucheventcheck PRODUCT_PACKAGES += \ @@ -2447,6 +2449,12 @@ PRODUCT_PACKAGES += \ odm_bin_crossbuild_DataSet_SQLiteModule_db_tuning_DB_aov_default_sensor_ISP_mapping_db \ odm_bin_crossbuild_DataSet_SQLiteModule_db_tuning_DB_aov_default_sensor_ISP_param_db \ odm_bin_crossbuild_DataSet_SQLiteModule_db_tuning_DB_aov_ISP_info_db \ + vendor_bin_touch_report \ + vendor_etc_init_touch_report_rc \ + vendor_lib64_libtouchreport_so \ + vendor_lib64_libtouchreport_alg_so \ + vendor_lib64_libtouchreport_hal_so \ + vendor_lib64_libtouchreport_sensor_so \ vendor_bin_hw_android_hardware_graphics_allocator-V2-service-mediatek \ vendor_bin_hw_camerahalserver \ vendor_etc_camera_mt6899_gma_custom_xml \ diff --git a/proprietary/odm/bin/touch_report b/proprietary/odm/bin/touch_report new file mode 100644 index 0000000..219c138 Binary files /dev/null and b/proprietary/odm/bin/touch_report differ diff --git a/proprietary/odm/etc/init/touch_report.rc b/proprietary/odm/etc/init/touch_report.rc new file mode 100644 index 0000000..1b1271e --- /dev/null +++ b/proprietary/odm/etc/init/touch_report.rc @@ -0,0 +1,15 @@ +on init + start touch_report + +service touch_report /vendor/bin/touch_report + class hal + user root + group root uhid input + capabilities SYS_NICE + ioprio rt 4 + setenv LD_LIBRARY_PATH /vendor/lib64:/vendor/lib64/hw:/system/lib64:/sbin + disabled + seclabel u:r:recovery:s0 + +on charger + write /sys/class/touch/touch_dev/touch_doze_analysis 6