mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-11-22 14:27:44 +08:00
Extract application configuration and network management from the GUI into easytier-core. Share ApplicationClient between GUI commands and web-client hooks through ManagementHost, while the host retains RPC transport and runtime ownership. Persist Android configurations, desired-enabled IDs, backend options and selection in a versioned native snapshot. Encrypt it with Android Keystore AES-256-GCM, replace it atomically and verify commits. Reload uncertain storage before another mutation. Migrate localStorage only when native state is absent. Remove legacy plaintext only after durable persistence succeeds, and reject unreadable or invalid native data instead of overwriting it with defaults. Separate confirmed runtime effects from persistence and reconciliation warnings. Retain pending intent across RPC reconnects, query actual state after RPC errors and complete stops despite save failures. Finish Android VPN setup after nonfatal preference write failures; keep bootstrap and required configuration failures fatal. Preserve shared Android TUN behavior and serialize native status sampling against start/stop events. Desktop keeps event/localStorage persistence. Service-owned lifecycle, headless tile startup and automatic intent recovery remain follow-up work. Cover migration, uncertain commits, reconnects and VPN reconciliation with regression tests. Android physical-device upgrade, restart and storage-failure validation remains outstanding. Co-authored-by: KKRainbow <5665404+KKRainbow@users.noreply.github.com>