adb shell input tap <x> <y>
Simulate screen touch at coordinates
Simulates a finger tap event at the specified pixel coordinates (X, Y) on the display.
adb shell input tap <x_coord> <y_coord>This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:
<x_coord>Horizontal Screen CoordinateThe horizontal pixel coordinate (X-axis) from the top-left corner of the touchscreen.
adb shell input tap 540 1200<y_coord>Vertical Screen CoordinateThe vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.
adb shell input tap 540 1200<x>Horizontal Screen CoordinateThe horizontal pixel coordinate (X-axis) from the top-left corner of the touchscreen.
adb shell input tap 540 1200<y>Vertical Screen CoordinateThe vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.
adb shell input tap 540 1200adb shell input tap 540 960adb shell input tap 100 200- Screen turned on
adb shell input tap <x> <y>?Submit a correction or request additional examples on GitHub.
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.