47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path, params, output, notes
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | params | output | notes | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| android_input_text | function | bash | infra | 1.0.0 | impure | android_input_text([--serial <S>], text: string) -> void | Type text in focused field via adb shell input text. Spaces handled. |
|
|
false | error_go_core | false | bash/functions/infra/android_input_text.sh |
|
Stdout 'typed: <text>'. Exit 0. | adb input text replaces spaces with %s. Funcion lo hace automaticamente. Special chars " $ ` se escapan con backslash para evitar interpretacion por el shell. Exit 3 si no hay ningun device disponible (propagado desde adb_pick_serial). |
Ejemplo
source bash/functions/infra/android_input_text.sh
# Tipar en el device por defecto
android_input_text "hello world"
# → typed: hello world (envia "hello%sworld" a adb)
# Tipar en un device especifico
android_input_text --serial emulator-5554 "user@example.com"
Notas
adb shell input text no acepta espacios directos — los convierte a %s internamente. Esta funcion hace la sustitucion antes de llamar a adb para que el comportamiento sea predecible.
Los caracteres ", $ y ` se escapan con backslash para que el shell no los interprete al construir el comando.
Depende de adb_wsl_bash_infra para resolver el binario adb.exe en WSL2 y para adb_pick_serial / adb_s.