How cthesigns/omaha works
Omaha is a Windows software updater: it checks for updates in background or on demand, downloads updates, and installs requested software. The graph follows that user-to-update workflow through the service, scheduling, update checking, downloading, and installation, and includes policy/device management and crash handling as significant supporting capabilities. The README establishes the product workflow; most implementation excerpts are absent, so internal connections are dashed and unverified rather than inferred as direct calls.
Main entry points: app_manager.cc App manager · scheduler.cc Scheduler · config_manager.cc Configuration and policy · web_services_client.cc Update protocol
Components 17
Update runtime
- Update service
omaha/service/service_main.cc - Scheduler
omaha/core/scheduler.cc - App manager
omaha/goopdate/app_manager.cc - App update states
omaha/goopdate/app_state.cc
Update delivery
- Update protocol
omaha/common/web_services_client.cc - Network requests
omaha/net/network_request_impl.cc - Download manager
omaha/goopdate/download_manager.cc - Package cache
omaha/goopdate/package_cache.cc - Install manager
omaha/goopdate/install_manager.cc - Client installation
omaha/client/install_apps.cc
Policy management
- App registry
omaha/common/app_registry_utils.cc - Configuration and policy
omaha/common/config_manager.cc - Device management
omaha/goopdate/dm_client.cc - DM policy storage
omaha/goopdate/dm_storage.cc
Reliability
- Crash handling
omaha/crashhandler/crash_handler.cc - Crash worker
omaha/crashhandler/crash_worker.cc
Other components
- User or app
Connections 17
- User or app → Update service: requests update
- Update service → Scheduler: starts scheduling
- Scheduler → App manager: dispatches checks
- App manager → Update protocol: checks updates
- Update protocol → Network requests: sends requests
- Network requests → Update protocol: returns response
- App manager → App update states: tracks progress
- App manager → Download manager: requests download
- Download manager → Package cache: stores packages
- App manager → Install manager: requests install
- Install manager → Client installation: delegates install
- App manager → App registry: reads app data
- Scheduler → Configuration and policy: reads policy
- Configuration and policy → App registry: reads settings
- Configuration and policy → DM policy storage: uses DM policy
- Device management → DM policy storage: persists policy
- Crash handling → Crash worker: dispatches work