Through a gateway, simlock adb and simctl take live input (an interactive mode)

Aperta
#1,177 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, ios, typescript

Direzione di ricerca

The work spans the gateway exec path, the CLI terminal handling, and an ADR (ADR 0005 forbids a pseudo-terminal), and it depends on the unmerged relay stack from #1113. Read ADR 0005 and the existing input and tunnel WebSocket code before anything else. Done means a design decision is recorded and an interactive adb shell runs through a gateway, which is not a first-timer task.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

request:new

Through a gateway, simlock adb and simlock simctl can't take live input. device.exec sends stdin as one string and then closes it, so an interactive adb shell, a REPL or a prompt that waits for an answer can't be driven remotely. On a worker, simlock adb shell gets the caller's own terminal and works.

Found while specifying #1174 (--stdin, one-shot input). That feature leaves the names -i and --interactive free for this.

What it would likely take (from the #1174 spec session, not decided):

  • a lease WebSocket for exec, like the input and tunnel sockets, carrying input bytes, Ctrl-C and window size both ways;
  • the gateway relaying it over the two-way relay channel the tunnel feature adds (#1113), so this waits for that stack to merge;
  • the CLI putting the caller's terminal in raw mode and restoring it on exit;
  • for adb, adb shell -t, which gives the device its own terminal, so the worker needs no native pty; simctl spawn has no such option, so iOS would get live input without a terminal;
  • an ADR reversing ADR 0005's "no pseudo-terminal".

Written by an agent.

Lingua principale
TypeScript
Stelle
705
Fork
40
Merge medio
12h 9m
PR unite (30g)
376

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/simlock

Tutte le issue di callstackincubator/simlock

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.