Commit Graph

2 Commits

Author SHA1 Message Date
oxmc 3b74d330b8 provisioner: split base/OTA tasks; defer APK install to USER_PRESENT
Previously pm install ran on BOOT_COMPLETED, triggering idmap2d overlay
re-evaluation under load and causing repeated SIGKILL cycles.

New design:
- ACTION_BASE_PROVISION (BOOT_COMPLETED): applies settings from the
  pre-installed config APK and configures the setup wizard state.
  No network, no pm install, completes quickly.
- ACTION_OTA_UPDATE (USER_PRESENT): downloads the config APK URL and
  installs it over the built-in copy if the OTA check interval has elapsed
  (default 24 h, configurable via ota_check_interval_ms in vendor.cfg).
  Attempt timestamp is recorded before download to prevent server-error
  storms on repeated screen unlocks.

All shared helpers (applyConfigApkSettings, applyApns, configureSetupWizard,
downloadApk, installApk) moved to service level so both tasks share them.
2026-06-09 22:10:12 -07:00
oxmc d46007da52 Base 2025-08-21 01:19:15 -07:00