# Android Input

> Inject taps, long presses, swipes, scrolls, text, and key events into the active device. Use for direct gesture/input automation when UI-tree targeting is not needed or is unavailable.

- Skill: `samraddhashrivastavatech/android-input` (Agent Skill)
- Install (CLI): `npx skillmds@latest add samraddhashrivastavatech/android-input`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samraddhashrivastavatech/android-input/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: SAMRADDHASHRIVASTAVATECH (https://skillmd.com/u/samraddhashrivastavatech)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/samraddhashrivastavatech/android-input

---


# Android input injection

Drive the touchscreen and key stack directly: coordinates and events rather than
semantic UI targets.

## When to use

- Tapping/flinging when the UI tree is unreliable or an app blocks it.
- Typing characters or key chords (back, home, recents, volume, d-pad).
- Scrolling a list, swiping a view, long-pressing a tile.

## Tools used

- `tap` — tap at (x, y); `long_press` — press-and-hold a point.
- `swipe` — drag from start to end (with duration).
- `scroll` — directional scroll with a step count.
- `type` — inject text into the focused field.
- `key` — send a named key event; `back`, `home`, `recents` — nav shortcuts.
- `screen_info` — current resolution/orientation before any coordinate math.

## Procedure

1. `screen_info` — refresh resolution, density, orientation.
2. Map intent to coordinates/gestures (honour safe margins and keyboard insets).
3. Confirm the action sequence with the human (gestures are mutative).
4. Inject the smallest sequence that achieves the effect.
5. `ui_read`/screenshot after to confirm the resulting screen state (evidence).

## Security

- Coordinate input is fragile and can hit anything: require approval, prefer
  `android-ui` semantic targeting when available.
- Never inject into credential fields; hand keyboard control to the human.
- Stop at the first sign the device no longer matches `screen_info`.

## Related skills

`android-ui` · `android-screen` · `android-device-info` · `android-control`
