Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Android/ColorOS: OplusHans freezes the persistent snapshot helper after idle, causing daemon_transport_timeout instead of one-shot fallback

未关闭
#3,929 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, typescript

调研方向

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 内容生成。

描述

bug needs-info

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_ONLY or 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstack/agent-device 的其他 Issue

查看 callstack/agent-device 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。