雷电模拟器自动化执行端 — 新机器初始化清单与 APK 下载(本页内容可持续维护)
windows-agent/ + automation-sdk/)· 解压后按下方清单配置 config.json 并运行 run.bat
APK(模拟器内安装)
下载后拖入雷电窗口,或使用 adb install xxx.apk 安装。模拟器架构为 x86,请使用本页提供的 x86 包。
D:\leidian\LDPlayer9\)D:\AutomationPlatform\windows-agent/ + automation-sdk/(须同级).venv/、data/(每台机器独立生成)AutomationPlatform/
├── automation-sdk/
└── windows-agent/
├── agent/
├── run.bat
└── config.json ← 每台单独配置
windows-agent/config.json
config.agent-template.json 后修改agent_token 须与服务器 AUTOMATION_AGENT_TOKEN 完全一致(向运维索取){
"control_api_url": "https://auto.fordata.info",
"agent_token": "与服务器一致,见运维下发",
"device_id": "",
"device_name": "windows-agent-02",
"ldconsole_path": "D:\\leidian\\LDPlayer9\\ldconsole.exe",
"data_dir": "data",
"tags": ["ldplayer", "lab"]
}
| 字段 | 说明 |
|---|---|
control_api_url | 必须用域名 https://auto.fordata.info;HTTPS 时 Agent 自动走 wss:// |
device_name | 每台唯一:windows-agent-01 … windows-agent-10 |
device_id | 留空 "",首次启动写入 data/device_id.txt,勿跨机复制 |
ldconsole_path | 雷电安装路径不同时单独修改 |
windows-agent\run.batregistered 表示已连上控制台device_name 在线;展开可查看雷电实例 indexdevice_id + emulator_indexemulator_index 对应一个 FB 账号device_id 不能复制到多台电脑;更新代码后执行 git pull 并重启 run.bat,无需改 device_id。
windows-agent/config.agent-template.json