Sync desktop with public relay and add verified device connection management
This commit is contained in:
1 parent
87e888af69
commit
51c4f86918
17 files changed
+1289
-118
No files matched your search
@@ -59,6 +59,8 @@ TLS 沿用现有主站证书,核验到的有效期截止 `2026-11-28 06:59:59
|
||||
|
||||
## 本地 Windows 电脑
|
||||
|
||||
桌面客户端已同步当前公网配置,可运行 `scripts/start-desktop.ps1`,或打开 `bin/desktop-win-x64/Ads.Desktop.exe`。它会读取项目的客户端凭据,显示远程 `home-phone` 并管理本地连接、重连、断开、设备信息和独立手机控制窗口。桌面模式已管理 ads-client 子进程,使用时无需再单独启动下面的命令行客户端。
|
||||
|
||||
本地配置位于 `config/private/client.env`,已配置目录 ACL 并被 Git 忽略。该文件只包含客户端角色凭据和非敏感连接地址,不包含服务器 root 密码。
|
||||
|
||||
```powershell
|
||||
|
||||
@@ -37,3 +37,12 @@ Remote Windows gateway follow-up:
|
||||
- Ran `tests/real_device.py --existing-device home-phone`: only a local client was started; no local gateway and no remote ADB Server transport were used. Ordinary local ADB showed the phone as `device`, and model query plus shell marker passed.
|
||||
- Restarted the remote task and repeated that test: passed again, with local endpoint `127.0.0.1:49832` and model `AOSP on crosshatch`.
|
||||
- Remote gateway remains running. Temporary local smoke-test endpoints/processes were cleaned up. Startup trigger configuration was inspected without rebooting the PC. System VPN was not disabled; it was only needed for remote SSH management, not the tested ADB data path.
|
||||
|
||||
Desktop follow-up:
|
||||
|
||||
- Avalonia now defaults to `wss://ttstd.com/ads`, with explicit origin `175.178.213.60:443`. HTTPS catalog requests and the Rust child share the same prefix/origin configuration; neither disables TLS validation.
|
||||
- Twelve .NET tests passed: URI prefix/port handling, invalid configuration, migration, role-token import, environment isolation and non-persistence, and rejection of an untrusted local TLS certificate even with an origin override.
|
||||
- Official Avalonia headless tests loaded the real XAML and checked bindings/button state. Real live-device tests passed public catalog discovery, GUI command connect, ADB readiness, model/Android/API display, reconnect, disconnect and lease release.
|
||||
- Official scrcpy 5.0.1 archive matched its published SHA-256. The desktop command started real public video streaming; scrcpy reported `Texture (D3D11VA): 944x1920`. Stop, reconnect and disconnect checks passed after that.
|
||||
- Rendered normal and minimum-size layouts were inspected. No token was present in saved settings or UI logs. Windows self-contained publishing succeeded, excluding credentials.
|
||||
- Native Windows UI automation could not initialize because its runtime reported a sandbox setup error. Tests were Avalonia headless plus real network/process/video operations; native mouse/keyboard, clipboard/file picker and tray behavior have not been automatically exercised in this run.
|
||||
Reference in new issue
Block a user