ACC Logo
ADBDebuggingSafe

adb shell input tap <x> <y>

Simulate screen touch at coordinates

What It Does

Simulates a finger tap event at the specified pixel coordinates (X, Y) on the display.

Command Syntax
Terminal
$adb shell input tap <x_coord> <y_coord>
Parameters & Placeholders Breakdown

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 Coordinate

The horizontal pixel coordinate (X-axis) from the top-left corner of the touchscreen.

Real-world value:540
Command syntax: adb shell input tap 540 1200
<y_coord>Vertical Screen Coordinate

The vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.

Real-world value:1200
Command syntax: adb shell input tap 540 1200
<x>Horizontal Screen Coordinate

The horizontal pixel coordinate (X-axis) from the top-left corner of the touchscreen.

Real-world value:540
Command syntax: adb shell input tap 540 1200
<y>Vertical Screen Coordinate

The vertical pixel coordinate (Y-axis) from the top-left corner of the touchscreen.

Real-world value:1200
Command syntax: adb shell input tap 540 1200
Usage Examples
$adb shell input tap 540 960
$adb shell input tap 100 200
Prerequisites & Requirements
  • Screen turned on
Related Commands
Found an error or missing flag for adb shell input tap <x> <y>?

Submit a correction or request additional examples on GitHub.

Having issue? Contact @mkr_infinity

Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.

Contact @mkr_infinity