feat: 支持腾讯应用宝 5.10.56.xx (#16292)

* feat(connection): 新增腾讯应用宝模拟器支持

在 WinAdapter 和 config.json 中添加应用宝(Androws)模拟器入口。
本次仅支持 ADB Input 方式和官方渠道。

同步更新各语言连接文档(zh/en/ja/ko/tw)及 UI 本地化字符串。

* feat(controller): 为腾讯应用宝新增多渠道与 Minitouch 支持

应用宝的应用与 DisplayId 绑定,需在 connect() 前确定包名。
新增 InstanceOptionKey::ClientType (= 6),经由
AsstSetInstanceOption -> Assistant::set_instance_option
-> Controller::set_client_type 传递渠道信息;
AdbController::connect 在建立连接时通过 ctrler()->get_client_type()
读取并写入 AdbConnectionContext,用于替换命令模板中的 [PackageName]。

引入 AdbConnectionContext 保存 ADB 连接信息供 Minitouch 使用,
并通过 eventId 标识所绑定的输入设备。
This commit is contained in:
srdr0p
2026-04-26 23:48:24 +08:00
committed by GitHub
parent 54f07fc3ad
commit 1b1bc15aca
29 changed files with 267 additions and 137 deletions

View File

@@ -85,6 +85,7 @@ bool asst::GeneralConfig::parse(const json::value& json)
adb.chmod_minitouch = cfg_json.get("chmodMinitouch", base_cfg.chmod_minitouch);
adb.call_minitouch = cfg_json.get("callMinitouch", base_cfg.call_minitouch);
adb.call_maatouch = cfg_json.get("callMaatouch", base_cfg.call_maatouch);
adb.event_id = cfg_json.get("eventId", base_cfg.event_id);
adb.back_to_home = cfg_json.get("back_to_home", base_cfg.back_to_home);
}