Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions docs/en/components/app-proxy.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Per-app proxy

Since manager 0.4.0, you can send chosen apps in an instance (by package name) through a proxy program on this computer, while every other app goes direct as before. For example, only the overseas server of a game goes through the proxy, and the domestic games and the system stay as they are.
Expand All @@ -18,29 +18,29 @@

## 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 "代理" mark, clicking the mark opens it too.
2. Turn on "名单里的应用走代理" (the listed apps use the proxy).
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.
2. Turn on "Listed apps use the proxy".
3. Proxy address:
- Click "从系统代理读取" (read the 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");
- or type an address such as `socks5://127.0.0.1:7890` (the protocol can be left out) and click "检测" (probe) to see which protocol it speaks and whether UDP works.
- 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");
- or type an address such as `socks5://127.0.0.1:7890` (the protocol can be left out) and click "Test" to see which protocol it speaks and whether UDP works.
- `127.0.0.1` and `localhost` are stored as `10.0.2.2`, as the instance sees them; a mixed port written as `http://` is changed to `socks5://`. What was changed is shown under the probe result.
4. App list:
- While the instance runs, the installed third-party apps and Google Play services are listed; just tick them. Games the manager knows are shown with their Chinese names.
- While the instance is off, type package names below (such as `com.example.game`) and press Enter to add them.
- Listed apps that are not installed in the instance yet are marked "没装" (not installed); they take effect once installed. The list holds at most 64 apps.
5. Click "保存" (save). A running instance takes it at once; a stopped one at its next boot through the manager or `modavd`.
- Listed apps that are not installed in the instance yet are marked "Not installed"; they take effect once installed. The list holds at most 64 apps.
5. Click "Save". A running instance takes it at once; a stopped one at its next boot through the manager or `modavd`.

The "现在" (now) line at the bottom of the dialog shows what the saved setting does now; it says the same as the mark on the card.
The "Now" line at the bottom of the dialog shows what the saved setting does now; it says the same as the mark on the card.

::: tip Overseas games that sign in with Google
Also list "Google Play 服务" (Google Play services, `com.google.android.gms`). When it is not in the list, the dialog says so; click "加进名单" (add to the list).
Also list "Google Play services" (`com.google.android.gms`). When it is not in the list, the dialog says so; click "Add to list".
:::

To turn it off, untick "名单里的应用走代理" and save. The address and the list are kept, so you do not need to enter them again next time.
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 "代理" mark on the card {#mark}
## The "Proxy" 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, 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 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.

Expand Down Expand Up @@ -88,7 +88,7 @@

### The mark is red and says the proxy cannot be reached

- Check that the proxy program is running and the port is right: click "检测" (probe) in the dialog, or run `tools\modavd.exe proxy <number> test`.
- Check that the proxy program is running and the port is right: click "Test" in the dialog, or run `tools\modavd.exe proxy <number> 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 mark is yellow and says the last connection through the proxy failed
Expand All @@ -104,7 +104,7 @@
- Games that sign in with Google: also list Google Play services.
- Games that use UDP (voice, real-time matches): use the proxy program's SOCKS5 or mixed port, not an HTTP proxy.
- The listed apps get no IPv6; they use IPv4 only.
- An app shown as "没装" (not installed): the package name may be wrong, or the game's package name differs from what you typed. Open the dialog while the instance runs and tick it in the listed apps.
- An app shown as "Not installed": the package name may be wrong, or the game's package name differs from what you typed. Open the dialog while the instance runs and tick it in the listed apps.

### Are apps outside the list affected?

Expand Down
14 changes: 7 additions & 7 deletions docs/en/components/manager.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The manager and CLI

Since ModAVD 0.36.0 the package includes two management programs. Their source is in [ModAVDManager](https://github.com/ModAVD/ModAVDManager):
Expand All @@ -14,7 +14,7 @@
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, PC 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 <i>` 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.
- The manager always starts instances with a window. Headless starts are only on the command line (`start <i>` 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.
- One server runs per root folder; double-clicking again only reopens the window. The log is at `<root>\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.

Expand All @@ -37,23 +37,23 @@
- **Tray**:
- The manager puts an icon in the tray. After you close the manager window, the manager stays in the tray and the boss keys keep working.
- A left click on the icon brings every hidden window back.
- The right-click menu has “打开管理器” (open the manager) and “退出” (exit). Exiting first shows the hidden windows, and waits for running tasks to finish.
- The right-click menu has “Open manager” and “Exit”. Exiting first shows the hidden windows, and waits for running tasks to finish.
- The manager registers the boss keys, so if you only use AUTO-MAS and never open the manager, there are no boss keys. Open the manager once and leave it in the tray to get them.

## Components and feedback

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 feedback) in the manager puts three jobs in one panel, and the CLI has matching commands:
**Settings → Components and problem reports** in the manager puts three jobs in one panel, and the CLI has matching commands:

| In the panel | 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 a problem report) | `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) |
| **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) |

- The component status in the panel is display-only. When components are missing, the home page shows a banner with a **补全组件** button, and the same button is under the failed **组件** (Components) item of **电脑检查** (Computer check). For the full steps, download sources and error handling, see [Install](../guide/install#_2-fetch-the-google-components).
- 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 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.

Expand Down
4 changes: 2 additions & 2 deletions docs/en/develop/adapt-game.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Adapting a new game

To get a game that currently will not start or runs badly working on ModAVD, work in the order below. Adaptation has no separate code folder: after you find the cause, the change lands in one place, either the execution bridge, the emulator itself or the automation script. Specific cases investigated before are in [How to investigate common problems](./troubleshooting).
Expand All @@ -19,7 +19,7 @@

- 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 a problem report) packs the logs together.
- The emulator logs are in `logs\` in the root folder. **Collect problem info** packs the logs together.
- Look mainly at these:
- `Fatal signal`: which library and which thread it crashed in;
- `FATAL EXCEPTION`;
Expand Down Expand Up @@ -54,7 +54,7 @@

## Step 5: After it works {#after}

- Open an issue in the [ModAVD repository](https://github.com/ModAVD/ModAVD/issues). Include the output of **复制配置信息** (Copy configuration info), the game, channel, version, how you got it running, and roughly what frame rate it gets.
- Open an issue in the [ModAVD repository](https://github.com/ModAVD/ModAVD/issues). Include the output of **Copy configuration info**, the game, channel, version, how you got it running, and roughly what frame rate it gets.
- If the game has an automation script and tasks that do not use many resources, the maintainer will add it to the pre-release regression tests and record a frame-rate baseline.

## Rules
Expand Down
4 changes: 2 additions & 2 deletions docs/en/develop/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contributing to ModAVD

ModAVD has only one maintainer, so replies can take a few days. For bigger changes, please open an issue to discuss them first. A big PR that was not discussed may not be merged.
Expand Down Expand Up @@ -25,14 +25,14 @@
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 feedback) 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 **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.

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 a problem report), in **设置 → 组件与问题反馈** 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 **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).
- Before you paste logs, replace `C:\Users\<your user name>` 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.
Expand Down
6 changes: 3 additions & 3 deletions docs/en/develop/package.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Bundled scripts

**What you change**: the scripts that ship in the ModAVD package, in [`package/`](https://github.com/ModAVD/ModAVD/tree/main/package) of the ModAVD repository. From 0.38.2 only `modavd-bridge.ps1` is left, in the package's `tools\` folder. It is byte-identical to the file shipped in the package.
Expand All @@ -12,9 +12,9 @@

| Before | Now: the manager | Now: the CLI |
| --- | --- | --- |
| `补全组件.bat` (fetches the Google components) | **补全组件** under the **组件** item in **电脑检查** (Computer 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 feedback → Collect a problem report) makes the report; see [Reporting problems](../guide/feedback) | `tools\modavd.exe collect-info` |
| `复制配置信息.bat` (copies your system and game 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` |
| `补全组件.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` (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

Expand Down
2 changes: 1 addition & 1 deletion docs/en/develop/testing.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Game testing and compatibility reports

## The easiest way to help

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 feedback) in the manager, or run `tools\modavd.exe report-config`;
1. Click **Copy configuration info** under **Settings → Components and 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.

Expand Down
Loading