You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Simlock discards its adb server's output, so a transport drop leaves no record #1169
Simlock runs its adb server as adb -P <port> nodaemon server with stdio: "ignore". In nodaemon mode adb logs to stderr only (it writes adb.<uid>.log only as a forked daemon), so everything the server says about a transport closing is thrown away, and ADB_TRACE set in the daemon's environment has nowhere to go.
src/drivers/android/adb-server.ts:287 stdio: "ignore"
adb (packages/modules/adb main) client/main.cpp: setup_daemon_logging() runs only when is_daemon
This is why #1162 could not be diagnosed from Simlock's side: the daemon log is silent around the drops and the reporter has no log to point ADB_TRACE at.
The maintainer agreed with this fix on 2026-11-01.
Done when
Simlock's adb server writes its stdout and stderr to <simlock home>/logs/adb-server.log, a file created with mode 0600 and truncated each time Simlock starts a server, instead of stdio: "ignore".
ADB_TRACE set in the daemon's environment reaches the adb server, so its trace lands in that file.
The Android troubleshooting docs say where the file is and how to turn on ADB_TRACE to debug a device that drops off adb.
Tests
The Android driver's adb server start hands the spawned server a file at <home>/logs/adb-server.log for stdout and stderr, not ignore; the file is mode 0600 and is truncated on the next start (fake process runner, temp home).
Activity
V3RON commentedon Nov 1, 2026
Agreed fix
The maintainer agreed with this fix on 2026-11-01.
Done when
<simlock home>/logs/adb-server.log, a file created with mode 0600 and truncated each time Simlock starts a server, instead ofstdio: "ignore".ADB_TRACEset in the daemon's environment reaches the adb server, so its trace lands in that file.ADB_TRACEto debug a device that drops off adb.Tests
<home>/logs/adb-server.logfor stdout and stderr, notignore; the file is mode 0600 and is truncated on the next start (fake process runner, temp home).Written by an agent.
test(ports): NodeProcessRunner writes a { file } stdio to the file, a…
docs(android): drop the emulator comment's claim about the adb server…
test(android): a log that cannot be prepared refuses Android, typed (#…
refactor(android): split the adb server's log preparation and spawn o…
test(android): split the adb server start helper's seams into their o…
V3RON commentedon Nov 1, 2026
Delivery run
Merged: #1171 (#1169)
Decided: #1169 — test the real process runner's
{ file }stdio, not only the fake → added the test (PR comment on #1171)Written by an agent.
fix(android): write the adb server's output to logs/adb-server.log (c…