When an app updates itself on your fleet
When an app updates itself on your fleet
The first time I collected installed package versions across the whole rack, I expected a boring list. What came back was three different builds of the same app spread across a hundred and four handsets, and two units sitting eleven months behind everything else because nobody had opened them since the day they were provisioned.
I had been running that fleet for over a year at that point. I could tell you the Android build, the security patch date, the model, the SIM, the slot and the hub for every device on the shelf. For the applications, which are the layer that actually changes week to week, I had nothing.
This is the app layer, and it is a different problem
Two neighbouring topics get conflated with this one constantly, so it is worth drawing the line first.
The Android version and the patch level move on the vendor’s schedule, a couple of times a year on a well supported model, and what they cost you is whether apps that read those values still accept the device. Fleet consistency is about naming, scheduling and whether device six behaves the same way as device forty.
An app updating itself is a third thing. One package, on one device, replacing itself overnight because a checkbox somewhere says keep apps up to date. It happens an order of magnitude more often than either of the others, it arrives with no announcement, and there is nothing published in advance that tells you it is coming.
Strip the friendly language off it. An automatic update is a code change nobody on your side authorised, written by people who have never seen your setup, tested against nobody’s workflow, and deployed to every device you own on the same night. Described that way it sounds reckless. Described as a toggle in a settings screen, almost everyone leaves it on. I did for a year.
What actually breaks
The failures cluster into four shapes, and they do not cost the same.
Anything driven by tapping a coordinate or matching a text label breaks the moment somebody shifts a button or renames a label. The automation raises no error. It taps empty space and reports success. A script that fails loudly costs an hour. A script that carries on doing nothing costs you until somebody notices the output stopped being real, and that gap runs for days.
A login flow gains a step. Password, then a device confirmation. Or a consent screen that appears once. Or an email verification that was not there last week. Every unattended session on the fleet arrives at that screen and waits there indefinitely, which looks identical to a session that is running fine.
A permission resets to a stricter default. Background location moves from always to while in use. Notification access gets dropped because the new build declares it differently. Nothing alerts you, and the device passes every health check you have while the feature it needed is quietly off.
Then the honest one: fifty devices pulling a two hundred megabyte package on the same evening. That shows up as a spike on the uplink graph and as storage arriving in a lump on whichever units were already closest to full. I have browned out a powered hub with thirty devices deciding to be busy in the same minute. At least this failure announces itself immediately.
Percentage rollouts are why it looks intermittent
Here is the part that turns an afternoon into three days.
Updates do not land everywhere at once. They go out in percentages. Five percent today, twenty tomorrow, paused entirely if the crash numbers come back wrong, resumed on Friday when somebody at the other end is satisfied. Nobody publishes which bucket your device landed in.
So for several days your rack is split in half, and the split is scattered at random across shelves, customers and carriers. The bug appears unreproducible. On the devices that already took the update it reproduces every single time, which from the outside is indistinguishable from an intermittent fault.
Intermittent sends you somewhere useless. I checked the carrier. I checked heat, which has genuinely produced this shape of problem for me before. I checked whether a hub was dropping devices under load. I read a customer’s automation looking for a race condition that was never in it. Every one of those is a reasonable move if you believe your fleet is uniform.
The diagnostic that would have ended it in four minutes is to sort failures by app version instead of by symptom. If every failure sits on one version and every success on the other, you are done. I could not run it, because I was not recording versions.
Record the version, or none of this is debuggable
“It works on that one” is only useful if you can say why that one is different.
Every device now reports its installed packages and version codes on a schedule into the same store as the rest of the device facts. One command over ADB and a cron entry, and I put off writing it for roughly a year because it never felt urgent on any individual day.
The version history then sits next to the failure timestamps, which also answers the question a customer asks after an incident: whether the thing that broke them has already reached the rest of their devices.
Treat an update as a deploy
The discipline is borrowed wholesale from how anyone sane ships software.
Automatic updates go off on every device, including the ones nobody is automating. Those are the worst ones to leave on, because a broken login on an unattended device sits undiscovered for a fortnight.
An update then becomes a deploy. It gets a date, somebody’s name against it, and a time when a person is awake and watching. Keep a copy of the build you were already on, because an update you cannot walk back out of is a one way door with a friendly name, and the moment you want the old package is reliably the moment it stops being available anywhere.
Check the setting again after every wipe. A reprovisioned handset comes back with the default switched on, so the policy leaks one device at a time through the most routine operation in the building.
Keep two devices deliberately ahead
Two handsets stay ahead of the fleet. They take everything the moment it is offered and they run a stripped down version of the same work. They are not rented to anyone, so they cost me two units of revenue, and it is the best money in the building.
Choose them badly and they are decorative. A canary with no accounts on it and no automation pointed at it confirms that an update installed. It says nothing about whether the login flow grew a step, which is the only thing you needed to know. Mine run the two flows that would hurt most if they broke, on a loop, with the results checked by something rather than by me remembering to look.
The payoff is finding out on a Wednesday afternoon instead of from a customer on a Sunday night.
Being too far behind has its own bill
Freezing everything is not free, and the people who advocate it tend to leave this part out.
Old client versions get cut off at the server. The app opens, displays a screen telling you to update to continue, and does nothing else. At that point you take the update on somebody else’s schedule, across the whole fleet at once, at the worst possible moment. That is exactly the event you turned automatic updates off to avoid.
A build nobody else is running is also a signal in its own right. A handset on a version from eleven months ago, logged into a consumer app that most people update without thinking, is a strange looking device.
What I run is a window rather than a freeze. Four to six weeks behind current, moved forward deliberately every couple of weeks. Far enough back that the crash reports and the angry forum threads have happened without me. Close enough that no server is going to lock me out. I will argue with anyone running same day updates on a production fleet, and just as hard with anyone eight months behind who calls it stability.
What I got wrong
The eight month figure came from somewhere. It was mine.
After the morning where twenty three devices failed the same step, I overcorrected. Automatic updates off across the rack, done in an afternoon, and then I never built the schedule, because the fire was out and there were other fires. The fleet sat still for most of a year. It felt like discipline. It was neglect with a policy written on top of it.
Then one app reached its cutoff and every device holding it stopped working inside the same day. A hundred and four forced upgrades in one evening, taken blind, with no canary ahead of any of them. I had rebuilt the original problem at a larger scale and given it a name that sounded responsible.
Switching the toggle off is the easy half. The calendar entry is the half that does the work, and it is the half that quietly never gets made.
Where the line sits on rented hardware
On our rack the boundary is that we own the operating system and the customer owns their applications. We decide the Android version, the patch level and the day a handset retires. The customer decides what gets installed and when it moves.
So this is not a call I can make for anybody. What we can do is hand over devices with automatic updates already off, so that switching them on is a decision somebody made rather than a default nobody looked at. Some customers turn it straight back on, which is fine, because it is their fleet and some workloads genuinely do not care. I would rather they chose it than inherited it.
Real Android handsets in Singapore, one carrier SIM each, with the version of everything documented rather than assumed, is what we run at cloudf.one.
Get new guides and videos first — join the Telegram channel.