← All posts

Keeping a fleet of phones in sync without making them identical

Sep 24, 2026 · By Xavier Fok

Keeping a fleet of phones in sync without making them identical

I wiped a paying customer’s phone because two systems agreed with each other and both were wrong.

Two weeks earlier I had pulled a dead handset out of a slot and put a spare in. I updated the rack label. I did not update the device manager, which was the only one of the three systems actually talking to the hardware. When I came back to decommission what I thought was an expired device, the tape on the shelf and the billing record both said go ahead, so I did.

That is the version of fleet management nobody puts in the guides. The interesting problems are rarely about configuration. They are about identity, and about the fact that wanting every phone to be the same is in tension with wanting every phone to look like it belongs to a different person.

Two things that are both true

Operationally you want uniformity. Variation is what makes a fleet unmanageable. If device 40 behaves differently from device 6, every debugging session starts from scratch and every runbook grows an exception clause.

But a hundred devices configured identically is a pattern in its own right. Same build, same fourteen packages, same keyboard, same wallpaper, same twelve toggles flipped the same direction, all active in the same two second window every night. One operator with a provisioning script produces exactly that shape. A hundred unrelated people produce a mess.

So the work is deciding, item by item, which kind of sameness is free.

Sameness that costs you nothing

Base image and patch level. Every device on the same Android version and the same security patch date, and you should be able to state that date without looking it up. People get this one backwards and try to scatter patch levels for camouflage. Millions of real handsets share a patch date because that is how vendors ship. The device that stands out is the one running a build nobody else is on.

Health checks. One polling loop, one set of thresholds, one log format across the whole rack. It is internal, invisible from outside the network, and on the day one phone starts behaving oddly you want ninety nine identical measurements to compare it against.

The restore procedure. Not the contents, the procedure. Rebuilding any device in the fleet should be the same sequence of steps, so that doing it on a Tuesday afternoon is boring work instead of an incident.

Power and airflow. I learned this one with a bus powered USB hub that dropped devices under load. Thirty units on a shared hub means thirty units sharing a single point of failure, so at least make the hardware layout identical enough that you can reason about it.

And naming, which is uniform to the point of being religious. More on that below, because it is the part that actually hurts.

Sameness that costs you something

Installed app sets. Fourteen packages and nothing else is a fingerprint. Real phones accumulate junk: a weather app installed once and never opened, a bank app, a food delivery app, a game somebody played twice. I keep a small pool of harmless extras and give each device a different handful.

Locale and keyboard. A rack in Singapore where every unit reports the same locale, the same keyboard package, the same 24 hour clock and the same wallpaper is a rack that agrees with itself far too well. Keyboards matter more than the rest because an app can see which one is active.

Anything the device reports about itself that a real owner would have set differently. Screen timeout. Notification sound. Whether battery saver is on. Whether developer options are enabled, which on most fleets is yes, on every unit, permanently, which is close to nobody’s personal phone.

And the timing of scheduled work, which deserves its own section.

Scheduled work gives away more than a screenshot does

Everything above is a snapshot, and a snapshot is one comparison. Timing is a stream.

If a hundred devices come alive inside the same two second window every night, go quiet inside the same window, and run the same actions in the same order in between, you have built one phone that happens to exist in a hundred places. The correlation survives everything else you did. Different IP per device, different SIM, different app set, different name, and the clock still ties them together.

It is also trivially cheap for anyone to compute. Group events by minute, look for buckets that are too full. That is a single query.

I am not writing this as evasion advice, and whatever you run on rented hardware should stay inside each platform’s rules. The practical point is duller: perfectly legitimate separate operations get treated as one operation when they behave like one process, and then you are explaining yourself over something that had nothing to do with what you were actually doing.

Stagger deterministically, not randomly

Staggering is obvious. Doing it correctly is slightly less obvious, because the intuitive approach is wrong.

