How tirthsaraiya29/tether works
Tether is a local-first Android companion and Windows workstation trust/security system. A user pairs the phone with the desktop, establishes cryptographic device identity, then uses the phone to maintain trust, unlock or lock the workstation, and invoke remote controls. The Android LAN service and Windows communication service carry the control workflow; the Windows service also coordinates pairing, sessions, and capability dispatch. Separate branches cover emergency panic/revocation, session-bound desktop functions, and desktop status/configuration. Several links are supported only by README documentation or the source index; unsampled capability internals are represented at directory level.
Main entry points: TetherLanService.kt LAN Service · Program.cs Communication Service · IEventBus.cs Event Bus · MainScreens.kt Companion UI
Components 23
Android Companion
- Companion UI
apps/android-companion/app/src/main/java/com/tether/phone/ui/screens/MainScreens.kt - Phone Identity
apps/android-companion/app/src/main/java/com/tether/phone/ProductionSecurityEngine.kt
Pairing and Transport
- LAN Service
apps/android-companion/app/src/main/java/com/tether/phone/TetherLanService.kt - Device Discovery
apps/android-companion/app/src/main/java/com/tether/phone/TetherDiscoveryManager.kt - Phone Pairing
apps/android-companion/app/src/main/java/com/tether/phone/TetherPairingManager.kt - TLS Session
services/communication-service/Tether.CommunicationService/Transport/TetherSession.cs
Windows Services
- Communication Service
services/communication-service/Tether.CommunicationService/Program.cs - Pairing Manager
services/communication-service/Tether.CommunicationService/Pairing/PairingManager.cs - Windows Identity
services/communication-service/Tether.CommunicationService/Security/WindowsIdentity.cs - Device Registry
services/communication-service/Tether.CommunicationService/Devices/DeviceManager.cs - Session Manager
services/communication-service/Tether.CommunicationService/Sessions/SessionManager.cs - Desktop UI
apps/desktop-ui/Tether.DesktopUI/MainWindow.xaml.cs
Remote Capabilities
- Capability Dispatch
services/communication-service/Tether.CommunicationService/Capabilities/CapabilityManager.cs - Session Helper
services/communication-service/Tether.SessionHelper - Remote Input
services/communication-service/Tether.CommunicationService/Transport/InputForwarder.cs - File Transfer
services/communication-service/Tether.CommunicationService/FileTransfer/FileTransferServer.cs
Trust and Recovery
- Trust Store
services/communication-service/Tether.CommunicationService/Trust/TrustStore.cs - Event Bus
services/event-bus/Tether.EventBus/IEventBus.cs - Trust State
services/trust-engine/Tether.TrustEngine/TrustStateManager.cs - Panic Lock
services/panic-engine/Tether.PanicEngine/PanicManager.cs - Enforcement
services/enforcement-engine/Tether.EnforcementEngine/EnforcementManager.cs - Recovery
services/recovery-engine/Tether.RecoveryEngine/RecoveryManager.cs
Other components
- Phone User
Connections 25
- Phone User → Companion UI: uses
- Companion UI → LAN Service: controls
- LAN Service → Phone Identity: uses identity
apps/android-companion/app/src/main/java/com/tether/phone/TetherLanService.kt - LAN Service → Device Discovery: discovers peers
apps/android-companion/app/src/main/java/com/tether/phone/TetherLanService.kt - LAN Service → Phone Pairing: coordinates pairing
apps/android-companion/app/src/main/java/com/tether/phone/TetherLanService.kt - LAN Service → Communication Service: exchanges LAN control
- Communication Service → Pairing Manager: registers
services/communication-service/Tether.CommunicationService/Program.cs - Pairing Manager → Windows Identity: uses identity
services/communication-service/Tether.CommunicationService/Pairing/PairingManager.cs - Pairing Manager → Device Registry: promotes paired device
services/communication-service/Tether.CommunicationService/Pairing/PairingManager.cs - Device Registry → Trust Store: persists trust
services/communication-service/Tether.CommunicationService/Devices/DeviceManager.cs - Communication Service → Session Manager: registers
services/communication-service/Tether.CommunicationService/Program.cs - Session Manager → TLS Session: tracks sessions
services/communication-service/Tether.CommunicationService/Sessions/SessionManager.cs - TLS Session → Device Registry: marks connected
services/communication-service/Tether.CommunicationService/Transport/TetherSession.cs - Communication Service → Capability Dispatch: dispatches capabilities
services/communication-service/Tether.CommunicationService/Program.cs - Capability Dispatch → Session Helper: executes session actions
- TLS Session → Remote Input: forwards input
services/communication-service/Tether.CommunicationService/Transport/TetherSession.cs - Session Manager → File Transfer: registers transfer server
services/communication-service/Tether.CommunicationService/Sessions/SessionManager.cs - Desktop UI → Communication Service: manages service
- Communication Service → Event Bus: publishes events
services/communication-service/Tether.CommunicationService/Program.cs - Trust State → Event Bus: subscribes and publishes
services/trust-engine/Tether.TrustEngine/TrustStateManager.cs - Panic Lock → Event Bus: publishes panic events
services/panic-engine/Tether.PanicEngine/PanicManager.cs - Enforcement → Event Bus: subscribes
services/enforcement-engine/Tether.EnforcementEngine/EnforcementManager.cs - Recovery → Event Bus: subscribes
services/recovery-engine/Tether.RecoveryEngine/RecoveryManager.cs - LAN Service → Panic Lock: requests emergency lock
- Companion UI → Capability Dispatch: invokes remote capabilities