Updates over the air, signed
FlagFox firmware updates come from the app. The phone hands a new version to the base, the base updates itself, and sensors pick theirs up at their next check-in. No cable, no laptop.
Every update is signed, and a device only installs a version that carries our signature. We tested the refusal on purpose: an unsigned build sent to the base was turned away.
We also tested the bad day. A device that installs an update and can’t start it goes back to the version it had. Our first attempt at that test looked like a pass but wasn’t (the bad build had never installed), so we ran it again properly, with a build made to fail, and watched the sensor roll back and report it.
And one honest stumble: early sensor builds ran out of memory while checking a signature, so they could never accept a signed update over the air. Those boards needed one update by cable. The fix gave the update its own room to work, and since then every release gets a real over-the-air install on a device on the bench, with its log watched, before it goes anywhere else.