Skip to content

复制配置信息把宿主输入法和旧桌面当成游戏列出来 / report-config lists the host IME and the old launcher as games #136

Open

Description

@qiyinxi

English summary

modavd report-config (复制配置信息, Copy system info, in the manager) lists ModAVD's own packages as games: the host IME org.modavd.ime, and on older instances the old launcher org.fossify.home. When no game is installed it shows the IME instead of "none".

What to do, in ModAVDManager:

  • Add these packages to notGames in internal/report/config.go, or treat every package starting with org.modavd. as not a game.
  • Ideally share the package names with hostImePackage and lightLauncherPackage in internal/emu, so a new component is not missed later.
  • Update the scenario in internal/report/testdata/scenarios.json and the golden output internal/report/testdata/golden/full/report-config.txt.

Skills: Go. go test ./internal/report/... is enough to verify; no emulator needed.


ModAVDManager 的「复制配置信息」(管理器「组件与问题反馈」里的按钮,命令行是 modavd report-config)列每台实例装的游戏时,会把 ModAVD 自己装进实例的东西也当成游戏:

  • 游戏列表取的是 pm list packages -3,只去掉 notGames 里的包(internal/report/config.go:445)。notGames 现在只有轻量桌面 de.jrpie.android.launcher(internal/report/config.go:46)。
  • 宿主输入法 org.modavd.ime 开机时会装进实例(mas-35 起的模拟器都装),所以每台开着的实例都多一项「org.modavd.ime 1.0」。
  • 更早建的实例上还留着以前的轻量桌面 Fossify(org.fossify.home),管理器没卸它,也会被列出来。
  • 实例里没装游戏时,本来显示「没装」,现在显示的是输入法。
  • 0.38.1 随包的 report-config.ps1 就是这样($NotGames 只有 µLauncher),随包脚本搬进命令行:components、collect-info、report-config ModAVDManager#16 照搬进命令行,管理器接入组件补全与问题反馈功能 ModAVDManager#84 接进了管理器界面。测试的期望输出也把输入法当游戏:internal/report/testdata/golden/full/report-config.txt:11。

影响面:贴出来的配置信息里多一两个看不懂的包名,看的人要自己分辨哪些是游戏。不影响别的功能。

建议改法:

  • notGames 加上 org.modavd.ime 和 org.fossify.home,或者 org.modavd. 开头的都不算游戏。
  • 包名最好和 internal/emu 里的 hostImePackage、lightLauncherPackage 放在一处共用,以后加组件不会漏。
  • 改完更新 internal/report/testdata/scenarios.json:102 的场景和 golden 输出。

Refs ModAVD/ModAVDManager#16
Refs ModAVD/ModAVDManager#84

Activity

  1. added
    bugSomething isn't working / 有东西坏了
    P3Fix when idle: wording, comments, style, theoretical / 闲了再修
    area:managerComponent: manager and CLI (ModAVDManager) / 管理器和命令行
    good first issueGood for newcomers / 适合新人上手
    on Nov 6, 2026
  2. changed the title [-]复制配置信息把宿主输入法和旧桌面当成游戏列出来[/-] [+]复制配置信息把宿主输入法和旧桌面当成游戏列出来 / report-config lists the host IME and the old launcher as games[/+] on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Fix when idle: wording, comments, style, theoretical / 闲了再修area:managerComponent: manager and CLI (ModAVDManager) / 管理器和命令行bugSomething isn't working / 有东西坏了good first issueGood for newcomers / 适合新人上手

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions