Remote adb/simctl passthrough corrupts binary stdout (exec-out screencap returns U+FFFD instead of 0x89)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 74/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- android, node.js, typescript
Direzione di ricerca
Start by tracing the remote adb command path used with --url or SIMLOCK_URL, from the CLI through the worker response handling. Check where stdout is converted between bytes and text, then look for tests covering streamed command output. Done means the repro returns a PNG beginning 8950 4e47 0d0a 1a0a; the issue names no relevant source or test files.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
When a command runs on a worker through a farm URL (simlock --url <farm-url> adb …, or with SIMLOCK_URL set), binary stdout comes back corrupted. A PNG from screencap starts with ef bf bd 50 4e 47 instead of 89 50 4e 47: the 0x89 byte has been replaced by the UTF-8 replacement character (U+FFFD). It looks as if the output is decoded as UTF-8 text somewhere on the remote path and re-encoded.
The docs use this exact command (using-devices/build-and-run.mdx):
simlock adb -s "$SERIAL" exec-out screencap -p > home.png
using-devices/run-commands.mdx says that through a gateway or farm URL the worker runs the command and "streams the output back", with no caveat about binary output.
Repro
- Lease an Android emulator through a farm URL:
simlock --url <farm-url> lease --platform android --detach --ttl 5m - Run:
simlock --url <farm-url> adb --lease <lease> exec-out screencap -p > out.png - Run
xxd out.png | head -1.
Expected: 8950 4e47 0d0a 1a0a (a valid PNG).
Actual: efbf bd50 4e47 …. The file isn't a valid image, and any other byte ≥ 0x80 is mangled the same way.
Workaround
adb shell "screencap -p /sdcard/s.png && base64 /sdcard/s.png", then decode locally.
Environment
- simlock 0.9.0 (CLI and daemon)
- macOS worker on Apple Silicon, Android emulator, API 34 and 35
- Command sent through the farm URL, so the worker runs it and streams the output back
The same likely applies to simlock simctl … io screenshot to stdout, and to any binary output streamed back from a worker. Not verified.
- Lingua principale
- TypeScript
- Stelle
- 730
- Fork
- 44
- Merge medio
- 15h 44m
- PR unite (30g)
- 378
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstackincubator/simlock
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
callstackincubator/simlock#2113 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
callstackincubator/simlock#2112 ·
I maintainer di solito rispondono entro 1 giorno
-
platform:ios task:ready
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
callstackincubator/simlock#2107 ·
I maintainer di solito rispondono entro 1 giorno
-
platform:ios request:new
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
callstackincubator/simlock#2106 ·
I maintainer di solito rispondono entro 1 giorno
-
platform:ios task:ready
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
callstackincubator/simlock#2105 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstackincubator/simlock
Issue simili
-
BUG: Backend Docker build fails due to Go version mismatchForse già presa @Aakriti0207 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
gittuf/visualizer#203 ·
I maintainer di solito rispondono entro 2 giorni
-
bug 🐛
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
BaaRai/ARTEX#981 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participantsForse già presa @Djiit l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
backnotprop/plannotator#4517 ·
I maintainer di solito rispondono entro 1 giorno