Android: emulators start without gRPC, so tools that need the emulator gRPC endpoint (Argent) cannot drive leased devices
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 70/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- android, grpc
- Área
- devtools, mobile-dev
Línea de trabajo
Los argumentos de lanzamiento del emulador se construyen cerca de emulatorLaunchFlags, que según el issue no debería aceptar flags sin procesar proporcionados por el usuario. Empieza ahí y revisa cómo se elige el puerto de la consola, para poder derivar el puerto gRPC como puerto + 3000 sin colisionar con otros puertos gestionados. Está terminado cuando un emulador arrendado escucha en el puerto gRPC, escribe un pid_*.ini con grpc.token, y la captura de pantalla y el gesture-tap de Argent tienen éxito.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This issue was written by Claude (an AI coding agent) while it investigated a tooling problem for me. I reviewed it and approved posting it.
simlock 0.2.0 starts emulators with the args below. main (0.3.0) uses the same args.
emulator -avd <avd> -port <n> -no-snapshot-save [-snapshot simlock_clean_baseline]
When -port is set and -grpc is not, the emulator:
- starts no gRPC server, and
- writes no discovery file (
~/Library/Caches/TemporaryItems/avd/running/pid_<pid>.inion macOS).
Without -port, the emulator turns on gRPC by default (console port + 3000, with a token) and writes the file.
Tools that drive the emulator over gRPC read that file. Argent is one. On a leased emulator its screenshot and gesture-tap fail with:
emulator "emulator-5558" not found among running emulators (a token-less `-grpc` launch omits grpc.token; check avd/running/*.ini)
adb-only tools still work, so the device looks healthy. Argent documents the same failure for any emulator launched without -grpc: software-mansion/argent#1192.
Repro (macOS, emulator 36.6.11, simlock 0.2.0)
simlock lease --platform android --device "Pixel 9" --agent-id test --detachls ~/Library/Caches/TemporaryItems/avd/running/→ nopid_*.inifor the leased emulator.lsof -nP -iTCP -sTCP:LISTEN -p <emulator pid>→ console and adb ports only, no gRPC port.
Matrix (throwaway AVD, launched by hand)
| Flags | gRPC endpoint + .ini |
|---|---|
-port 5570 -no-snapshot-save |
no |
no -port |
yes, grpc.port=8556 |
-port 5570 -grpc 8570 -grpc-use-token |
yes, and Argent works |
Proposed fix
Add -grpc <port + 3000> -grpc-use-token to the emulator launch args.
- Base the gRPC port on the console port, like the emulator's own default, so parallel leases never collide. With console ports above 5585 on
main, it may be worth checking thatport + 3000stays clear of other simlock-managed ports. - The token keeps the endpoint authenticated. Argent also requires
grpc.tokenin the.ini. - Users cannot work around this: config cannot add raw emulator flags (by design, per the comment near
emulatorLaunchFlags).
Optional: expose the gRPC port in the grant, so tools do not have to find it through the discovery file.
- Lenguaje dominante
- TypeScript
- Estrellas
- 19
- Forks
- 1
- Merge medio
- 7 h 21 min
- PR fusionados (30 d)
- 247
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstackincubator/simlock
-
bug:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
callstackincubator/simlock#673 ·
Los mantenedores suelen responder en 1 día
-
bug:needs-info
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
callstackincubator/simlock#657 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug:new
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
callstackincubator/simlock#672 ·
Los mantenedores suelen responder en 1 día
-
Flaky console lane: CLI auto-launch's fixed 5 s deadline expires while a daemon starts on a loaded runner (ENOENT daemon.sock)Posiblemente ocupada @V3RON la tomó hoy. Abiertobug:ready flaky-test
callstackincubator/simlock#663 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Make code review incremental, risk-routed and measurablePosiblemente ocupada @V3RON la tomó hoy. Abiertotask:ready
callstackincubator/simlock#654 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstackincubator/simlock
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
polarsource/polar#15580 ·
Los mantenedores suelen responder en 1 día
-
accepted bug via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
pingdotgg/t3code#20931 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug/1-unconfirmed kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ranxianglei/billion-context#3583 ·
Los mantenedores suelen responder en 1 día