Commit Graph

12 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 c8a931945d Update src/dev/oxmc/configprovisioner/VendorConfig.java 2025-08-23 02:50:04 -07:00
oxmc c7a1050353 Update src/dev/oxmc/configprovisioner/BootReceiver.java 2025-08-23 02:47:51 -07:00
oxmc 30d2aeabb5 Update src/dev/oxmc/configprovisioner/VendorConfig.java 2025-08-23 02:47:04 -07:00
oxmc bd72b16ee9 Update src/dev/oxmc/configprovisioner/ProvisioningService.java 2025-08-23 02:46:48 -07:00
oxmc 8edb0b6752 fix typo 2025-08-22 15:36:49 -07:00
oxmc bef5c481c0 remove res for now 2025-08-22 15:32:39 -07:00
oxmc b5c1a378d6 Update Android.bp 2025-08-21 15:01:17 -07:00
oxmc 8c4f3fc03c Update Android.bp 2025-08-21 14:55:22 -07:00
oxmc df7b2e4bb0 Add temp docs 2025-08-21 01:23:18 -07:00
oxmc d46007da52 Base 2025-08-21 01:19:15 -07:00
oxmc 8c429343ae Initial commit 2025-08-21 01:11:21 -07:00