From c8a487d6a8e9774d96f13c9fe69138ba5dac578f Mon Sep 17 00:00:00 2001 From: lexingtontezz Date: Sat, 9 Sep 2023 00:26:14 -0400 Subject: [PATCH] touchscreen: support ilitek touch panel variants Change-Id: Ib38f3adf802c505eb5aae58441efba4fda0e4f91 --- recovery/root/system/bin/runatboot.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recovery/root/system/bin/runatboot.sh b/recovery/root/system/bin/runatboot.sh index 1dadbd8..8dab218 100755 --- a/recovery/root/system/bin/runatboot.sh +++ b/recovery/root/system/bin/runatboot.sh @@ -1,11 +1,17 @@ #!/system/bin/sh + mount /vendor_dlkm mount /vendor modprobe -d /vendor/lib/modules /vendor/lib/modules/nova_0flash_mmi.ko +modprobe -d /vendor/lib/modules /vendor/lib/modules/ili9882_mmi.ko sleep 1 +if [ $(cat /sys/class/touchscreen/primary/productinfo) == "NT36672C" ] +then echo 1 > /sys/class/touchscreen/primary/forcereflash echo novatek_ts-csot-NT36672C-2302240D-605b-genevn.bin > /sys/class/touchscreen/primary/doreflash +echo "Reflashing firmware..." echo 0 > /sys/class/touchscreen/primary/forcereflash +fi is_fastboot=$(getprop init.svc.fastbootd) if [ "$is_fastboot" != "running" ]; then