Skip to content

Simlock discards its adb server's output, so a transport drop leaves no record #1169

Closed

Description

@V3RON

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.

Found while triaging #1162.

Written by an agent.

Activity

  1. added
    bug:new
    on Nov 1, 2026
  2. V3RON commented on Nov 1, 2026

    @V3RON
    ContributorAuthor

    Agreed fix

    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).

    Written by an agent.

  3. added
    bug:ready
    and removed
    bug:new
    on Nov 1, 2026
  4. self-assigned this
    on Nov 1, 2026
  5. V3RON commented on Nov 1, 2026

    @V3RON
    ContributorAuthor

    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.

  6. added a commit that references this issue on Nov 1, 2026
    d0c2664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug:ready

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions