Merge "touchscreen: support ilitek touch panel variants" into android-12.1

This commit is contained in:
Tezz Dixon 2023-09-09 21:10:49 +00:00 committed by Gerrit Code Review
commit 6cb4d4aae3

View file

@ -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