cb6d9e61d1
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.3 KiB
1.3 KiB
name, kind, lang, domain, version, purity, signature, description, tags, params, output, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | params | output | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| android_input_tap | function | bash | infra | 1.0.0 | impure | android_input_tap([--serial <S>], x: int, y: int) -> void | Send tap gesture at screen coordinates via adb shell input tap. |
|
|
Stdout 'tap @ <x>,<y> on <serial>'. |
|
false | error_go_core | false | bash/functions/infra/android_input_tap.sh |
Ejemplo
# Auto-detect device
android_input_tap 540 960
# Target specific device
android_input_tap --serial emulator-5554 540 960
Notas
Sources adb_wsl.sh para resolver el binario ADB y exponer adb_pick_serial / adb_s.
Usa adb_pick_serial para consumir --serial de los args y autodetectar el device si no se pasa.
Valida X e Y con regex ^[0-9]+$ antes de invocar adb.
Exit 3 si no hay device/emulador disponible (propagado desde adb_pick_serial).