Files
MeshPort/outputs/validation/android-client-20261012.md
T
shenandshen c7cc2aa865 Fix VPN internet connectivity and simplify client setup
Initialize Android physical interfaces and preserve macOS scoped routes. Add redacted diagnostics, default DNS, ordered auto-save, simplified controls, scanner rotation settings, and native regression coverage. Restore vendored build sources and document validation and stability checks.
2026-10-12 06:51:25 -07:00

17 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Android 开发验证(2026-10-12)
- 设备:MI 8 Lite,ARM64,Android 15 / API 35,页面大小 4096 字节。
- 修复后联网验证包:`outputs/android/MeshPort-0.1.0-1791811765-debug.apk`。最终提示整理包:`outputs/android/MeshPort-0.1.0-1791811912-debug.apk`,已安装并打开,附 SHA-256。
- 构建成功;APK v2 签名验证、zipalign 16 KB 检查通过。JNI / Rust / Go 动态库的 ELF LOAD 对齐不低于 16 KB;不代表已在 16 KB 页面设备执行。
- Flutter analyze 无问题;启用本机 Rust / Go 动态库的 Flutter 测试 50 项通过、3 项专门环境开关测试跳过。
- 真机隔离测试已通过 Android Keystore 保存/读取/删除,以及应用内 TCP/UDP。
- 用户完成手机授权后,系统 VPN 的 Java/Dart 普通 Socket TCP/UDP、公告子网自动安装和撤销全部通过,见 `android-network-20261012.log`。
- 统一代理 VPN 在本机 Wi-Fi 复现 `no available network interface`:hostPlatform 只报告默认接口,没有初始化 sing-box 的可选接口列表。修复为在平台 Initialize 中调用 NetworkManager.UpdateInterfaces。Go 回归测试修复前复现相同错误,修复后真实 TCP 回显与 TCP/UDP socket protector 检查通过。
- `integration_test/android_proxy_test.dart` 和 `scripts/android-proxy-fixture.py` 真机通过:首次单节点自动选择、默认 Cloudflare DoH、仅代理无需组网配置、普通系统 TCP/UDP、证书验证的 HTTPS、两次启停与断开恢复。见 `android-unified-fixed-20261012.log`;失败证据为 `android-unified-failure-20261012.log`。使用隔离局域网 SOCKS5 出口,不代表用户的所有代理协议或真实节点都已验证。
- Go `test -race ./...`、`vet ./...` 通过。
- 新增 Android `MeshPortRuntime` 脱敏事件输出和 `MeshPortVPN` 启动/清理阶段日志;保留 APP 日志页。
测试完毕已关闭隔离网关/SOCKS 夹具、移除两条 adb reverse,并恢复普通开发包。测试节点未保存到用户配置。移动网络切换、长期后台和 IPv6 互联网尚未真机验收。
首次直接使用 Flutter test 时,等待授权超时后被工具卸载临时 APP;后改用 `scripts/test-android-device.sh`,采用 keep-app-running 与匹配构建号避免测试卸载,并在退出时自动覆盖安装和打开普通 APP。成功和失败恢复均已实际验证。