Input & Automation
Android 4.0+ (API 14+)
Risk: SAFE
Simulate Screen Tap (Touch Event)
Simulates a single touchscreen tap at specific pixel coordinates (X, Y).
Command Syntax
adb shell input tap
Generic Syntax:
input tap <X> <Y>
Options & Parameters
| Flag | Description |
|---|---|
| <X> <Y> | Pixel horizontal and vertical coordinates. |
Real-World Usage Examples
Tap center of 1080x2400 screen
Taps exact middle of display.
adb shell input tap 540 1200