My goal is to add a single printk command to one of the driver files for my phone\'s touchscreen. I would like to run this printk command everytime the screen recieves touch
Try running the getevent command in a shell on the Android device. The touchscreen should be listed, and the name should be the driver being used.
getevent
Here's what came up on my phone:
add device 7: /dev/input/event1 name: "synaptics_dsx"
This means my phone uses the synaptics_dsx touchscreen driver.
synaptics_dsx