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
Android/ColorOS: OplusHans freezes the persistent snapshot helper after idle, causing daemon_transport_timeout instead of one-shot fallback #3929
On a physical OPPO device running ColorOS 16 / Android 16, the persistent
Android snapshot helper is frozen by ColorOS OplusHans/OFreezer after being
idle for tens of seconds.
The initial snapshot succeeds. After waiting 50 seconds, the next snapshot
fails with daemon_transport_timeout.
Forcing the snapshot helper into one-shot instrumentation mode avoids the
problem.
This reproduces with the current public npm release, agent-device@0.21.31.
Triage: bug, needs one more data point. When a persistent-session request times out, the helper is meant to fall back to a one-shot capture within the same request, but your --timeout 10000 may not leave room for that fallback. Please run the failing snapshot once more and attach:
the output with --debug, plus the request log it names
whether the same repro without --timeout 10000 still fails
Thanks — I reran the comparison with agent-device@0.21.31 on the same OPPO PGT110 / ColorOS 16 device.
I used com.android.settings, a fresh state directory and session for each run, and waited 50 seconds after the initial successful snapshot. AGENT_DEVICE_ANDROID_SNAPSHOT_HELPER_SESSION was unset in both runs.
A. With --timeout 10000
The snapshot failed after 10,013 ms with:
reason: daemon_transport_timeout
requestId: 099e3e001db71f8c
message: Daemon request timed out
This confirms that the 10-second request budget expires before recovery can complete.
B. Without an explicit --timeout
The same fresh-session reproduction still failed. The request ran for 58,369 ms:
requestId: 55f356bbcdfebd44
message: Android snapshot helper failed: adb timed out after 30000ms
The request log confirms that fallback was attempted:
android_snapshot_helper_session_fallback
reason: Android snapshot helper session request timed out
The persistent helper could not be cleanly retired:
quitAcknowledged: false
quitExitObserved: false
release: unknown
forceKilled: true
externalCleanupTimedOut: true
The fallback then invoked a one-shot capture through:
adb shell am instrument -w ... com.callstack.agentdevice.snapshothelper/.SnapshotInstrumentation
That command also timed out after 30,000 ms.
So the explicit 10-second timeout is not the only issue. Without it, agent-device reaches the intended one-shot fallback, but the fallback cannot recover after ColorOS has frozen the persistent helper.
An additional observation: after the first failed reproduction, adb devices -l still reported the device as device, while a new adb shell getprop command hung. Restarting/reconnecting ADB restored shell commands before the clean B run. After the B failure, adb devices -l again continued to report the device as device.
Thanks, run B settles it: the one-shot fallback does run after the session request times out, but adb shell on the device is frozen too, so the fallback cannot recover either. This is the device stalling, not a missing fallback. Maintainers will decide how a device whose persistent helper froze once should be handled for the rest of the daemon's life; this stays parked until then. Until then, your one-shot setting from the start is the workaround.
A failed helper retirement can leave the release state unproven or cleanup timed out, indicating that the device may still be affected by the frozen helper. The lifecycle did not previously remember that device-specific condition, so later requests could retry persistent sessions.
Track unhealthy devices for the daemon runtime when forced retirement cannot prove release or cleanup times out.
Activity
thymikee commentedon Oct 24, 2026
Triage: bug, needs one more data point. When a persistent-session request times out, the helper is meant to fall back to a one-shot capture within the same request, but your
--timeout 10000may not leave room for that fallback. Please run the failing snapshot once more and attach:--debug, plus the request log it names--timeout 10000still failsYouAreOK commentedon Oct 26, 2026
Thanks — I reran the comparison with agent-device@0.21.31 on the same OPPO PGT110 / ColorOS 16 device.
I used com.android.settings, a fresh state directory and session for each run, and waited 50 seconds after the initial successful snapshot. AGENT_DEVICE_ANDROID_SNAPSHOT_HELPER_SESSION was unset in both runs.
A. With --timeout 10000
The snapshot failed after 10,013 ms with:
This confirms that the 10-second request budget expires before recovery can complete.
B. Without an explicit --timeout
The same fresh-session reproduction still failed. The request ran for 58,369 ms:
The request log confirms that fallback was attempted:
The persistent helper could not be cleanly retired:
The fallback then invoked a one-shot capture through:
adb shell am instrument -w ... com.callstack.agentdevice.snapshothelper/.SnapshotInstrumentation
That command also timed out after 30,000 ms.
So the explicit 10-second timeout is not the only issue. Without it, agent-device reaches the intended one-shot fallback, but the fallback cannot recover after ColorOS has frozen the persistent helper.
An additional observation: after the first failed reproduction,
adb devices -lstill reported the device asdevice, while a newadb shell getpropcommand hung. Restarting/reconnecting ADB restored shell commands before the clean B run. After the B failure,adb devices -lagain continued to report the device asdevice.I have attached:
agent-device-coloros-ab-evidence.zip
thymikee commentedon Oct 26, 2026
Thanks, run B settles it: the one-shot fallback does run after the session request times out, but
adb shellon the device is frozen too, so the fallback cannot recover either. This is the device stalling, not a missing fallback. Maintainers will decide how a device whose persistent helper froze once should be handled for the rest of the daemon's life; this stays parked until then. Until then, your one-shot setting from the start is the workaround.YouAreOK commentedon Oct 27, 2026
Thanks
mvanhorn commentedon Oct 28, 2026
A failed helper retirement can leave the release state unproven or cleanup timed out, indicating that the device may still be affected by the frozen helper. The lifecycle did not previously remember that device-specific condition, so later requests could retry persistent sessions.
Track unhealthy devices for the daemon runtime when forced retirement cannot prove release or cleanup times out.
#4007
fix(platform-android): keep an unproven helper retirement on the exis…
fix(platform-android): disable persistent Android snapshots after an …
fix(platform-android): key the persistent-snapshot disable on a reuse…
fix(platform-android): disable persistent Android snapshots after an …