Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`devices` reports a phantom Android emulator named after the emulator's crashdata INFO banner

Chiusa Adatta ai principianti
#3,716 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@airowe ci sta già lavorando.

Dal 16/10/2026.

  • #3743 di @airowe — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
android, typescript
Ambito
mobile

Direzione di ricerca

Il bug si trova nel modo in cui l'elenco dei dispositivi Android viene costruito dall'output di emulator -list-avds, che secondo la segnalazione viene diviso per riga senza alcun filtro. Trova il codice che esegue quel comando e analizza il suo stdout. Riproduci il problema simulando il comando in modo che stampi il banner INFO e nessun nome di AVD. Il lavoro è completo quando il banner non compare più come dispositivo in devices --json né nel conteggio Android di doctor, e un test copre il caso del banner.

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

Descrizione

Summary

On a machine with zero AVDs, agent-device devices still reports one Android
emulator, whose id and name are the Android emulator's Crashpad banner:

INFO    | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 98765
Environment
  • agent-device 0.21.28 (npm global)
  • macOS 15.7.5 (24G624), arm64
  • Node v24.14.0
  • ANDROID_HOME=/Users//Library/Android/sdk
Steps to reproduce
  1. Install the Android SDK/emulator, create no AVD (~/.android/avd/ is empty).
  2. Run agent-device devices --json.
Expected

No Android device listed.

Actual

One phantom entry (booted: false), with the embedded PID changing on every run:

{
  "platform": "android",
  "id": "INFO    | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 6727",
  "name": "INFO    | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 6727",
  "kind": "emulator",
  "target": "mobile",
  "booted": false
}

agent-device doctor counts it as well: device: ... Android 1 available, 0 booted.

Likely cause

The Android emulator writes that banner to stdout (verified with Python
capture_output=True; stderr is empty and exit code is 0):

$ emulator -list-avds 2>/dev/null
INFO    | Storing crashdata in: /tmp/<user>/emu-crash-34.2.16.db, detection is enabled for process: 8114

$ emulator -list-avds 2>&1 1>/dev/null   # stderr
(empty)

$ echo $?
0

So splitting stdout of emulator -list-avds by line yields one bogus "AVD" per run.
Filtering to plausible AVD names (or reading ~/.android/avd/*.ini) would avoid it.

Confirmed there is genuinely no device here: adb devices -l is empty and
~/.android/avd/ has no .ini files. The banner reproduces on every invocation
(three consecutive runs, only the PID differs).

Lingua principale
TypeScript
Stelle
5k
Fork
334
Merge medio
12h 14m
PR unite (30g)
713

Preparare l'ambiente

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 callstack/agent-device

Tutte le issue di callstack/agent-device

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.