Enhance session discovery, management, and telemetry behaviors
- Refactor mDNS session discovery into a shared manager with explicit acquire/release lifecycle, retry/backoff control, and periodic refresh triggered by monitor/network/foreground changes to stabilize wireless pairing and reduce stale service rows.
- Introduce and propagate a `confirming` session/service state through mDNS resolution and pairing UI (`DevicePairingDialog`, session badges, and session list logic).
- Expand session management app operations with running-state rendering, selection-mode bulk actions (enable/disable/force-stop/uninstall/export), and improved app-cache replacement semantics.
- Add robust command completion tracking in the command page with cancellation/request-id safety and explicit completion-loading state.
- Improve URL/deep-link handling via `ScrcpyConfig` parameter serialization round-trip coverage, asynchronous session URL copying, and reuse of stored launch options.
- Extend startup telemetry and upload behavior (start ping timing, identity header propagation on restored installs, and explicit today/yesterday manual upload path).
Screen-Remote-Review: confirmed
- fix remote-session exit orientation restore to `SCREEN_ORIENTATION_USER` when prior policy is unspecified.
- Add regression tests for remote orientation reapply behavior and increment app version code for this change set.
Screen-Remote-Review: confirmed
Harden compatibility input and video recovery
- Stream compatibility-mode touch events through the bundled helper with bounded MOVE coalescing and interrupted-stream recovery.
- Expand video recovery through maxSize 540, cancel conflicting reconnects, and show actionable session-aware failures.
- Move management dashboards and icon caching to typed helper snapshots and version metadata.
- Update AGP to 9.3.1 and add focused coverage for connection display, helper caching, touch queues, runtime state, and video recovery.
Screen-Remote-Review: confirmed
## Add URL automation and compatibility recovery
- Add screen-remote URLs for navigation, transient scrcpy overrides, management, and settings.
- Add an ADB screenshot compatibility mode with user-confirmed video capture and decoder-size recovery.
- Add opt-out telemetry, debug diagnostics, media hardening, remote volume-key forwarding, and regression coverage.
## Add legacy shell fallback and remote device helpers
- Fall back from shell_v2 to legacy shell when unsupported or rejected, and remember rejected connection features.
- Add a remote JPEG screenshot stream with DisplaySurface and SurfaceControl capture backends.
- Add helper APIs for directory listing, process inspection, application metadata, icons, and remote text injection.
- Extend compatibility to older Android runtimes and replace unavailable platform APIs with portable implementations.
- Add regression and integration coverage for legacy shell, management helpers, screenshots, and platform compatibility.
Refine session management and modernize Android APIs
- Prefetch session-scoped management data and query device and application metadata through the dadb helper.
- Add reversible app sorting, terminal completion and separators, unified management layouts, and accessible video taps.
- Remove obsolete compatibility and monitoring code, move blocking operations to IO dispatchers, and pin Gradle 9.5.0.
- Add app-sort and terminal regression coverage and update pre-push reviews to gpt-5.6-sol.
Screen-Remote-Review: confirmed
## Standardize runtime diagnostics in English
- Replace Chinese and locale-dependent internal diagnostics across logging, ADB, media, scrcpy, session, control, and foreground-service paths with fixed English text.
- Align reconnect permanence matching and stream-closure detection with the translated error messages while preserving runtime flow.
## Unify ADB routing and improve management and decoder recovery
- Separate primary and delayed-ACK streaming routes in DadbSession, isolating resource ownership between scrcpy forwarding and regular management operations
- Preload and cache app and file data, improve terminal interruption, history, and semantic highlighting, unify semantic colors across themes, and normalize an empty game-mode bitrate to 2 Mbps
- Replay a bounded complete GOP after decoder switches and add regression tests, introduce the manual pre-push Wiki review gate, and bump the version code to 7