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.6 KiB
1.6 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_push | function | bash | infra | 1.0.0 | impure | android_push([--serial <S>], local_path: string, remote_path: string) -> void | Push file/dir from WSL to Android device via adb push. |
|
|
Stdout 'pushed: <local> → <remote> on <serial>'. Exit 0. |
|
false | error_go_core | false | bash/functions/infra/android_push.sh |
Ejemplo
# Push a file to the active emulator
android_push /tmp/data.json /sdcard/Download/data.json
# Push to a specific device
android_push --serial emulator-5554 /tmp/data.json /sdcard/Download/data.json
# Push a directory
android_push --serial R5CR1234567 ~/exports/bundle /sdcard/Download/bundle
Notas
Usa adb_pick_serial de adb_wsl.sh para resolver el dispositivo objetivo.
Si --serial no se pasa, autodetecta el primer device/emulador disponible.
Sale con exit 3 si no hay ningun device conectado.
Valida que local_path existe en WSL antes de convertir y enviar.
Convierte el path WSL a Windows con adb_wsl_to_win (requiere wslpath; si no está disponible usa el path tal cual).