Repository navigation
从 MuMu 和雷电导入游戏安装包和公开资源 - #209
Merged
Merged
Conversation
管理器和命令行可以启动所选的 MuMu 实例,复制游戏的 APK、OBB 和用户勾选的公开资源。导入前检查空间,已有文件发生冲突时停止,取消后可以重试。 Refs ModAVD/ModAVD#167
明日方舟的下载目录可能挂在独立的磁盘上。按目标路径检查剩余容量,合并目录遇到挂载点时在该磁盘上写完临时文件再改名。
管理器和命令行共用一套导入流程。雷电按实例启动,检查运行中的 ADB 转发端口和进程,遇到旧的离线连接时只重连所选实例。目标游戏目录刚创建时,短暂的权限错误可以重试。 Refs ModAVD/ModAVD#167
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
在目标实例的「更多操作 → 从模拟器导入游戏」里选择 MuMu 或雷电实例,再勾选游戏。管理器会按需启动源实例,复制 base APK、split APK、公开 OBB 和用户选中的 Android/data 资源。新目标沿用管理器原有的新建、开机流程。
命令行提供
game-sources、game-apps、game-files和import-game。例如,modavd import-game ldplayer 1 2 com.hypergryph.arknights --data files/Bundles会把雷电实例 1 的方舟导入已开机的 ModAVD 实例 2。list2读取实例,核对 ADB 转发端口与虚拟机进程。两种来源均使用 ModAVD 的私有脚本 ADB 端口。怎么验证的
Codex 在 Windows 上操作了真实 MuMu、雷电、ModAVD、管理器页面和 CLI。游戏是明日方舟官服 2.7.91,目标是 ModAVD 0.43.0 / Android 14。两组只选择了
files/Bundles,均在首次启动游戏前,以目标游戏 UID 读取每个文件并与源端核对 SHA-256。整机收包量包含启动请求及后台流量,游戏界面显示的补下载量按提示单列。两个目标均停在账号登录页,未登录或进入关卡。雷电 9 未实测。
另外在测试实例上核对了以下情况。
already_exists,原文件哈希保持不变。用拆分测试包验证了 base、split 和 32 MiB OBB;另测了不同 APK、空间不足、取消和重试。build.ps1 -Test、Windows 全量测试、Darwin/arm64 和 Linux/amd64 的go vet、78 项 Node 测试、仓库检查脚本测试、格式、隐私和 PR 提交范围的署名检查。本机开着编号 6 的真实实例时,原有的TestResumePublishedBeforeQemuProbe会受影响,关机后定向运行 20 次通过,最终全量检查通过。核对
Refs ModAVD/ModAVD#167