Android/ColorOS: OplusHans freezes the persistent snapshot helper after idle, causing daemon_transport_timeout instead of one-shot fallback
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- android, typescript
- 领域
- backend, mobile-dev
调研方向
Start by tracing the Android snapshot helper’s persistent mode and the timeout path that returns daemon_transport_timeout; compare it with the one-shot instrumentation fallback. Reproduce using the issue’s 50-second idle interval on ColorOS, then identify a change that handles a frozen helper. Done when the later snapshot succeeds or falls back after idle without breaking the initial persistent snapshot.
由索引模型根据 Issue 内容生成。
描述
Summary
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, [email protected].
This is different from #2364:
- The helper installs successfully.
- The first persistent snapshot is healthy.
- The failure happens later, when ColorOS freezes the already-running helper.
- There is no
INSTALL_FAILED_TEST_ONLYor vendor install error-99.
Environment
| Component | Value |
|---|---|
| agent-device | 0.21.31, fetched directly from registry.npmjs.org |
| Host | Windows 11 Enterprise LTSC, build 26100 |
| Node.js | 24.22.0 |
| npm | 11.9.0 |
| adb | 1.0.41 / platform-tools 37.0.1 |
| Device | OPPO PGT110 physical device over USB |
| Android | 16 |
| ColorOS | V16.0.0 |
| Snapshot helper | 0.21.31 |
The screen was on and unlocked. adb devices -l continued to report the
device as device.
Minimal reproduction
PowerShell:
$env:npm_config_registry = 'https://registry.npmjs.org/'
$env:AGENT_DEVICE_STATE_DIR = "$PWD\.agent-device-coloros-repro"
npx --yes --package [email protected] agent-device open <APP_PACKAGE> `
--platform android `
--session coloros-freeze-repro `
--foreground `
--json
Start-Sleep -Seconds 50
npx --yes --package [email protected] agent-device snapshot `
-i `
-d 0 `
--session coloros-freeze-repro `
--timeout 10000 `
--json
- 主要语言
- TypeScript
- 星标
- 5.1k
- 派生
- 339
- 平均合并
- 12 小时 50 分钟
- 30 天内合并 PR
- 632
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/agent-device 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
callstack/agent-device#3945 ·
维护者通常 1 天内回复
-
Limrun iOS fill reports success but drops non-ASCII text可能已有人在做 @mvanhorn 于 5 天前认领。 未关闭bug ready-for-agent
难度 2/5 1-3 小时 新手友好度 87/100
callstack/agent-device#3819 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
callstack/agent-device#1869 ·
维护者通常 1 天内回复
-
iOS keyboard capture can race dismissal and omit the input assistant bar可能已有人在做 @shamilovtim 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 51/100
callstack/agent-device#3957 ·
维护者通常 1 天内回复
-
iOS fill can report TEXT_ENTRY_MISMATCH before the confirmation deadline可能已有人在做 @shamilovtim 于 1 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
callstack/agent-device#3952 ·
维护者通常 1 天内回复
查看 callstack/agent-device 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
outline/outline#14348 · 1 条评论 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
[Bug]: Agent import retains quotes in .env API keys followed by inline comments可能已有人在做 @yxr-2025 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
awslabs/visual-asset-management-system#804 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
dsh-market/dsh-market#1027 · 1 条评论 ·
维护者通常 1 天内回复