+
+
+
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 0204526..4769e1f 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -1,4 +1,11 @@
+import { h } from 'vue'
+import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
+import VersionNote from './VersionNote.vue'
import './home.css'
-export default DefaultTheme
+// 默认主题,加上每个文档页正文上方的版本说明(doc-before 插槽,首页没有)。
+export default {
+ extends: DefaultTheme,
+ Layout: () => h(DefaultTheme.Layout, null, { 'doc-before': () => h(VersionNote) }),
+} satisfies Theme
diff --git a/docs/components/app-proxy.md b/docs/components/app-proxy.md
index 130be05..295f0f4 100644
--- a/docs/components/app-proxy.md
+++ b/docs/components/app-proxy.md
@@ -18,7 +18,7 @@
## 在管理器里设
-1. 实例卡片右下角的「⋯」→「按应用走代理…」。卡片上已经有「代理」标记时,点标记也能打开。
+1. 实例卡片右下角的「⋯」→「按应用走代理…」。卡片上已经有猫头标记时,点标记也能打开。
2. 打开「名单里的应用走代理」。
3. 代理地址:
- 点「从系统代理读取」,取这台电脑的代理设置(环境变量 `ALL_PROXY`、`HTTPS_PROXY`、`HTTP_PROXY`,或 Windows「Internet 选项」里手动设的代理);
@@ -38,16 +38,17 @@
要关掉,取消「名单里的应用走代理」再保存。地址和名单会留着,下次打开不用重填。
-## 卡片上的「代理」标记 {#mark}
+## 卡片上的猫头标记 {#mark}
-设置打开、名单不空时,实例卡片的标题旁有「代理」标记,卡片和列表两种视图都有。鼠标停在上面能看到详情,点它打开设置。
+设置打开、名单不空时,实例名字右边有一个猫头标记,卡片和列表两种视图都有。鼠标停在上面能看到详情,点它打开设置。
实例开着时,管理器窗口开着期间大约每 30 秒问一次实例里的状态;开机、关机或改了设置时马上再问。
-| 颜色 | 意思 |
+一切正常时,猫头和名字旁边的其他标记一个样子,不带颜色;只有出了问题才变黄或变红。
+
+| 样子 | 意思 |
|---|---|
-| 灰 | 实例没开(写着几个应用、走哪个代理,下次开机生效);正在开机或关机;或者正在问实例里的状态 |
-| 绿 | 已生效:几个应用(几个还没装)→ 代理地址。代理不转 UDP 时后面写「UDP 不通」 |
+| 不带颜色 | 实例没开(写着几个应用、走哪个代理,下次开机生效);正在开机或关机;正在问实例里的状态;或者已生效:几个应用(几个还没装)→ 代理地址,代理不转 UDP 时后面写「UDP 不通」 |
| 黄 | 要留意,名单里的应用多半还能用:规则缺了几条、正在补上;最近一次经代理的连接没成功,但这台电脑能连到代理;这次没问到实例里的状态 |
| 红 | 名单里的应用现在**断网或直连**:代理连不上;实例里的代理程序没在跑;规则挂不上;保存了但没生效 |
@@ -89,7 +90,7 @@ tools\modavd.exe proxy 3 off # 关掉,地
### 标记是红的,写着「代理连不上」
- 看代理软件开着没有、端口对不对:在对话框里点「检测」,或者跑 `tools\modavd.exe proxy <编号> test`。
-- 这时名单里的应用断网,这是故意的。代理软件恢复以后不用重开实例:名单里的应用下一次连上,标记就变回绿的,在那之前可能是黄的。
+- 这时名单里的应用断网,这是故意的。代理软件恢复以后不用重开实例:名单里的应用下一次连上,标记就恢复成不带颜色的样子,在那之前可能是黄的。
### 标记是黄的,写着「最近一次经代理的连接没成功」
diff --git a/docs/components/manager.md b/docs/components/manager.md
index f409bf4..a1fb210 100644
--- a/docs/components/manager.md
+++ b/docs/components/manager.md
@@ -13,11 +13,15 @@ ModAVD 0.36.0 起包里带两个管理程序,源码在 [ModAVDManager](https:/
双击包根的 `ModAVD.exe`:起一个只听 127.0.0.1 的本地服务,再用 Edge 的应用模式开一个窗口(Windows 10 / 11 自带 Edge);找不到 Edge 时用默认浏览器。页面内嵌在程序里,不联网。
-- 功能:实例卡片(在线时有画面缩略图)、开关机(带进度)、新建、设置、删除、电脑检查、[组件与问题反馈](#组件与问题反馈)(管理器 0.3.0 起)、活动面板、画面查看(点击即点按,返回 / 主页 / 最近任务)、日志、安装 APK、打开目录;浅色 / 深色 / 跟随系统。管理器 0.4.0 起还有[按应用走代理](./app-proxy)。
-- 管理器开机一律带窗口。无头只从命令行开(`start ` 默认无头,MCP 的 `start_instance` 也是),给 AUTO-MAS 这类自动化用;管理器里不提供无头开机。无头运行的实例在卡片上标「无头」,也能在这里关机。
+- 功能:实例卡片(在线时有画面缩略图)、开关机(带进度)、新建、设置、删除、画面查看(点击即点按,返回 / 主页 / 最近任务)、日志、安装 APK、打开目录;浅色 / 深色 / 跟随系统。顶栏有[「组件」「问题反馈」「设置」](#组件、问题反馈和设置)三个入口。管理器 0.4.0 起还有[按应用走代理](./app-proxy)。
+- 管理器开机一律带窗口。无头只从命令行开(`start ` 默认无头,MCP 的 `start_instance` 也是),给 AUTO-MAS 这类自动化用;管理器里不提供无头开机。无头运行的实例卡片上有无头标记(见下),也能在这里关机。
+- **实例卡片**:只有名字一行和配置一行。
+ - 名字右边的小标记,功能没开就不显示:猫头是[按应用走代理](./app-proxy#mark),「G」是装了 Google Play 商店,「K」是启用了 [KernelSU](#kernelsu),带斜杠的显示器是无头运行。鼠标停在标记上能看到它的意思。
+ - 配置行右端的「ADB」点一下,复制这台实例的 adb 地址。实例的编号写在名字的悬停提示里。
+ - 开机失败、新建失败时,名字右边是红色的状态标签:鼠标停在上面看原因和建议,点它打开「问题反馈」里的那条任务。
- **开机画面**(0.44.0 起,只有 Windows):带窗口开机时,模拟器窗口一出来就盖上一层开机画面,显示进度和正在做哪一步,开机后的设置做完才撤。这期间模拟器的画面和工具栏点不到,键盘也进不了;窗口照样能挪、能缩放、能用老板键藏起来。无头开机没有这层画面。
-- **「运行中」**(0.44.0 起):安卓开完、开机后的设置也做完,卡片才显示「运行中」,设置期间是「开机中」。设置最多等 60 秒,到点也算「运行中」,设置接着做完。命令行和 MCP 的状态也是这样(`online` / `starting`)。
-- 装了 [Google Play 商店](../guide/playstore)的实例(0.44.0 起),卡片上名字后面有一个购物袋图标,悬停显示「已装 Google Play 商店」;命令行 `list` 的「备注」一栏也写这一句。
+- **「运行中」**(0.44.0 起):安卓开完、开机后的设置也做完,实例才算「运行中」,设置期间卡片上标「开机中」。卡片视图不标「运行中」和「已关机」,看画面和「开机」「关机」按钮就知道;列表视图的状态一栏照样写。设置最多等 60 秒,到点也算「运行中」,设置接着做完。命令行和 MCP 的状态也是这样(`online` / `starting`)。
+- 装了 [Google Play 商店](../guide/playstore)的实例(0.44.0 起),卡片上名字右边有「G」标记,悬停显示「已装 Google Play 商店」;命令行 `list` 的「备注」一栏也写这一句。
- 实例默认关掉安卓的通知提示音(0.44.0 起),通知照常显示。每台实例只关一次,之后在安卓设置里改回的不会再被关掉。
- 一个根目录只开一个服务,再双击只是把窗口重新打开;日志在 `<根>\logs\modavd-ui.log`。
- 关掉窗口后,等正在跑的任务做完再退出。管理器 0.8.0 起的 Windows 版改成留在托盘,见下。
@@ -29,7 +33,7 @@ ModAVD 0.36.0 起包里带两个管理程序,源码在 [ModAVDManager](https:/
- **老板键**:每台带窗口运行的实例一个全局快捷键,按一下藏起这台的模拟器窗口,再按一下叫回来。
- 藏着的时候照旧渲染、照旧能截图,自动化不受影响。任务栏上没有它的按钮。叫回来以后,位置、大小和藏之前一样。
- 无头的实例本来就没有窗口,老板键管不到它。
-- **默认键**:编号 0–9 是 Ctrl+Alt+Shift+编号,用主键盘那排数字,比如 `mas_1` 是 Ctrl+Alt+Shift+1;编号超过 9 的默认没有。
+- **默认键**:编号 0–9 是 Ctrl+Alt+Shift+编号,用主键盘那排数字,比如编号 1 的实例是 Ctrl+Alt+Shift+1;编号超过 9 的默认没有。
- **在哪改**:在实例的「设置」里改,和诊断模式在一处。
- 点一下输入框,按想用的组合。至少带 Ctrl、Alt、Shift 中的一个,不收 Win 的组合。
- 可以清空,这台就没有老板键了。
@@ -89,9 +93,9 @@ Windows 拒绝创建虚拟机时(模拟器日志里是 `WHPX: Failed to setup
### 启用
-1. 补全组件:在管理器「电脑检查」的「KernelSU 组件(实验)」一项点「下载 KernelSU 组件」,或运行 `tools\modavd.exe components fetch --kernelsu`。
+1. 补全组件:点管理器顶栏的「组件」,在「可选组件」里点开「KernelSU 组件(实验)」,点「下载…」;或运行 `tools\modavd.exe components fetch --kernelsu`。组件还没齐时,在实例的「更多操作」里点「启用 KernelSU(实验)…」,管理器也会先带你到这一行。
- 下的是五个文件:内核模块 `kernelsu.ko`,以及 `ksuinit`、`ksud`、`KernelSU.apk`、`meta-overlayfs.zip`,每个都按写死的大小和 SHA-256 核对,放在根目录的 `sdk\kernelsu\`。
- - 已经有这五个文件的,点「导入 KernelSU 文件…」,或运行 `components import-ksu <文件或文件夹>…`。自己编的 `kernelsu.ko` 还要带 `--lkm-sha256 `,并且要和内核版本完全对上。
+ - 已经有这五个文件的,点同一行的「使用我自己的文件…」,或运行 `components import-ksu <文件或文件夹>…`。自己编的 `kernelsu.ko` 还要带 `--lkm-sha256 `,并且要和内核版本完全对上。
2. 在实例的「更多操作」里点「启用 KernelSU(实验)…」。确认后管理器把这台实例冷启动两次,激活模块系统;第一次启用时可能先用原版镜像检查一次客体数据。实例原来关着的,做完再关上。命令行是 `ksu install`,`ksu status` 看状态。
3. 导入模块:在「更多操作」里点「导入 KernelSU 模块…」,可以一次选几个 `.zip`,按依赖顺序装好,冷启动一次生效。命令行是 `ksu module install … [--no-reboot]`,`ksu modules` 列出已装的,`ksu module remove [--no-reboot]` 移除。
@@ -113,22 +117,44 @@ Windows 拒绝创建虚拟机时(模拟器日志里是 `WHPX: Failed to setup
内核模块来自 [ModAVD/ModAVDKernelSU](https://github.com/ModAVD/ModAVDKernelSU/releases) 的正式发布,按 ModAVD 系统镜像的内核编译;另外四个文件取自 KernelSU 和 meta-overlayfs 的正式发布。这五个文件都不在整包里,用到时才下载。许可证见[许可证与源码](../guide/license#third-party-apps)。
-## 组件与问题反馈
+## 组件、问题反馈和设置
版本号提醒:下面写的「管理器 0.3.0 起」是 ModAVDManager 自己的版本(管理器和命令行共用一个版本号),和 ModAVD 整包的版本(如 0.38.2)是两套编号;整包里带的是哪一版管理器,见整包的发布说明。
-管理器的「设置」→「组件与问题反馈」面板把三件事放在一起,命令行有对应的命令:
+管理器顶栏从左到右有「组件」「问题反馈」「设置」三个入口,各打开一个对话框,命令行有对应的命令。
-| 在面板里 | 命令行 | 做什么 |
+**「组件」**(拼图图标),上面是「电脑检查」,下面是「可选组件」:
+
+| 在对话框里 | 命令行 | 做什么 |
| --- | --- | --- |
-| 组件状态 | `components status` | 看 adb 和系统镜像装没装,可选的 Google Play 商店服务有没有(只读) |
-| 补全组件 | `components fetch` | 从官方渠道下载 adb 和系统镜像:选下载源、读 Google 许可协议、同意后才下载,有进度和「取消」 |
-| 收集问题信息 | `collect-info` | 把日志、配置和电脑信息打成一个 zip 放在桌面,做完显示路径和隐私提示(只读,不联网、不上传) |
-| 复制配置信息 | `report-config` | 把电脑配置和开着的实例里装的游戏整理成一段文字,复制到剪贴板并显示(只读) |
+| 电脑检查 | `check` | 开机前的检查。没通过的和要留意的项各占一行,写着查到了什么、怎么处理;其余收成一行「其余 N 项已通过」,点开能看。最下面的「重新检查」再查一次 |
+| 必需组件(「电脑检查」里的一行) | `components status` | 模拟器、adb 和系统镜像装没装,展开后一行一个。缺组件时这一行自动展开 |
+| 补全组件(「必需组件」展开后的最后一行,缺组件时才有) | `components fetch` | 管理器 0.3.0 起。从官方渠道下载 adb 和系统镜像:选下载源、读 Google 许可协议、同意后才下载,有进度和「取消」 |
+| 可选组件 | `components fetch --play-store`、`components fetch --kernelsu` 等 | 「Google Play 商店服务」「KernelSU 组件(实验)」各一行,点开是说明和「下载…」「使用我自己的文件…」两个按钮,见 [Google Play 商店](../guide/playstore)和 [KernelSU](#kernelsu) |
+
+**「问题反馈」**(带感叹号的气泡图标),管理器 0.3.0 起,两块:
+
+| 在对话框里 | 命令行 | 做什么 |
+| --- | --- | --- |
+| 导出日志 | `collect-info` | 按钮下面一行写着会带上哪几台实例(开着的和 7 天内开过的默认已勾上),点开这一行可以改勾选,列表里是实例的名字。点「导出日志」,把日志、配置和电脑信息打成一个 zip 放在桌面,做完显示路径和隐私提示(只读,不联网、不上传)。一台都不勾也会导出电脑和组件信息 |
+| 复制配置信息(「导出日志」旁边的按钮) | `report-config` | 把电脑配置和开着的实例里装的游戏整理成一段文字,复制到剪贴板并显示(只读) |
+| 最近任务和消息 | 无 | 正在做和刚做完的任务(新建、开机、关机、安装 APK、磁盘操作、补全组件、导出日志等),失败的写着原因和建议;下面是管理器的消息。关掉对话框再打开仍能看到 |
+
+**「设置」**(齿轮图标),两块:
+
+- 更新:更新源和更新,见[升级](../guide/upgrade)。
+- 通用:界面语言,根目录的路径和「打开目录」。
+
+**入口变红**:
+
+- 这个根目录暂时不能开机时(有必需的检查没通过,包括缺必需组件),「组件」变红并闪烁,鼠标停在上面写着原因,点开直接到没通过的那一项。这时卡片上的「开机」不会开机:悬停提示先到顶栏「组件」里处理,点它打开「组件」。
+- 有没看过的失败任务时,「问题反馈」变红并闪烁,鼠标停在上面写着哪些失败了。点开直接定位到那条失败,带原因和建议;看过以后恢复原样。
+
+其他:
-- 面板里的「组件状态」只显示状态。缺组件时,首页上有一条带「补全组件」按钮的横幅,「电脑检查」里没通过的「组件」一项下面也有这个按钮。完整步骤、下载源和出错处理见[安装](../guide/install#_2-补全组件)。
+- 补全组件的完整步骤、下载源和出错处理见[安装](../guide/install#_2-补全组件)。
- 收集的内容、哪些能公开贴,见[反馈问题](../guide/feedback)和[隐私](../guide/privacy)。
-- 0.38.1 及更早的整包里,这三件事是包根的三个 `.bat`;0.38.2 起没有了,由管理器和命令行做。
+- 0.38.1 及更早的整包里,补全组件、导出日志(当时叫收集问题信息)、复制配置信息是包根的三个 `.bat`;0.38.2 起没有了,由管理器和命令行做。
## 命令行
@@ -152,7 +178,7 @@ modavd [--root <目录>] [--json] [--quiet] [--verbose] <命令> [参数]
| `components fetch --kernelsu`、`components import-ksu <文件或文件夹>… [--lkm-sha256 S]` | 0.44.0 起:下载或导入 [KernelSU](#kernelsu) 的五个组件文件 |
| `ksu install\|uninstall [--purge --yes]\|status\|modules`、`ksu module install … [--no-reboot]`、`ksu module remove [--no-reboot]` | 0.44.0 起:给这台实例启用、移除、查看 [KernelSU](#kernelsu),导入、移除模块 |
| `game-sources`、`game-apps <类型> <源>`、`game-files <类型> <源> <包名> [路径]`、`import-game <类型> <源> <目标> <包名> [--data 路径]` | 0.44.0 起:[从 MuMu 或雷电导入游戏](#从-mumu-或雷电导入游戏) |
-| `collect-info [--out-dir D] [--no-explorer]` | 管理器 0.3.0 起:收集问题信息,生成 zip,默认放桌面并在资源管理器里选中 |
+| `collect-info [--out-dir D] [--no-explorer]` | 管理器 0.3.0 起:导出日志(收集问题信息),生成 zip,默认放桌面并在资源管理器里选中 |
| `report-config [--no-clipboard]` | 管理器 0.3.0 起:复制配置信息,默认复制到剪贴板 |
| `window show\|hide` | 显示 / 隐藏带窗口开机的实例;无头实例没有窗口。管理器里用[老板键](#老板键和托盘) |
| `install `、`shell <命令>`、`adb -- <参数>` | 装 APK、客体命令、adb 透传 |
diff --git a/docs/develop/adapt-game.md b/docs/develop/adapt-game.md
index 9c5e9f8..85248fe 100644
--- a/docs/develop/adapt-game.md
+++ b/docs/develop/adapt-game.md
@@ -19,7 +19,7 @@
- 启动前 `logcat -c`,再 `logcat -b all -v threadtime > 启动.txt`,然后启动游戏,复现以后停。
- 崩了的话,取 `/data/tombstones/` 里最新的那份:`shell su 0 ls -t /data/tombstones`。
-- 模拟器日志在根目录的 `logs\` 里。「收集问题信息」会把日志一起打包。
+- 模拟器日志在根目录的 `logs\` 里。「导出日志」会把日志一起打包。
- 重点看这几样:
- `Fatal signal`:崩在哪个库、哪个线程;
- `FATAL EXCEPTION`;
diff --git a/docs/develop/index.md b/docs/develop/index.md
index 4552b56..55ba803 100644
--- a/docs/develop/index.md
+++ b/docs/develop/index.md
@@ -25,14 +25,14 @@ issue、PR、评论和提交说明用中文或英文都可以。
维护者只在一台 Windows 11、AMD CPU、NVIDIA 独显的电脑上测过。最缺这些配置的实测:Intel CPU,AMD 或 Intel 显卡,笔记本双显卡,Windows 10,16 GB 内存。
1. 照[安装](../guide/install)装好,在管理器里建一台实例、开机,装上你玩的游戏玩一会儿;用 AUTO-MAS 的,在 AUTO-MAS 里添加,跑一轮日常任务。
-2. 在管理器的「设置 → 组件与问题反馈」里点「复制配置信息」(或运行 `tools\modavd.exe report-config`),在 ModAVD 仓库的 [Issues](https://github.com/ModAVD/ModAVD/issues) 新开 issue,贴上它,补完最后两行,再写一句能不能跑。0.38.1 及更早的包里是包根的「复制配置信息.bat」。
+2. 在管理器的「问题反馈」里点「复制配置信息」(或运行 `tools\modavd.exe report-config`),在 ModAVD 仓库的 [Issues](https://github.com/ModAVD/ModAVD/issues) 新开 issue,贴上它,补完最后两行,再写一句能不能跑。0.38.1 及更早的包里是包根的「复制配置信息.bat」。
这份输出不带用户名、电脑名、完整路径和游戏账号,可以直接公开贴。详见[游戏实测和兼容性报告](./testing)。
## 报问题
- 各组件的问题都在 ModAVD 仓库的 [Issues](https://github.com/ModAVD/ModAVD/issues) 提:模拟器本体,也包括管理器和命令行、宿主输入法、本站、发版前回归。开 issue 时选上是哪个组件。
-- 附「收集问题信息」生成的问题包(管理器的「设置 → 组件与问题反馈」,或 `tools\modavd.exe collect-info`)。哪些能公开贴、崩溃转储怎么私下发,见[反馈问题](../guide/feedback)。
+- 附「导出日志」生成的问题包(管理器的「问题反馈」,或 `tools\modavd.exe collect-info`)。哪些能公开贴、崩溃转储怎么私下发,见[反馈问题](../guide/feedback)。
- 贴日志前,把路径里的 `C:\Users\<你的用户名>` 换成 `%USERPROFILE%`。
- AUTO-MAS 的界面、任务、调度问题,请到 [AUTO-MAS](https://github.com/AUTO-MAS-Project/AUTO-MAS/issues) 提。
- 安全问题不要公开发,请发邮件到 qiyinxi@foxmail.com。
diff --git a/docs/develop/package.md b/docs/develop/package.md
index 56c71b3..a00898c 100644
--- a/docs/develop/package.md
+++ b/docs/develop/package.md
@@ -12,8 +12,8 @@
| 以前 | 现在:管理器 | 现在:命令行 |
| --- | --- | --- |
-| `补全组件.bat` | 顶栏「电脑检查」里「组件」一项下的「补全组件」,或缺组件时主页横幅上的「补全组件」;先选下载源,读 Google《Android 软件开发套件许可协议》,同意后下载 adb 和系统镜像,校验 SHA-1 后装进 `sdk\`,能断点续传 | `tools\modavd.exe components fetch`;下载源用 `components source` 看和改 |
-| `收集问题信息.bat` | 「设置 → 组件与问题反馈 → 收集问题信息」,生成问题包,见[反馈问题](../guide/feedback) | `tools\modavd.exe collect-info` |
+| `补全组件.bat` | 顶栏「组件」里「必需组件」最后一行的「补全组件」(缺组件时才有,这时「组件」会变红闪烁);先选下载源,读 Google《Android 软件开发套件许可协议》,同意后下载 adb 和系统镜像,校验 SHA-1 后装进 `sdk\`,能断点续传 | `tools\modavd.exe components fetch`;下载源用 `components source` 看和改 |
+| `收集问题信息.bat` | 「问题反馈 → 导出日志」,生成问题包,见[反馈问题](../guide/feedback) | `tools\modavd.exe collect-info` |
| `复制配置信息.bat` | 同一处的「复制配置信息」:把电脑配置和各实例装的游戏包整理成一段文字,复制到剪贴板,在 [Issues](https://github.com/ModAVD/ModAVD/issues) 新开 issue 反馈时附上 | `tools\modavd.exe report-config` |
## 写法上的规矩
diff --git a/docs/develop/testing.md b/docs/develop/testing.md
index 74ad62f..b2c2cc4 100644
--- a/docs/develop/testing.md
+++ b/docs/develop/testing.md
@@ -4,7 +4,7 @@
在你自己的电脑上照[安装](../guide/install)装好,建一台实例,装上要测的游戏玩一会儿(用 AUTO-MAS 的,在 AUTO-MAS 里跑一轮日常),然后:
-1. 在管理器的「设置 → 组件与问题反馈」里点「复制配置信息」,或运行 `tools\modavd.exe report-config`;
+1. 在管理器的「问题反馈」里点「复制配置信息」,或运行 `tools\modavd.exe report-config`;
2. 在 ModAVD 仓库的 [Issues](https://github.com/ModAVD/ModAVD/issues) 新开 issue,贴上它,补完最后两行;
3. 再写一句能不能跑。
diff --git a/docs/en/components/app-proxy.md b/docs/en/components/app-proxy.md
index f3c4288..a6596ea 100644
--- a/docs/en/components/app-proxy.md
+++ b/docs/en/components/app-proxy.md
@@ -18,7 +18,7 @@ When the proxy program is closed or cannot be reached, the listed apps **have no
## Setting it in the manager
-1. On the instance card, click "⋯" at the bottom right, then "Per-app proxy…". When the card already shows the "Proxy" mark, clicking the mark opens it too.
+1. On the instance card, click "⋯" at the bottom right, then "Per-app proxy…". When the card already shows the cat-head mark, clicking the mark opens it too.
2. Turn on "Listed apps use the proxy".
3. Proxy address:
- Click "Read from system proxy" to take this computer's proxy setting (the environment variables `ALL_PROXY`, `HTTPS_PROXY`, `HTTP_PROXY`, or the proxy set by hand in Windows "Internet Options");
@@ -38,16 +38,17 @@ Also list "Google Play services" (`com.google.android.gms`). When it is not in t
To turn it off, untick "Listed apps use the proxy" and save. The address and the list are kept, so you do not need to enter them again next time.
-## The "Proxy" mark on the card {#mark}
+## The cat-head mark on the card {#mark}
-While the setting is on and the list is not empty, the instance card shows a "Proxy" mark next to its title, in both the card and the list view. Hover over it to see the details; click it to open the setting.
+While the setting is on and the list is not empty, a cat-head mark sits to the right of the instance name, in both the card and the list view. Hover over it to see the details; click it to open the setting.
While the instance runs and the manager window is open, the manager asks the instance for its state about every 30 seconds, and right away after a start, a stop or a change of the setting.
-| Color | Meaning |
+While all is well, the cat head looks like the other marks next to the name, with no color; it turns yellow or red only when something is wrong.
+
+| Look | Meaning |
|---|---|
-| Gray | The instance is off (it shows how many apps go through which proxy from the next boot); it is starting or stopping; or the manager is asking the instance for its state |
-| Green | In effect: N apps (M not installed yet) → proxy address. When the proxy does not carry UDP, "UDP 不通" (no UDP) is added |
+| No color | The instance is off (it shows how many apps go through which proxy from the next boot); it is starting or stopping; the manager is asking the instance for its state; or it is in effect: N apps (M not installed yet) → proxy address, with "UDP 不通" (no UDP) added when the proxy does not carry UDP |
| Yellow | Worth a look, but the listed apps most likely still work: some rules are missing and being put back; the last connection through the proxy failed, but this computer can reach the proxy; or the state could not be read this time |
| Red | The listed apps have **no network or go direct** right now: the proxy cannot be reached; the proxy program in the instance is not running; the rules cannot be put in place; or the setting was saved but did not take effect |
@@ -89,7 +90,7 @@ For the fields, error codes and how to log in, see [API.md](https://github.com/M
### The mark is red and says the proxy cannot be reached
- Check that the proxy program is running and the port is right: click "Test" in the dialog, or run `tools\modavd.exe proxy test`.
-- The listed apps have no network meanwhile; that is on purpose. Once the proxy program is back you do not need to restart the instance: the mark turns green after the next connection of a listed app succeeds, and may be yellow until then.
+- The listed apps have no network meanwhile; that is on purpose. Once the proxy program is back you do not need to restart the instance: the mark loses its color after the next connection of a listed app succeeds, and may be yellow until then.
### The mark is yellow and says the last connection through the proxy failed
diff --git a/docs/en/components/manager.md b/docs/en/components/manager.md
index 8198dcc..1a28db0 100644
--- a/docs/en/components/manager.md
+++ b/docs/en/components/manager.md
@@ -13,11 +13,15 @@ Instance files and `mas-avd.json` are written the same way as in AUTO-MAS, so in
Double-click `ModAVD.exe` in the package root. It starts a local server that listens only on 127.0.0.1, then opens a window in Edge app mode (Edge comes with Windows 10 / 11); if Edge is not found, it uses the default browser. The page is embedded in the program and does not use the network.
-- Features: instance cards (with a screen thumbnail when the instance is online), start and stop (with progress), create, settings, delete, System check, [components and feedback](#components-and-feedback) (since manager 0.3.0), activity panel, screen view (a click is a tap; Back / Home / Recents), logs, install APK, open folder; light / dark / follow system. Since manager 0.4.0 there is also the [per-app proxy](./app-proxy).
-- The manager always starts instances with a window. Headless starts are only on the command line (`start ` is headless by default, and so is MCP's `start_instance`), for automation such as AUTO-MAS; the manager has no headless start. A headless instance is marked “headless” on its card and can also be shut down here.
+- Features: instance cards (with a screen thumbnail when the instance is online), start and stop (with progress), create, settings, delete, screen view (a click is a tap; Back / Home / Recents), logs, install APK, open folder; light / dark / follow system. The top bar has three entries: [Components, Problem reports and Settings](#components-problem-reports-and-settings). Since manager 0.4.0 there is also the [per-app proxy](./app-proxy).
+- The manager always starts instances with a window. Headless starts are only on the command line (`start ` is headless by default, and so is MCP's `start_instance`), for automation such as AUTO-MAS; the manager has no headless start. A headless instance has the headless mark on its card (see below) and can also be shut down here.
+- **Instance cards**: just a name line and a configuration line.
+ - Small marks to the right of the name, shown only when the feature is on: a cat head is the [per-app proxy](./app-proxy#mark), “G” means the Google Play Store is installed, “K” means [KernelSU](#kernelsu) is enabled, and a monitor with a slash means it runs headless. Hover over a mark to see what it means.
+ - Click **ADB** at the right end of the configuration line to copy the instance's adb address. The instance's number is in the hover text of its name.
+ - When a start or a creation failed, a red status label sits to the right of the name: hover over it for the reason and the advice, and click it to open that task in **Problem reports**.
- **Boot screen** (from 0.44.0, Windows only): on a start with a window, a boot screen covers the emulator window as soon as it appears. It shows the progress and the current step, and stays until the post-boot setup is done. Meanwhile the emulator's screen and toolbar cannot be clicked and keyboard input does not reach it; the window can still be moved, resized and hidden with the boss key. A headless start has no boot screen.
-- **“Running”** (from 0.44.0): the card shows “Running” only once Android has booted and the post-boot setup is done; during the setup it shows “Starting”. The setup is waited for at most 60 seconds; after that the instance counts as running and the setup carries on. The status in the CLI and MCP works the same way (`online` / `starting`).
-- An instance with the [Google Play Store](../guide/playstore) installed (from 0.44.0) shows a shopping bag icon after its name on the card; hovering shows “Google Play Store installed”. The “Notes” column of `list` on the command line says the same.
+- **“Running”** (from 0.44.0): the instance counts as “Running” only once Android has booted and the post-boot setup is done; during the setup its card is marked “Starting”. The card view does not mark “Running” or “Shut down”, since the screen and the **Start** / **Shut down** button already say it; the status column of the list view still does. The setup is waited for at most 60 seconds; after that the instance counts as running and the setup carries on. The status in the CLI and MCP works the same way (`online` / `starting`).
+- An instance with the [Google Play Store](../guide/playstore) installed (from 0.44.0) has a “G” mark to the right of its name on the card; hovering shows “Google Play Store installed”. The “Notes” column of `list` on the command line says the same.
- Instances have Android's notification sound off by default (from 0.44.0); notifications still show. It is turned off only once per instance, so if you turn it back on in Android's settings, it stays on.
- One server runs per root folder; double-clicking again only reopens the window. The log is at `\logs\modavd-ui.log`.
- After you close the window, it waits for the running tasks to finish before it exits. Since manager 0.8.0 the Windows manager stays in the tray instead; see below.
@@ -29,7 +33,7 @@ Since manager 0.8.0, Windows only.
- **Boss key**: each instance running with a window has a global hot key. Press it once to hide this instance's emulator window, and again to bring it back.
- While hidden, the instance keeps rendering and screenshots keep working, so automation is not affected. It has no taskbar button. When it comes back, its position and size are the same as before.
- A headless instance has no window, so its boss key does nothing.
-- **Default key**: instances 0–9 use Ctrl+Alt+Shift+number, with the digit row of the main keyboard (for example, `mas_1` is Ctrl+Alt+Shift+1). Instances above 9 have no boss key by default.
+- **Default key**: instances 0–9 use Ctrl+Alt+Shift+number, with the digit row of the main keyboard (for example, instance number 1 is Ctrl+Alt+Shift+1). Instances above 9 have no boss key by default.
- **Where to change it**: in the instance's settings, next to diagnostic mode.
- Click the field and press the combination. It needs at least one of Ctrl, Alt and Shift; combinations with Win are refused.
- It can be cleared, which leaves the instance without a boss key.
@@ -89,9 +93,9 @@ From 0.44.0. KernelSU gives apps in Android root access and can install KernelSU
### Enabling it
-1. Get the components: in the manager's “System check”, click “Download KernelSU components” in the “KernelSU components (experimental)” item, or run `tools\modavd.exe components fetch --kernelsu`.
+1. Get the components: click “Components” in the manager's top bar, unfold “KernelSU components (experimental)” under “Optional components” and click “Download…”; or run `tools\modavd.exe components fetch --kernelsu`. If the components are not all there when you click “Enable KernelSU (experimental)…” in an instance's “More actions”, the manager takes you to this row first as well.
- It downloads five files: the kernel module `kernelsu.ko`, plus `ksuinit`, `ksud`, `KernelSU.apk` and `meta-overlayfs.zip`. Each one is checked against a built-in size and SHA-256, and they go into `sdk\kernelsu\` in the root folder.
- - If you already have the five files, click “Import KernelSU files…” or run `components import-ksu …`. A `kernelsu.ko` you built yourself also needs `--lkm-sha256 ` and must match the full kernel version.
+ - If you already have the five files, click “Use my own files…” in the same row, or run `components import-ksu …`. A `kernelsu.ko` you built yourself also needs `--lkm-sha256 ` and must match the full kernel version.
2. In the instance's “More actions”, click “Enable KernelSU (experimental)…”. After you confirm, the manager cold-boots the instance twice to activate the module system; the first time it may first check the guest data with the stock image. An instance that was shut down is shut down again afterwards. On the command line it is `ksu install`, and `ksu status` shows the state.
3. Import modules: in “More actions”, click “Import KernelSU modules…”. You can pick several `.zip` files at once; they are installed in dependency order and take effect after one cold boot. On the command line, `ksu module install … [--no-reboot]` installs, `ksu modules` lists the installed ones, and `ksu module remove [--no-reboot]` removes one.
@@ -113,22 +117,44 @@ From 0.44.0. KernelSU gives apps in Android root access and can install KernelSU
The kernel module comes from the official releases of [ModAVD/ModAVDKernelSU](https://github.com/ModAVD/ModAVDKernelSU/releases), built for the kernel of ModAVD's system image; the other four files come from the official releases of KernelSU and meta-overlayfs. None of the five files is in the package; they are downloaded only when you use the feature. For licenses, see [Licenses and source code](../guide/license#third-party-apps).
-## Components and feedback
+## Components, problem reports and settings
A note on version numbers: "since manager 0.3.0" below is the version of ModAVDManager itself (the manager and the CLI share one version number). It is a different numbering from the ModAVD package version (such as 0.38.2); the package's release notes say which manager version it contains.
-**Settings → Components and problem reports** in the manager puts three jobs in one panel, and the CLI has matching commands:
+The manager's top bar has three entries, from left to right: **Components**, **Problem reports** and **Settings**. Each opens a dialog, and the CLI has matching commands.
-| In the panel | CLI | What it does |
+**Components** (a puzzle-piece icon) has **System check** at the top and **Optional components** below:
+
+| In the dialog | CLI | What it does |
| --- | --- | --- |
-| Component status | `components status` | Shows whether adb and the system image are installed, and whether the optional Google Play Store services are present (read-only) |
-| **Fetch components** | `components fetch` | Downloads adb and the system image from the official source: pick a download source, read Google's license, and only after you agree does it download; shows progress and a Cancel button |
-| **Collect problem info** | `collect-info` | Packs logs, configuration and computer info into one zip on the desktop, then shows its path and a privacy note (read-only; no network, no upload) |
-| **Copy configuration info** | `report-config` | Puts the computer's configuration and the games installed in running instances into one block of text, copies it to the clipboard and shows it (read-only) |
+| **System check** | `check` | The check before starting. Each item that did not pass or needs a look has its own row, saying what was found and what to do; the rest are folded into one row, “The other N passed”, which you can unfold. **Check again** at the bottom runs it again |
+| **Required components** (a row of System check) | `components status` | Whether the emulator, adb and the system image are installed, one row each when unfolded. The row unfolds by itself when components are missing |
+| **Fetch components** (the last row of the unfolded **Required components**, only when components are missing) | `components fetch` | Since manager 0.3.0. Downloads adb and the system image from the official source: pick a download source, read Google's license, and only after you agree does it download; shows progress and a Cancel button |
+| **Optional components** | `components fetch --play-store`, `components fetch --kernelsu` and others | One row each for **Google Play Store service** and **KernelSU components (experimental)**. Unfolded, a row explains it and has two buttons, **Download…** and **Use my own files…**; see [Google Play Store](../guide/playstore) and [KernelSU](#kernelsu) |
+
+**Problem reports** (a speech bubble with an exclamation mark), since manager 0.3.0, has two blocks:
+
+| In the dialog | CLI | What it does |
+| --- | --- | --- |
+| **Export logs** | `collect-info` | A line under the buttons says which instances will be included (running ones and those started in the last 7 days are ticked by default); unfold it to change the ticks. The list shows the instances' names. Click **Export logs** to pack logs, configuration and computer info into one zip on the desktop, then it shows the path and a privacy note (read-only; no network, no upload). With no instance ticked it still exports the computer and component info |
+| **Copy configuration info** (the button next to **Export logs**) | `report-config` | Puts the computer's configuration and the games installed in running instances into one block of text, copies it to the clipboard and shows it (read-only) |
+| **Recent tasks and messages** | none | Tasks that are running or just finished (creating, starting, shutting down, installing APKs, disk jobs, fetching components, exporting logs and so on); a failed one shows the reason and the advice. Below them are the manager's messages. They are still there when you close and reopen the dialog |
+
+**Settings** (a gear icon) has two blocks:
+
+- **Update**: the update source and the update itself; see [Upgrade](../guide/upgrade).
+- **General**: the interface language, the path of the root folder and **Open folder**.
+
+**Entries that turn red**:
+
+- While this root folder cannot start instances (a required check did not pass, including missing required components), **Components** turns red and pulses; hovering shows why, and opening it takes you straight to the item that did not pass. Meanwhile **Start** on a card does not start the instance: its hover text says to go to **Components** in the top bar first, and clicking it opens **Components**.
+- While there is a failed task you have not seen, **Problem reports** turns red and pulses; hovering shows which ones failed. Opening it takes you straight to that failure, with the reason and the advice; once seen, the entry goes back to normal.
+
+Also:
-- The component status in the panel is display-only. When components are missing, the home page shows a banner with a **Fetch components** button, and the same button is under the failed **Components** item of **System check**. For the full steps, download sources and error handling, see [Install](../guide/install#_2-fetch-the-google-components).
+- For the full steps of fetching components, the download sources and error handling, see [Install](../guide/install#_2-fetch-the-google-components).
- For what is collected and what is safe to post publicly, see [Reporting problems](../guide/feedback) and [Privacy](../guide/privacy).
-- In packages 0.38.1 and earlier these three jobs were three `.bat` files in the package root; from 0.38.2 they are gone and the manager and CLI do them.
+- In packages 0.38.1 and earlier, fetching components, exporting logs (then called collecting problem info) and copying the configuration info were three `.bat` files in the package root; from 0.38.2 they are gone and the manager and CLI do them.
## The CLI
@@ -152,7 +178,7 @@ modavd [--root ] [--json] [--quiet] [--verbose] [args]
| `components fetch --kernelsu`, `components import-ksu … [--lkm-sha256 S]` | From 0.44.0: download or import the five component files of [KernelSU](#kernelsu) |
| `ksu install\|uninstall [--purge --yes]\|status\|modules`, `ksu module install … [--no-reboot]`, `ksu module remove [--no-reboot]` | From 0.44.0: enable, remove or check [KernelSU](#kernelsu) on this instance, and import or remove modules |
| `game-sources`, `game-apps `, `game-files [path]`, `import-game [--data path]` | From 0.44.0: [import games from MuMu or LDPlayer](#importing-games-from-mumu-or-ldplayer) |
-| `collect-info [--out-dir D] [--no-explorer]` | Since manager 0.3.0: collect a problem report as a zip, placed on the desktop and selected in File Explorer by default |
+| `collect-info [--out-dir D] [--no-explorer]` | Since manager 0.3.0: export logs (collect a problem report) as a zip, placed on the desktop and selected in File Explorer by default |
| `report-config [--no-clipboard]` | Since manager 0.3.0: copy the configuration info, to the clipboard by default |
| `window show\|hide` | Show or hide the window of an instance started with one; headless instances have no window. In the manager, use the [boss key](#boss-keys-and-the-tray) |
| `install `, `shell `, `adb -- ` | Install an APK, guest command, adb passthrough |
diff --git a/docs/en/develop/adapt-game.md b/docs/en/develop/adapt-game.md
index df4f041..5df95b3 100644
--- a/docs/en/develop/adapt-game.md
+++ b/docs/en/develop/adapt-game.md
@@ -19,7 +19,7 @@ To get a game that currently will not start or runs badly working on ModAVD, wor
- Before launching, run `logcat -c`, then `logcat -b all -v threadtime > 启动.txt`, then launch the game, and stop once it reproduces.
- If it crashed, take the newest file in `/data/tombstones/`: `shell su 0 ls -t /data/tombstones`.
-- The emulator logs are in `logs\` in the root folder. **Collect problem info** packs the logs together.
+- The emulator logs are in `logs\` in the root folder. **Export logs** packs the logs together.
- Look mainly at these:
- `Fatal signal`: which library and which thread it crashed in;
- `FATAL EXCEPTION`;
diff --git a/docs/en/develop/index.md b/docs/en/develop/index.md
index 764db71..b1fbed6 100644
--- a/docs/en/develop/index.md
+++ b/docs/en/develop/index.md
@@ -25,14 +25,14 @@ If this is your first time, look at the issues labeled [good first issue](https:
The maintainer has tested on only one computer: Windows 11, AMD CPU, NVIDIA discrete GPU. What is missing most is testing on these configurations: Intel CPU, AMD or Intel GPU, laptops with dual GPUs, Windows 10, and 16 GB of RAM.
1. Install by following [Installation](../guide/install), create an instance in the manager, start it, install a game you play and play for a while. If you use AUTO-MAS, add the instance there and run one round of daily tasks.
-2. Click **Copy configuration info** under **Settings → Components and problem reports** in the manager, or run `tools\modavd.exe report-config`. Open an issue in the [ModAVD repository](https://github.com/ModAVD/ModAVD/issues) and paste it. Fill in the last two lines and add one sentence on whether it runs. In packages 0.38.1 and earlier this was `复制配置信息.bat` in the package root.
+2. Click **Copy configuration info** under **Problem reports** in the manager, or run `tools\modavd.exe report-config`. Open an issue in the [ModAVD repository](https://github.com/ModAVD/ModAVD/issues) and paste it. Fill in the last two lines and add one sentence on whether it runs. In packages 0.38.1 and earlier this was `复制配置信息.bat` in the package root.
This output does not contain your user name, computer name, full paths or game accounts, so you can post it publicly as it is. For details, see [Testing on real games and compatibility reports](./testing).
## Reporting problems
- Problems with every component go to the [Issues](https://github.com/ModAVD/ModAVD/issues) of the ModAVD repository: the emulator itself, and also the manager and CLI, the host IME, this site and the pre-release regression tests. Pick the component when you open the issue.
-- Attach the problem report made by **Collect problem info**, in **Settings → Components and problem reports** in the manager or with `tools\modavd.exe collect-info`. For what you can post publicly and how to send crash dumps privately, see [Reporting problems](../guide/feedback).
+- Attach the problem report made by **Export logs**, in **Problem reports** in the manager or with `tools\modavd.exe collect-info`. For what you can post publicly and how to send crash dumps privately, see [Reporting problems](../guide/feedback).
- Before you paste logs, replace `C:\Users\` in paths with `%USERPROFILE%`.
- Problems with AUTO-MAS's interface, tasks or scheduling belong to [AUTO-MAS](https://github.com/AUTO-MAS-Project/AUTO-MAS/issues).
- Do not report security problems publicly. Send an e-mail to qiyinxi@foxmail.com.
diff --git a/docs/en/develop/package.md b/docs/en/develop/package.md
index 0f834e4..7d923e6 100644
--- a/docs/en/develop/package.md
+++ b/docs/en/develop/package.md
@@ -12,8 +12,8 @@ What the three `.bat` files did is now done like this:
| Before | Now: the manager | Now: the CLI |
| --- | --- | --- |
-| `补全组件.bat` (fetches the Google components) | **Fetch components** under the **Components** item in **System check** in the top bar, or on the banner of the home page when components are missing. Choose a download source and read Google's Android Software Development Kit License Agreement; after you agree, it downloads adb and the system image, checks the SHA-1 and installs them into `sdk\`. It can resume downloads | `tools\modavd.exe components fetch`; use `components source` to see and change the download source |
-| `收集问题信息.bat` (collects a problem report) | **Settings → Components and problem reports → Collect problem info** makes the report; see [Reporting problems](../guide/feedback) | `tools\modavd.exe collect-info` |
+| `补全组件.bat` (fetches the Google components) | **Fetch components** in the last row of **Required components** under **Components** in the top bar (it is there only when components are missing, and then **Components** turns red and pulses). Choose a download source and read Google's Android Software Development Kit License Agreement; after you agree, it downloads adb and the system image, checks the SHA-1 and installs them into `sdk\`. It can resume downloads | `tools\modavd.exe components fetch`; use `components source` to see and change the download source |
+| `收集问题信息.bat` (collects a problem report) | **Problem reports → Export logs** makes the report; see [Reporting problems](../guide/feedback) | `tools\modavd.exe collect-info` |
| `复制配置信息.bat` (copies your system and game info) | **Copy configuration info** in the same place puts the computer's configuration and the game packages installed in each instance into one block of text and copies it to the clipboard, to include in a new issue in [Issues](https://github.com/ModAVD/ModAVD/issues) | `tools\modavd.exe report-config` |
## Writing rules
diff --git a/docs/en/develop/testing.md b/docs/en/develop/testing.md
index 9151449..3517888 100644
--- a/docs/en/develop/testing.md
+++ b/docs/en/develop/testing.md
@@ -4,7 +4,7 @@
Install on your own computer by following [Installation](../guide/install), create an instance, install the game you want to test and play it for a while (if you use AUTO-MAS, run one round of daily tasks in it), and then:
-1. Click **Copy configuration info** under **Settings → Components and problem reports** in the manager, or run `tools\modavd.exe report-config`;
+1. Click **Copy configuration info** under **Problem reports** in the manager, or run `tools\modavd.exe report-config`;
2. Open an issue in the [ModAVD repository](https://github.com/ModAVD/ModAVD/issues), paste it, and fill in the last two lines;
3. Add one sentence on whether it runs.
diff --git a/docs/en/guide/feedback.md b/docs/en/guide/feedback.md
index 4acf5a2..510b6b9 100644
--- a/docs/en/guide/feedback.md
+++ b/docs/en/guide/feedback.md
@@ -5,11 +5,11 @@ Open an issue in the [Issues](https://github.com/ModAVD/ModAVD/issues) of the Mo
- For problems with AUTO-MAS's interface, tasks or scheduling, please go to [AUTO-MAS](https://github.com/AUTO-MAS-Project/AUTO-MAS/issues).
- Do not post security problems publicly. Send an email to qiyinxi@foxmail.com.
-## 1. Collect a problem report
+## 1. Export the logs
1. **Do not shut down the emulator after something goes wrong.** If the instance is still running, the collection also records the screen and state at that moment.
2. Generate the report, in one of two ways:
- - In the manager: open `ModAVD.exe`, click **Settings**, then **Components and problem reports**, then **Collect problem info**. The report also goes to your desktop. When it finishes, it shows its path, a button **Show in File Explorer** that opens its folder, and a privacy note.
+ - In the manager: open `ModAVD.exe`, click **Problem reports** in the top bar. A line under the **Export logs** button says which instances will be included (running ones and those started in the last 7 days are ticked by default); if the instance with the problem is not among them, unfold that line and tick it. Then click **Export logs**. The report also goes to your desktop. When it finishes, it shows its path, a button **Show in File Explorer** that opens its folder, and a privacy note.
- On the command line: run `tools\modavd.exe collect-info`. After about a minute, a `ModAVD-问题信息-