OpenGUI icon indicating copy to clipboard operation
OpenGUI copied to clipboard

Device list is empty after opening the Android app

Open xdeng-dev opened this issue 3 months ago • 1 comments

The app is open and the backend is running, but pnpm opengui -- devices --json returns an empty list.

adb sees the phone, so I don't know whether I should debug adb reverse, the backend URL inside the Android app, permissions, or the device registration path. A small "empty device list" checklist would be easier to follow than the general setup doc.

xdeng-dev avatar Aug 30 '26 17:08 xdeng-dev

@xdeng-dev 我们已合入修复 PR #116:Release 版 Android App 现在会使用设置页保存的后端地址,不再始终连接默认的 127.0.0.1:7777。同时补充了设备列表为空的排查清单,覆盖端口转发、后端地址、待命连接和设备注册。

请使用包含此修复的新构建重试,保存后端地址后需完全重启 App。Debug/Release 单元测试和 Debug APK 构建均已通过,但我们尚未在你的真机环境验证,因此不能保证这次修改完全解决你遇到的问题。ADB 能看到手机,也不代表 App 已完成后端注册。

如果仍然返回空列表,请补充以下信息,帮助我们继续排查:

  • 主机系统、手机型号与 Android 版本,以及 APK 的版本/提交和 Debug 或 Release 类型。
  • App 中配置的后端地址,以及 CLI 使用的地址(含是否设置 OPENGUI_BASE_URL)。
  • adb -s <serial> reverse --list 和 pnpm opengui -- devices --json 的完整输出。
  • 从重启 App 到查询设备列表期间的手机日志,可先用 adb -s <serial> logcat -s StandbySocketMgr StandbyFgService 获取待命日志;若服务未启动,也请补充启动异常日志。
  • 同一时间段的后端连接、Device registered: 和断连日志,以及排查清单中首次失败的步骤。

分享前请遮盖密钥、令牌和其他敏感信息。我们先保留此 issue,等待你的验证反馈。

Xumomo7077 avatar Oct 05 '26 03:10 Xumomo7077