Repository navigation
Conversation
返回前台会取消计时。桌面、当前输入法、系统包和谷歌服务继续运行。管理器、命令行和 MCP 共用同一项设置,下次开机生效。 Refs ModAVD/ModAVD#253
前台状态暂时查不到时保留计时,稍后重查。用独立的文件描述符读 logcat,避免 Android 的 sh 在读取超时后丢掉后续事件。 Refs ModAVD/ModAVD#253
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.
Closes ModAVD/ModAVD#253
实例设置新增「应用保活」,默认关闭。第三方应用退到后台满 60 秒后,管理器在客体内用
am force-stop结束它。切回前台会取消该应用的计时。桌面、当前输入法、系统包和谷歌服务豁免。开启保活后,由 Android 管理后台应用。设置保存在
mas-avd.json的instances.<i>.appKeepalive,旧实例没有该字段时按关闭处理。命令行用set <i> --app-keepalive on|off,MCP 的update_instance接受布尔参数app_keepalive。各入口的改动都在下次开机生效,同一次开机重试调优会沿用本次选择。实测
在 Windows x64、ModAVD 0.42.0 的独立 Android 14 测试实例上验证,使用私有 adb 端口和自建测试 APK。
Go 1.26.5 的 Windows 构建、
go test -p 2 ./...、20 项设置页测试、隐私扫描均通过。go vet ./...已在 Windows/amd64、Darwin/arm64 和 Linux/amd64 目标上通过。登录往返使用测试 APK,未验证真实游戏登录或支付。macOS 和 Linux 未做客体实测。