[MAA] 雷电实例的游戏版本检查总在 adb 认出设备前执行,版本读取一直失败

Open
#1,774 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start with EmulatorGameUpdateTask, which reads the installed game version right after the LDPlayer launch returns. The log shows adb reporting device 'emulator-5564' not found before the device appears, so compare that timing with the adb devices output. Done means the version read succeeds for LDPlayer instances, either by waiting for the device to show up in adb devices or by retrying the read a few times after a failure.

Written by the indexing model from the issue text.

Description

EmulatorGameUpdateTask 在雷电启动返回后立刻读已安装版本,此时 adb 还没认出设备:adb.exe: device 'emulator-5564' not found(08:00:21),19 秒后 MAA 用同一个 adb、同一个序列号连上了。日志里这条失败出现了 50 次,全是雷电;读取成功的只有魔改 AVD。结果是游戏更新后不会自动安装,11-01 MAA3号 21 次运行都卡在「客户端版本已过时」。建议:读版本前先等 adb devices 里出现该设备,或者失败后重试几次。

Dominant language
Python
Stars
707
Forks
56
Avg merge
11h 45m
Merged PRs (30d)
429

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AUTO-MAS-Project/AUTO-MAS

All issues in AUTO-MAS-Project/AUTO-MAS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.