Files
Zhengqi ZhangandKKRainbow 0009db4c22 refactor(android): extract core management and secure storage (#2593)
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>
2026-11-13 11:45:47 +08:00
..