How meisapps/pcbu-desktop works
PulseUnlock is a cross-platform desktop companion that lets a paired Android phone approve authentication without sending the PC password to the phone. The main path is pairing and saving device credentials, then an OS authentication request invokes the shared unlock handler; it selects a transport, obtains the phone’s response, and returns credentials for normal platform verification. The repository also includes privileged login integrations, SSH prompts, configuration, and administration. README documents several capabilities whose implementation files were not sampled, so those subsystem links are shown only where documented.
Main entry points: UnlockHandler.cpp Unlock handler · main.cpp SSH askpass · MainWindow.cpp Desktop interface · PairedDevicesStorage.cpp Paired devices
Components 27
Pairing and devices
- Pairing interface
desktop/src/ui/PairingForm.cpp - Pairing services
common/src/connection/pairing - Paired devices
common/src/storage/PairedDevicesStorage.cpp - Device discovery
common/src/connection/pairing/UDPPairingBroadcaster.cpp
Unlock transport
- Unlock handler
common/src/handler/UnlockHandler.cpp - Unlock state
common/src/handler/UnlockState.h - Local transports
common/src/connection/unlock/clients/TCPUnlockClient.cpp - Bluetooth transport
common/src/connection/unlock/clients/BTUnlockClient.cpp - Cloud transport
common/src/connection/unlock/clients/CloudUnlockClient.cpp - Wake-on-LAN
common/src/connection
Authentication integrations
- Windows credential provider
natives/win_pulseunlock/src/CSampleProvider.cpp - PAM authentication
natives/pcbu-auth/src/main.cpp - SSH askpass
natives/pcbu-ssh-askpass/src/main.cpp - macOS auth agent
natives/mac_pulseunlock/src/AgentController.h - PAM module
natives/pam_pulseunlock/src/pam_auth.cpp - SSH prompt parsing
natives/pcbu-ssh-askpass/src/SshPrompt.cpp
Desktop management
- Desktop interface
desktop/src/ui/MainWindow.cpp - App settings
common/src/storage/AppSettings.cpp - Service installer
desktop/src/installer/ServiceInstaller.Linux.cpp - Logging system
common/src/storage/LoggingSystem.cpp
Platform services
- Cryptography
common/src/utils/CryptUtils.cpp - Privileged shell
common/src/shell/Shell.cpp - Elevator service
common/src/shell/ElevatorService.cpp - Platform login check
common/src/platform/PlatformHelper.h
Other components
- PC user
- Android phone
- Cloud relay
Connections 35
- PC user → Pairing interface: starts pairing
- Pairing interface → Android phone: pairs by QR
- Pairing interface → Paired devices: saves device
- Device discovery → Android phone: discovers locally
- PC user → Windows credential provider: requests unlock
- PC user → PAM authentication: requests unlock
- PC user → SSH askpass: requests SSH login
- PC user → macOS auth agent: requests auth
- Windows credential provider → Unlock handler: invokes
natives/win_pulseunlock/src/CSampleProvider.cpp - PAM authentication → Unlock handler: invokes
natives/pcbu-auth/src/main.cpp - SSH askpass → Unlock handler: invokes
natives/pcbu-ssh-askpass/src/main.cpp - SSH askpass → SSH prompt parsing: parses prompt
natives/pcbu-ssh-askpass/src/main.cpp - Unlock handler → Paired devices: loads devices
- Unlock handler → Local transports: selects transport
common/src/handler/UnlockHandler.cpp - Unlock handler → Bluetooth transport: selects transport
common/src/handler/UnlockHandler.cpp - Unlock handler → Cloud transport: selects transport
common/src/handler/UnlockHandler.cpp - Unlock handler → Unlock state: produces result
- Local transports → Android phone: exchanges encrypted data
- Bluetooth transport → Android phone: exchanges encrypted data
- Cloud transport → Cloud relay: connects outbound
- Cloud relay → Android phone: relays encrypted traffic
- Android phone → Unlock handler: returns approval
- Unlock handler → Platform login check: verifies credentials
- SSH askpass → Platform login check: checks login
natives/pcbu-ssh-askpass/src/main.cpp - SSH askpass → Paired devices: filters devices
natives/pcbu-ssh-askpass/src/main.cpp - SSH askpass → Cryptography: decrypts SSH secret
natives/pcbu-ssh-askpass/src/main.cpp - PAM module → PAM authentication: supports PAM flow
- Desktop interface → App settings: configures app
- Desktop interface → Paired devices: manages pairings
- Desktop interface → Service installer: configures service
- Desktop interface → Logging system: views logs
- Service installer → Privileged shell: runs system actions
desktop/src/installer/ServiceInstaller.Linux.cpp - Privileged shell → Elevator service: dispatches privileged work
- PC user → Wake-on-LAN: may wake PC
- Unlock handler → App settings: reads configuration
common/src/handler/UnlockHandler.cpp