cb6d9e61d1
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.5 KiB
1.5 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| android_pull | function | bash | infra | 1.0.0 | impure | android_pull [--serial <S>] remote_path local_path | Pull file/dir from Android device to WSL via adb pull. |
|
|
false | error_go_core |
|
Stdout 'pulled: <remote> → <local> from <serial>'. | false | bash/functions/infra/android_pull.sh |
Ejemplo
# Pull a single file (auto-detect device)
android_pull /sdcard/Pictures/foo.png ~/Downloads/foo.png
# Pull a directory to a specific local path with explicit serial
android_pull --serial emulator-5554 /sdcard/DCIM ~/Downloads/DCIM
Notas
Sources adb_wsl.sh for adb_pick_serial, ADB_PICK_REST, adb_wsl_to_win, and adb_s.
The local path is converted to a Windows path via adb_wsl_to_win before passing to adb pull,
which is required because adb.exe (Windows binary) does not understand WSL paths.
Exit code 3 when no device serial can be resolved.