mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
docs: update instruction for waydroid
fix: https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/7701
(cherry picked from commit 8cfb7e0aa9)
This commit is contained in:
@@ -81,6 +81,10 @@ waydroid prop set persist.waydroid.height 720
|
||||
|
||||
After restarting, record `IP address` in `Setting` - `About phone` , fill `${IP address}:5555` to the adb IP address in `sample.py` .
|
||||
|
||||
If you are using amdgpu, `screencap` command may write messages to stderr, causing image decoding error.
|
||||
Run `adb exec-out screencap | xxd | head` to check if there is something like `/vendor/etc/hwdata/amdgpu.ids: No such file...` in the output.
|
||||
Modify screencap commands in `resource/config.json` from `adb exec-out screencap` to `adb exec-out 'screencap 2>/dev/null'` as a workaround.
|
||||
|
||||
### ✅ [redroid](https://github.com/remote-android/redroid-doc)
|
||||
|
||||
Arknights runs properly in Android 11 image. Do remember to expose port 5555 for adb.
|
||||
|
||||
@@ -88,6 +88,10 @@ waydroid prop set persist.waydroid.height 720
|
||||
|
||||
设置 adb 的 IP 地址:打开 `设置` - `关于` - `IP地址` ,记录第一个 `IP` ,将 `${记录的IP}:5555` 填入`sample.py` 的 adb IP 一栏。
|
||||
|
||||
如果使用 amdgpu, `screencap` 命令可能向 stderr 输出信息导致图片解码失败.
|
||||
可以运行 `adb exec-out screencap | xxd | head` 并检查输出中是否有类似 `/vendor/etc/hwdata/amdgpu.ids: No such file...` 的文本来确认这一点.
|
||||
尝试将 `resource/config.json` 中的截图命令由 `adb exec-out screencap` 改为 `adb exec-out 'screencap 2>/dev/null'`.
|
||||
|
||||
### ✅ [redroid](https://github.com/remote-android/redroid-doc)
|
||||
|
||||
安卓 11 版本的镜像可正常运行游戏, 需要暴露 5555 adb 端口.
|
||||
|
||||
Reference in New Issue
Block a user