I do not understand why you need to send the event to /dev/input/eventX directly. But if it can send via adb , you can enter a lot of type events on the device.
Try this on your computer:
adb shell input tap 200 300
Or this is on your Android device shell:
input tap 200 300
But he has a high delay due to external injection.
Read more about the input command here.
Usage: input [<source>] <command> [<arg>...] The sources are: mouse keyboard joystick touchnavigation touchpad trackball stylus dpad touchscreen gamepad The commands and default sources are: text <string> (Default: touchscreen) keyevent [--longpress] <key code number or name> ... (Default: keyboard) tap <x> <y> (Default: touchscreen) swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) press (Default: trackball) roll <dx> <dy> (Default: trackball)
source share