The intuitive approach is a random delay picked fresh at each run. Device 12 fires at 3:06 tonight, 3:51 tomorrow, 3:19 the night after. Two problems with that. Nothing real reschedules itself every night, so what you have described is a random number generator with a human’s job title. And when something breaks at 3:19 on a Wednesday you now cannot tell which device that was without cross referencing logs, so you have made your own debugging harder to save yourself ten minutes of design.

Do it deterministically instead. Hash the device name, take the remainder against the width of your window, and that is that device’s offset forever. Device 12 runs at 3:06 tonight and 3:06 next month. The fleet spreads out, each unit keeps a stable habit, and the logs still read cleanly.

Make the window wider than feels necessary. I started at 15 minutes, which was useless: a hundred devices across 15 minutes still clumps visibly and still hammers the uplink. Ninety minutes for a nightly job works. For anything hourly, spread wider than the interval so the buckets never line up.

Stagger the sequence too. If every device performs the same five steps in the same order, the order is a fingerprint even when the start times differ. Shuffle the independent steps per device, deterministically, using the same hash.

There is a pure operations payoff here that has nothing to do with patterns. Staggered work does not spike the uplink, brown out a hub, or make eleven devices appear dead in the same second because they all decided to update at 3am. I would do it now even if nobody were watching.

Three systems, three opinions about which phone this is

Here is the genuinely hard part, and it is not about patterns at all.

At least three systems in my setup hold an opinion about which physical device is which. Billing knows a customer paid for a device and which one. The device manager knows which handsets are registered, reachable, and visible to which account. The rack knows which unit sits in which slot, on which hub, on which shelf.

When those three agree, life is calm. They drift in extremely ordinary ways:

  • a handset dies, gets swapped, and the label on the shelf stays as it was
  • a device re registers under a new serial after a reflash and quietly gains a second entry
  • a subscription lapses and billing releases the device while the device manager still has that user in a group with access
  • an allocation row gets written pointing at something that never comes back

None of that is exotic. All of it happens in a normal month, and each instance is a small lie sitting in a database waiting for somebody to trust it.

One identifier, printed on the device

The fix is boring and it is the single highest value decision in the whole setup. One name per device, generated once, never reused even after that handset is retired, printed on a physical label stuck to the unit, and used verbatim by every system that has an opinion.

No system invents its own naming scheme. No system keys on a serial number, because serials travel with hardware and hardware moves between slots. Nothing joins on a substring.

Then run a reconciler: a daily job that reads all three sources and prints every disagreement. Mine runs early morning and mails me the list.

What I got wrong with the reconciler

I gave mine permission to fix things on day one, which was a mistake I paid for within a week.

It matched devices by name substring, and two of our naming schemes happened to share a prefix, so it confidently classified a set of live devices as orphaned records and started tidying them up. The findings looked authoritative. They were wrong roughly a third of the time.

Report only, for at least a month. Read the output every morning until you stop disagreeing with it, and only then let it touch anything. A reconciler that lies quietly is worse than no reconciler, because you built it specifically so you could stop checking by hand.

If you run ten phones instead of a hundred

All of this applies earlier than it feels like it should. Ten devices is already enough for a synchronised schedule to look synchronised, and already enough to lose track of which unit is which after a couple of hardware swaps.

What changes is the tooling. At ten devices a text file and a daily glance does the reconciler’s job perfectly well. At a hundred it does not, and the transition happens quietly, some evening when you are tired and you trust the label on the shelf instead of the system that can actually reach the hardware.

Pick the naming scheme before you need it. That is the one decision that gets more expensive every week you delay it.

If you want real Android hardware in Singapore with a persistent mobile IP per device and ADB access, that is what we run at cloudf.one.

Get new guides and videos first — join the Telegram channel.

40% off until 31 December 2026
Real phones in Singapore, each with its own mobile IP.
Introductory price until 31 December 2026. A dedicated phone straight away, no queue.