From 55fbb2f278ce2a176eb7ba66429b9d2c2293f5db Mon Sep 17 00:00:00 2001 From: kylieeXD Date: Sat, 3 Oct 2026 05:32:23 +0000 Subject: [PATCH] klee: Sync with DT changes Change-Id: I9c3d4cffd874260ced9f2c6850326f51cb35e10e Signed-off-by: kylieeXD --- Android.bp | 66 +++++++++++++++++++++++ klee-vendor.mk | 8 +++ proprietary/odm/bin/touch_report | Bin 0 -> 4176 bytes proprietary/odm/etc/init/touch_report.rc | 15 ++++++ 4 files changed, 89 insertions(+) create mode 100644 proprietary/odm/bin/touch_report create mode 100644 proprietary/odm/etc/init/touch_report.rc 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 0000000000000000000000000000000000000000..219c1387f43f46364e1d3509b74053e16b356c26 GIT binary patch literal 4176 zcmb_fO=uit82+-`YK*pxrNz`1Git$&w6oc4v%9TQ)}+4@w6S>b;%0Vdl3m^1S!O1s zp-@Eydl4E?=&jx~r3Vj!9z+9PdW?tU;w43eA|es2bkR1x?|kpGP6k8T(s!ACzW3+( zzW4i|dFSZZu|!vwf+W>finZ>|+ENrpZ;uoRimIS`=zo{$QxB28DYR*SQ3H9k3?|lM zx7d?}%xj51jyoj|hzuDeHHlaY^Wp>|5$18Ou+JaWJYZGw0LFPKNj!By^MG2T@j{`f z3tSzyw<7thNP8WW4y_1+|JpBs&Ev9Bo<*4tp{rBEyTxRZI6kJ$3MgS}oOqn)y$bXB zxgg^f$8V%UAlgg&Gk)MS(&bt+U9UCYcD&pH4(0xTKo9rlrKatg-Ua!Yrd0ma3pGYp`PiHwLq0h zm9tjK3Y@c~G^|=vvCs5fHFk1jl$F4pu2emz<$3{|$s$zB`MAa;CqROIcOzzB zz&?rDm&JZd>|In3&k3aOgf1n>-suOKjEEim=E$zy$rrHaSiihCxwxEEv&7x8`n~$$ z_PNAdN~wzj^gK^b_aCF}ft#c4m)oQ5XGs6)Sv7m(Gd1_?Hq{>aXS97i*?;Bs`)Zcf z%Ev{ezErAzX+Bw6qBbsekMEovAsqSCn7y7;H#bPW$9s;ndq<2} zBhkOqZzLD-gubohD{Eh{%zu%4e5y;pFTAlCKnm>+u->w8bk zzar!DxwLmj^e;rG`NsGQ^TEKoGBCig@T@*$jEx;JG8uEw95zzv@^r0km)#&8G+O+e z%^azpEE$FTWG0&#wkOMum9J#7dCMAda&|U1WS7eahVxFgP{<4yY}#9L)ElW>AwN8P zu&~c4TfSo(Zqx9x2M=a)+46u)Gbl|%6N|jEmbiID2vA^ZHZ#k9VUa~V=p2LS=$?`mFMw!v_Bq^}d;TR}Nfc~iA zhSQ`%(+wOGxz+5@MiFMKPEOCMTe?*CeP!A+O+WCI=~PRTp4D(lRhzV_=CmoDE|FSm z29DPfE-}^w=sIQ^+E}&x>VLIKE?iwWVf*Q7X9)J` zdhc~;4(AQ@7pcH|7yS5p#U%s^Vn4!sjS5k|fqg2t7lG^Wuace52(*uL12`c(KDRh` zoM$*sE|ZP-B>333K*S?&!~xF}pZ7R)>~o+&eipQkdbBmXc+_7JKF%#5&KK~I5BOhG zfww-|$2kW~Ng()ftdgIH8ho6qK%A>mP3L}r{s|ShPVjMW04F36?IM4S{~Iwr?hPRB z4d(M*73a6e7G1yVy+>16D98i)w^WGoH_18LK?DlM`8>YN$GwH`Fkr9&|IHX5=Qpqz zv=$Gy0Gm;4`z%VUT9JKtNv z$M+WAJED0LO_}uY7=VxW)@6C2Fvu4b@L@Yeg(x5IC0J-F1PaFa6|%Dp?c+NW-=FdL oxSl00w?9ZvRKWi;YNRs9vH*XkGTIIu^0!9@?DwdV%HYBLFII}GEC2ui literal 0 HcmV?d00001 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